Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Unblock flyteplugins being pulled due to Security override #235

Merged
merged 6 commits into from
Mar 18, 2021

Conversation

anandswaminathan
Copy link
Contributor

@anandswaminathan anandswaminathan commented Mar 16, 2021

Pulls in latest propeller and plumbs SecurityContext from the FlyteWorkflow. Does not ack TaskTemplate for now.

Fixes build and unblocks plugins pull.

@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #235 (ff37889) into master (aa6c625) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Signed-off-by: Anand Swaminathan <[email protected]>
@anandswaminathan anandswaminathan changed the title Security override Unblock flyteplugins being pulled due to Security override Mar 18, 2021
@anandswaminathan
Copy link
Contributor Author

cc @regadas

ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"`
// Security context fields to define privilege and access control settings
// +optional
SecurityContext core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,12,rep,name=securityContext"`
Copy link
Contributor

Choose a reason for hiding this comment

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

you have to generate code, this will not work.
The deepcopy code has to be generated and to do so is really not easy at the moment

Steps:

  1. ensure the propeller code is checked out in $GOPATH/github.com/flyteorg/flytepropeller
  2. Uncomment https://github.com/flyteorg/flytepropeller/blob/master/hack/tools.go#L5
  3. make op_code_generate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: Anand Swaminathan <[email protected]>
@@ -549,7 +550,7 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) {
*out = (*in).DeepCopy()
}
if in.DataReferenceConstructor != nil {
out.DataReferenceConstructor = in.DataReferenceConstructor
out.DataReferenceConstructor = in.DataReferenceConstructor.DeepCopyReferenceConstructor()
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not compiling right?
you might want to just revert this line, or add a DeepCopy that just returns self

Signed-off-by: Anand Swaminathan <[email protected]>
Signed-off-by: Anand Swaminathan <[email protected]>
@anandswaminathan anandswaminathan merged commit 11ee7f1 into master Mar 18, 2021
kumare3 pushed a commit that referenced this pull request May 25, 2021
* Pull in FlytePlugins for Security Context fix

Signed-off-by: Anand Swaminathan <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
)

* Pull in FlytePlugins for Security Context fix

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

Successfully merging this pull request may close these issues.

2 participants