-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat: Update annotations to use kubernetes convention #114
Conversation
Codecov Report
@@ Coverage Diff @@
## next #114 +/- ##
=======================================
Coverage ? 53.35%
=======================================
Files ? 16
Lines ? 521
Branches ? 0
=======================================
Hits ? 278
Misses ? 202
Partials ? 41 Continue to review full report at Codecov.
|
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.
Let's make the annotation strings into constants/enums
cmd/generate.go
Outdated
@@ -65,7 +65,7 @@ func NewGenerateCommand() *cobra.Command { | |||
} | |||
|
|||
annotations := manifest.GetAnnotations() | |||
avpIgnore, _ := strconv.ParseBool(annotations["avp_ignore"]) | |||
avpIgnore, _ := strconv.ParseBool(annotations["avp.kubernetes.io/ignore"]) |
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.
Missed a spot for using the enum instead of the string
pkg/types/constants.go
Outdated
|
||
AVPPathAnnotation = "avp.kubernetes.io/path" | ||
AVPIgnoreAnnotation = "avp.kubernetes.io/ignore" | ||
KVVersionAnnotation = "avp.kubernetes.io/kv-version" |
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.
Doesn't really matter but VaultKVVersionAnnotation
might be a better name especially since that only applies to Vault and this plugin now supports non-Vault things
Description
Update annotations to follow kubernetes annotation convention
Fixes: #112
Checklist
Please make sure that your PR fulfills the following requirements:
Type of Change