-
Notifications
You must be signed in to change notification settings - Fork 45
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
salt,dex: Allow to disable Dex deployment and configure another IDP #3688
Conversation
Hello alexandre-allard-scality,My role is to assist you with the merge of this Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
b268f49
to
c247195
Compare
b8e09cc
to
abe027e
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.
Overall LGTM but I think we will need to add some E2E tests maybe just a really simple one for the moment
Like just a simple install with no OIDC for the moment, we put it in post-merge so that we can enrich it in the future with a real scenario (deploy with no OIDC, then set up another OIDC then re-configure the product to use this new OIDC)
salt/metalk8s/addons/prometheus-operator/deployed/grafana-ini-configmap.sls
Show resolved
Hide resolved
salt/metalk8s/addons/prometheus-operator/config/grafana.yaml.j2
Outdated
Show resolved
Hide resolved
salt/metalk8s/addons/prometheus-operator/config/grafana.yaml.j2
Outdated
Show resolved
Hide resolved
salt/metalk8s/addons/prometheus-operator/config/grafana.yaml.j2
Outdated
Show resolved
Hide resolved
74b237a
to
121b4a1
Compare
121b4a1
to
9b16460
Compare
cc1aaef
to
cfbd463
Compare
To disable Dex deployment at installation, you must add the following to the boostrap config: ``` addons: dex: enabled: false ```
Extract Grafana INI configuration and put it in a CSC ConfigMap to allow dynamic configuration. Re-render the chart with the following command: ``` ./charts/render.py prometheus-operator \ charts/kube-prometheus-stack.yaml \ charts/kube-prometheus-stack/ \ --namespace metalk8s-monitoring \ --service-config grafana \ metalk8s-grafana-config \ metalk8s/addons/prometheus-operator/config/grafana.yaml.j2 \ metalk8s-monitoring \ --service-config prometheus \ metalk8s-prometheus-config \ metalk8s/addons/prometheus-operator/config/prometheus.yaml \ metalk8s-monitoring \ --service-config alertmanager \ metalk8s-alertmanager-config \ metalk8s/addons/prometheus-operator/config/alertmanager.yaml \ metalk8s-monitoring \ --drop-prometheus-rules charts/drop-prometheus-rules.yaml \ --patch 'PrometheusRule,metalk8s-monitoring,prometheus-operator-kubernetes-system-kubelet,spec:groups:0:rules:1:for,"5m"' \ --remove-manifest ConfigMap prometheus-operator-grafana \ > salt/metalk8s/addons/prometheus-operator/deployed/chart.sls ```
Since we can deploy MetalK8s without Dex we need to be able to skip test that rely on Dex
We add a new stage in post-merge to test installation without Dex, note that this stage would likely be updated in the future in order to deploy another IDP and use this new IDP for Grafana and MetalK8s UI
cfbd463
to
48d3734
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.
/bypass_author_approval (it does not work in review comment apparently)
/bypass_author_approval |
Build failedThe build for commit did not succeed in branch improvement/no-idp. The following options are set: bypass_author_approval |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: bypass_author_approval |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye alexandre-allard. |
Component: salt, dex
Context:
We want to be able to not deploy Dex and rather rely on an external IDP.
Summary:
To disable Dex deployment at installation,
you must add the following to the boostrap config:
Acceptance criteria:
We can use another IDP than Dex (e.g. Keycloak) and everything work fine.