-
Notifications
You must be signed in to change notification settings - Fork 55
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
[doc] 4.5.3.1.2 Update the Authentication Connector - do not use kubectl edit #671
Comments
@cclhsu Why was kubectl chosen here? Can we simply replace this with changing the yaml file? |
This should be only for runtime change when @cclhsu worked on this documentation. However dex is part of addon, so it would be better to change the addon manifest then apply instead of runtime only by @cclhsu please help evaluate then change the doc if need. Thanks. |
I believe we encountered one scenario 591 when addon upgrade where yaml in ~/clusters/<CLUSTER_NAME> is not consisted with resource in running cluster. In such cases, user required to download the existing oidc-dex-config ConfigMap before addon upgrade, then re-apply the downloaded oidc-dex-config ConfigMap after addon upgraded. Or just simply edit the config as current document does. |
We should never recommend to use "edit" as this causes the deployments to be "non-immutable" and "non-reproducible" anymore. |
Yes as @Martin-Weiss said, there is an on-going effort about kustomize to have merge strategy when upgrading new addons with skuba. (ref: SUSE/skuba#858) Also understand @cclhsu said, but even we ask user to modify addon manifest, that is still not a source of truth, because it's just located in an operator's workstation w/ single copy and w/o any version control (ex: skuba does have gitops DNA yet). So I would suggest to do below as a workaround for the current situation.
|
I have seen that for some reason the gangway secret changed and re-applying the old dex secret config will break authentication in case the secret in the configmap changed in the meantime.. |
Closed with #712 |
JFYI, kustomize just getting merged in skuba master branch, so it means there will be some improvement in the future and doc updated. |
4.5.3.1.2 Update the Authentication Connector
https://susedoc.github.io/doc-caasp/master/caasp-admin/single-html/#_sec.admin.security.rbac.update
From a best practice point of view we should never use kubectl edit.
Could we change this to "adjust yaml and apply yaml"?
The text was updated successfully, but these errors were encountered: