Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for securityContext in launch form. #253

Merged
merged 3 commits into from
Dec 29, 2021

Conversation

jsonporter
Copy link
Contributor

@jsonporter jsonporter commented Dec 14, 2021

This PR adds support for securityContext in Admin requests. Currently this feature is not fully rolled out but this change will support both authRole and securityContext during the migration to prevent any breaking changes. The change will appear on Launch/Relaunch/Recover actions. This change also removes the either/or toggle between K8 and IAM roles - now users can enter both/either/none.

see: https://github.com/flyteorg/flyteidl/blob/f4809c1a52073ec80de41be109bccc6331cdbac3/protos/flyteidl/core/security.proto#L111

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

FlyteAdmin is planning to migrate to using securityContext in the future however to support older versions of Admin we will send and receive both values for the time being.

Tracking Issue

NA

Follow-up issue

NA

Signed-off-by: Jason Porter <[email protected]>
@jsonporter jsonporter force-pushed the add-support-for-security-context branch from aa2ab61 to 67d14f6 Compare December 14, 2021 21:01
govalt
govalt previously approved these changes Dec 16, 2021
Copy link
Contributor

@govalt govalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@e2ebf33). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #253   +/-   ##
=========================================
  Coverage          ?   63.80%           
=========================================
  Files             ?      370           
  Lines             ?     8109           
  Branches          ?     1439           
=========================================
  Hits              ?     5174           
  Misses            ?     2935           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2ebf33...472f68b. Read the comment docs.

@jsonporter jsonporter force-pushed the add-support-for-security-context branch from dd122c4 to 519af33 Compare December 29, 2021 00:29
Copy link
Contributor

@govalt govalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM!
I just left some comments for clarification. Please let me know your thoughts. 😀

Signed-off-by: Jason Porter <[email protected]>
Copy link
Contributor

@govalt govalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jsonporter jsonporter merged commit af1818b into master Dec 29, 2021
@jsonporter jsonporter deleted the add-support-for-security-context branch December 29, 2021 19:25
@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.37.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

govalt pushed a commit that referenced this pull request Jan 15, 2022
* Init checkin

Signed-off-by: Jason Porter <[email protected]>

* Fixed tests on LaunchTaskForm.test

Signed-off-by: Jason Porter <[email protected]>

* Addressed PR comments

Signed-off-by: Jason Porter <[email protected]>
Signed-off-by: csirius <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants