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
Refactor iamserviceaccounts #3135
Conversation
a504080
to
416173c
Compare
991012f
to
d58d516
Compare
|
saFilter.AppendIncludeNames(serviceAccount.NameString()) | ||
} else if cmd.CobraCommand.Flag("namespace").Changed { // only namespace was given | ||
notFoundErr = fmt.Errorf("no iamserviceaccounts found in namespace %q", serviceAccount.Namespace) | ||
err = saFilter.AppendIncludeGlobs(remoteServiceAccounts, serviceAccount.Namespace+"/*") |
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.
does this mean globs aren't supported?
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.
yes I think this has removed that functionality, i'm happy to bring it back.
Before I do that I think its worth noting that the --help
output shows: --namespace string namespace to look for iamserviceaccount (default "default")
, so I'm not sure if anyone ever knew it was even supported. I'm sort of open to just not adding it back in 🤷♂️
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.
i think we can probably live without it 🤷♀️
ee8b94a
to
ec916ba
Compare
ec916ba
to
c3bffa9
Compare
/rebase |
b393dee
to
64cca6c
Compare
dd14d55
to
eb9019e
Compare
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.
LGTM
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.
one nit
13272e3
to
7642434
Compare
7642434
to
17c4292
Compare
17c4292
to
8b8f23e
Compare
Description
This PR was just intended to be a refactor, but in the process found a few bugs as shown.
Get
Previous output
Previously
get
specifying just--name
was broken, e.g.:Also when the namespace didn't exist you would get strange output:
When specifying not-existing namespace and a name it would just return everything:
New output
Checklist
README.md
, or theuserdocs
directory)area/nodegroup
) and kind (e.g.kind/improvement
)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯