-
Notifications
You must be signed in to change notification settings - Fork 423
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
--backend-mode behavior unclear #297
Comments
I've confirmed that enabling the CRD mode blocks subsequent modes from being loaded, and by default it's the first mode so that's the cause of breakage. Absolutely not intentional, I will fix it and push a new release. Totally agree about the need for more documentation. Also about the naming of the flags. Documentation would help if the meaning of each "mode" were thoroughly explained...but obviously |
Thanks for the response, Matt. I'll pull down and test once you have a new release.
|
I've opened a PR to fix this, please take a look at https://github.com/kubernetes-sigs/aws-iam-authenticator/pull/303/files#diff-04c6e90faac2675aa89e2176d2eec7d8R85 |
Version: aws-iam-authenticator 0.5.0
After installing the new kops 1.17.0-beta.1, aws-iam-authenticator stopped working with the previous config. That's already pretty well covered in this issue:
#288
Documentation here:
https://github.com/kubernetes-sigs/aws-iam-authenticator#configure-iamidentitymapping-custom-resource-definitions
seems to indicate that a
--backend-mode
setting ofFile,CRD
would first attempt the File method, then the CRD method.From this line in the document:
"The --backend-mode flag determines which of these methods is enabled and their order of precedence (first match wins)."
However there isn't really definition around what a "match" means (I would assume that would mean that a configuration was found), nor the default backend-mode if none is provided.
With the CRD installed (because kops automatically installs it during cluster creation if aws-authenticator is enabled), but no entries in the CRD:
And a valid ConfigMap (which requires the usage of the "File" backend-mode setting, not the "ConfigMap" setting, which is confusing but also not the point of this issue):
The startup output of aws-iam-authenticator is as follows (--backend-mode=File,CRD)
Note that there is NO output for it detecting and configuring the File backend. Now if the
--backend-mode
is changed to be only "--backend-mode=File", this is the startup output (no changes at all to the configmap or CRD entries):Is the expectation that, if the CRD exists in the cluster (but no entries in the CRD exist), that CRD is still used as the backend?
Also, documentation on the default backend-mode would be beneficial.
The text was updated successfully, but these errors were encountered: