-
Notifications
You must be signed in to change notification settings - Fork 103
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
KEP-29: instance controller reconciliation for parent instances #1555
Conversation
Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
@@ -208,19 +208,6 @@ func wasRunAfter(p1 PlanStatus, p2 PlanStatus) bool { | |||
return p1.LastUpdatedTimestamp.Time.After(p2.LastUpdatedTimestamp.Time) | |||
} | |||
|
|||
// GetExistingParamDefinitions retrieves parameter metadata from OperatorVersion |
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.
Method wasn't used
@@ -137,7 +137,7 @@ func instanceResource(instanceName, operatorName, operatorVersionName, namespace | |||
}, | |||
Status: v1beta1.InstanceStatus{}, | |||
} | |||
if err := controllerutil.SetControllerReference(owner, instance, scheme); err != nil { | |||
if err := controllerutil.SetOwnerReference(owner, instance, scheme); err != nil { |
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 the actual change: with SetOwnerReference
reconciliation will be called for the parent instance
@@ -1,5 +1,15 @@ | |||
apiVersion: kudo.dev/v1beta1 | |||
kind: Instance | |||
metadata: |
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.
Parent instance is now also COMPLETE
Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
Signed-off-by: Aleksey Dukhovniy alex.dukhovniy@googlemail.com