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

Pass rollout reason annotation to deployment #59

Merged
merged 4 commits into from
Jun 13, 2019

Conversation

sechmann
Copy link
Contributor

@sechmann sechmann commented Apr 12, 2019

When the Application resource is annotated with the kubernetes.io/change-cause annotation, it would be nice to annotate the deployment resource as well. Annotating the deployment resource does not create a new replicaset.

https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#checking-rollout-history-of-a-deployment

@sechmann sechmann requested a review from a team as a code owner April 12, 2019 10:33
@sechmann sechmann added good first issue Good for newcomers help wanted Extra attention is needed labels Apr 12, 2019
Copy link
Contributor

@kimtore kimtore left a comment

Choose a reason for hiding this comment

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

OK, I suppose it is okay to try this then.

@sechmann sechmann changed the title Pass rollout reason annotation to deployment [WIP] Pass rollout reason annotation to deployment May 27, 2019
@kimtore
Copy link
Contributor

kimtore commented May 28, 2019

Looks good. Can you write in the commit/merge message what the purpose of the merge is, as you explained earlier?

@jhrv
Copy link
Contributor

jhrv commented May 28, 2019

Good idea, I agree that we should pass the value on to the deployment to enhance the rollout history view. With this in place, we should also populate this with deployd.
I don't understand why it's useful to include the change cause in the hash.

@sechmann
Copy link
Contributor Author

sechmann commented May 28, 2019

I don't understand why it's useful to include the change cause in the hash.

It's useful if you want to add a change-cause after the actual change.
The examples in the referenced documentation are like this: kubectl annotate deployment.v1.apps/nginx-deployment kubernetes.io/change-cause="image updated to 1.9.1"
which would not trigger a resync for us, and thus never reaching the deployment annotations.

@jhrv
Copy link
Contributor

jhrv commented May 29, 2019

Makes sense 👍 lgtm

@sechmann sechmann merged commit bc12573 into master Jun 13, 2019
@sechmann sechmann deleted the rollout_status_annotation branch June 13, 2019 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants