Skip to content

Commit fa0d425

Browse files
authored
feat(chart): Modify configmaps (#1172)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent b2cd67a commit fa0d425

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a
77

88
type: application
99
# Bump the patch (not minor, not major) version on each change in the Chart Source code
10-
version: 1.85.1
10+
version: 1.85.2
1111
# Do not update appVersion, this is handled automatically by the release process
1212
appVersion: v0.95.2
1313

deployment/chainloop/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ chainloop config save \
478478
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
479479
| `kubeVersion` | Override Kubernetes version | `""` |
480480
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
481+
| `commonLabels` | Labels to add to all deployed objects | `{}` |
481482
| `development` | Deploys Chainloop pre-configured FOR DEVELOPMENT ONLY. It includes a Vault instance in development mode and pre-configured authentication certificates and passphrases | `false` |
482483

483484
### Secrets Backend

deployment/chainloop/templates/cas/config.configmap.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ apiVersion: v1
77
kind: ConfigMap
88
metadata:
99
name: {{ include "chainloop.cas.fullname" . }}
10-
labels:
11-
{{- include "chainloop.cas.labels" . | nindent 4 }}
10+
namespace: {{ include "common.names.namespace" . | quote }}
11+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
12+
app.kubernetes.io/component: cas
13+
{{- if .Values.commonAnnotations }}
14+
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
15+
{{- end }}
1216
data:
1317
server.yaml: |
1418
server:

deployment/chainloop/templates/controlplane/config.configmap.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ apiVersion: v1
77
kind: ConfigMap
88
metadata:
99
name: {{ include "chainloop.controlplane.fullname" . }}
10-
labels:
11-
{{- include "chainloop.controlplane.labels" . | nindent 4 }}
10+
namespace: {{ include "common.names.namespace" . | quote }}
11+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
12+
app.kubernetes.io/component: controlplane
13+
{{- if .Values.commonAnnotations }}
14+
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
15+
{{- end }}
1216
data:
1317
{{- if .Values.controlplane.auth.allowList }}
1418
allow_list.yaml: |

deployment/chainloop/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ kubeVersion: ""
2929
##
3030
commonAnnotations: {}
3131

32+
## @param commonLabels Labels to add to all deployed objects
33+
##
34+
commonLabels: {}
35+
3236
## @param development Deploys Chainloop pre-configured FOR DEVELOPMENT ONLY. It includes a Vault instance in development mode and pre-configured authentication certificates and passphrases
3337
##
3438
development: false

0 commit comments

Comments
 (0)