-
Notifications
You must be signed in to change notification settings - Fork 15
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
add support for secret types #2
base: master
Are you sure you want to change the base?
Conversation
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.
Please see some minor review. Overall looks good but the test is currently failing. Can we also add a test to validate the created secret (in string format)?
@@ -42,9 +42,10 @@ func main() { | |||
interval := flag.Int("interval", 1200, "Refresh interval in seconds") | |||
profile := flag.String("profile", "", "The AWS Account profile") | |||
secretName := flag.String("secretName", "ecr-auth-cfg", "The name of the secret") | |||
secretType := flag.String("secretType", "Opaque", "The secret type to store") |
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.
Can we provide the valid options in the description?
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.
will do
@@ -42,9 +42,10 @@ func main() { | |||
interval := flag.Int("interval", 1200, "Refresh interval in seconds") | |||
profile := flag.String("profile", "", "The AWS Account profile") | |||
secretName := flag.String("secretName", "ecr-auth-cfg", "The name of the secret") | |||
secretType := flag.String("secretType", "Opaque", "The secret type to store") | |||
flag.Parse() |
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.
Please also do type assertion or validation after parsing the flags.
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.
will do
@phmayer67 thanks for the PR. I would be nice if you can add a section in the documentation for this as well. |
Any chance on getting that finished/merged? It would be quite useful for me, and I'd prefer to avoid keeping a fork. Can help with this PR |
@kowalczykp I think this PR is dead... Feel free to create a new PR. Thanks. |
cool, will do so 👍 |
added support for docker secret types