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

KEP-29: instance controller reconciliation for parent instances #1555

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

zen-dog
Copy link
Contributor

@zen-dog zen-dog commented Jun 8, 2020

Signed-off-by: Aleksey Dukhovniy alex.dukhovniy@googlemail.com

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
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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:
Copy link
Contributor Author

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>
@zen-dog zen-dog requested a review from ANeumann82 June 8, 2020 17:39
@zen-dog zen-dog merged commit 2aac262 into master Jun 9, 2020
@zen-dog zen-dog deleted the ad/parent-instance-reconcile branch June 9, 2020 14:16
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