-
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
csc: Add ability to update CSC defaults during upgrade/downgrade #2513
csc: Add ability to update CSC defaults during upgrade/downgrade #2513
Conversation
Hello ebaneck,My role is to assist you with the merge of this Status report is not available. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
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:
|
71211fe
to
f4f899d
Compare
History mismatchMerge commit #ffa183d799bcbde3875b3e21e20b9e1265188f67 on the integration branch It is likely due to a rebase of the branch Please use the |
8109c12
to
11926d0
Compare
Since we make use of csc defaults in the charts, the render utility script should import the csc defaults using jinja syntax
11926d0
to
05721b0
Compare
salt/metalk8s/addons/prometheus-operator/deployed/service-configuration.sls
Outdated
Show resolved
Hide resolved
salt/metalk8s/addons/prometheus-operator/deployed/service-configuration.sls
Outdated
Show resolved
Hide resolved
salt/metalk8s/addons/prometheus-operator/deployed/service-configuration.sls
Outdated
Show resolved
Hide resolved
This commit refactors service configuration configmaps to become empty objects that will hold and persist user customizable settings
…nfigurations This chart is re-rendered using: ``` $ ./charts/render.py prometheus-operator --namespace metalk8s-monitoring charts/prometheus-operator.yaml --service-config grafana metalk8s-grafana-config --service-config prometheus metalk8s-prometheus-config --service-config alertmanager metalk8s-alertmanager-config charts/prometheus-operator/ > salt/metalk8s/addons/prometheus-operator/deployed/chart.sls ```
This chart is re-rendered using: ``` $ ./charts/render.py dex --namespace metalk8s-auth charts/dex.yaml --service-config dex metalk8s-dex-config charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ```
05721b0
to
619ebba
Compare
619ebba
to
e12ce23
Compare
This commit makes use of the salt module `dictupdate.merge` ensuring that default CSC values are merged with user specified CSC while still providing a fallback configuation for extreme scenarios. This above merge is implemented to ensure that we can do the following: 1. Deploy metalk8s addons with minimum default service values 2. Metalk8s administrators can update and add new configurations values 3. In cases of no Administrator configurations, the default values will be used to deploy the services. 4. In cases where CSC configmaps are removed, we can fall back to default values closes: #2488
This commit adds csc configuration files for dex, alertmanager, prometheus and grafana to their respective addon folders. These default configurations will be read during addon rendering by salt and then the default values will be used to deploy the respective services.
Initially, we expect default CSC ConfigMaps to contain default values and so we read these default values e.g `replicas` to perform csc persistence tests But with our new approach, default CSC ConfigMaps are deployed without default service values, so we need to adapt the test accordingly
/reset |
Reset completeI have successfully deleted this pull request's integration branches. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
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:
|
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,
/approve |
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: approve |
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 ebaneck. |
Component:
'salt', 'kubernetes', 'csc'
Context:
See #2488
Summary:
Flow:
alertmanager.yaml
render.py
scriptcsc ConfigMap name
,namespace
anddefault csc
csc ConfigMap
to those ofdefault CSC
and use the resulting object to deploy the AddonAcceptance criteria:
no regression
Closes: #2488