-
Notifications
You must be signed in to change notification settings - Fork 59
Unblock flyteplugins being pulled due to Security override #235
Conversation
Signed-off-by: Anand Swaminathan <[email protected]>
Signed-off-by: Anand Swaminathan <[email protected]>
Signed-off-by: Anand Swaminathan <[email protected]>
03c2e65
to
b627478
Compare
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"` |
There was a problem hiding this comment.
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:
- ensure the propeller code is checked out in
$GOPATH/github.com/flyteorg/flytepropeller
- Uncomment https://github.com/flyteorg/flytepropeller/blob/master/hack/tools.go#L5
- make op_code_generate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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]>
* Pull in FlytePlugins for Security Context fix Signed-off-by: Anand Swaminathan <[email protected]> Signed-off-by: Ketan Umare <[email protected]>
) * Pull in FlytePlugins for Security Context fix Signed-off-by: Anand Swaminathan <[email protected]>
Pulls in latest propeller and plumbs SecurityContext from the FlyteWorkflow. Does not ack TaskTemplate for now.
Fixes build and unblocks plugins pull.