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

Rename pause annotation #2783

Merged
merged 9 commits into from
Mar 31, 2020
Merged

Rename pause annotation #2783

merged 9 commits into from
Mar 31, 2020

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Mar 27, 2020

New eck.k8s.elastic.co/managed annotation, with inverted boolean
semantics: false stops reconciliation. True is implied if not
specified by the user.

Legacy pause annotation is still supported for existing deployments.

Fixes #2594

New eck.k8s.elastic.co/managed annotation, with inverted boolean
semantics: false stops reconciliation. True is implied if not
specified by the user.

Legacy pause annotation is still supported for existing deployments.
docs/operating-eck/troubleshooting.asciidoc Outdated Show resolved Hide resolved
pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
pebrc and others added 3 commits March 30, 2020 12:49
Co-Authored-By: Charith Ellawala <52399125+charith-elastic@users.noreply.github.com>
Copy link
Contributor

@charith-elastic charith-elastic left a comment

Choose a reason for hiding this comment

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

LGTM.

There are a couple of nits that I didn't catch the first time but those are pretty minor and can be fixed later as well.

pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
managed, newExists := parse(ManagedAnnotation, true)
paused, legacyExists := parse(LegacyPauseAnnoation, false)
if legacyExists && !newExists {
log.V(-1).Info(fmt.Sprintf("Using legacy annotation %s. Please consider moving to %s", LegacyPauseAnnoation, ManagedAnnotation), "namespace", meta.Namespace, "name", meta.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

We currently don't use the -1 level for anything else that I saw. I'm a little bit skeptical about starting to use it for this? I'm open to it but could use some persuading. My gut feeling is that no one reads warning messages and that they should be errors or info messages.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point will change back to info.

@anyasabo
Copy link
Contributor

This should have the >breaking tag right? We don't have a label to indicate deprecated at this time it looks like.

@pebrc
Copy link
Collaborator Author

pebrc commented Mar 30, 2020

It’s not a breaking change imo because we still support the old annotation.

@anyasabo
Copy link
Contributor

It’s not a breaking change imo because we still support the old annotation.

Yeah that makes sense, but I wonder what else we put it under so that it can be found in release notes or closed PRs. Is it time maybe to add support for a >deprecated tag or something similar?

@pebrc pebrc added >enhancement Enhancement of existing functionality and removed >refactoring labels Mar 31, 2020
@pebrc
Copy link
Collaborator Author

pebrc commented Mar 31, 2020

Is it time maybe to add support for a >deprecated tag or something similar?

I add the >enhancement tag as we are improving existing functionality (bit of a stretch, but at least it will show up in release notes now)

pkg/controller/common/unmanaged.go Outdated Show resolved Hide resolved
pkg/controller/common/unmanaged.go Show resolved Hide resolved
Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v1.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename pause annotation
4 participants