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

add support for secret types #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

phmayer67
Copy link

added support for docker secret types

Copy link
Owner

@bzon bzon left a 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")
Copy link
Owner

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?

Copy link
Author

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()
Copy link
Owner

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.

Copy link
Author

Choose a reason for hiding this comment

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

will do

@bzon
Copy link
Owner

bzon commented Apr 8, 2019

@phmayer67 thanks for the PR. I would be nice if you can add a section in the documentation for this as well.

@kowalczykp
Copy link
Contributor

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

@bzon
Copy link
Owner

bzon commented Mar 14, 2020

@kowalczykp I think this PR is dead... Feel free to create a new PR. Thanks.

@kowalczykp
Copy link
Contributor

cool, will do so 👍

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.

None yet

3 participants