[stable/karma] Add certSecretNames parameter (#18433)

* stable/karma: Add certSecretNames parameter

Signed-off-by: Branden Rolston <branden@mesosphere.com>

* stable/karma: Bump version

Signed-off-by: Branden Rolston <branden@mesosphere.com>

* Update karma version to 1.2.0

Co-Authored-By: David J. M. Karlsen <david@davidkarlsen.com>

Signed-off-by: Branden Rolston <branden@mesosphere.com>
This commit is contained in:
Branden Rolston
2019-11-06 01:01:51 -08:00
committed by Kubernetes Prow Robot
co-authored by David J. M. Karlsen
parent 3b61dd44a1
commit a29a995a19
4 changed files with 50 additions and 30 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ home: https://github.com/prymitive/karma
sources:
- https://hub.docker.com/r/lmierzwa/karma/
- https://github.com/prymitive/karma
version: 1.1.20
version: 1.2.0
maintainers:
- name: davidkarlsen
email: david@davidkarlsen.com
+28 -27
View File
@@ -37,33 +37,34 @@ The command removes all the Kubernetes components associated with the chart and
The following table lists the configurable parameters of the karma chart and their default values.
| Parameter | Description | Default |
|-------------------------------------|----------------------------------------|-------------------------------------------|
| `replicaCount` | Number of replicas | `1` |
| `image.repository` | The image to run | `lmierzwa/karma` |
| `image.tag` | The image tag to pull | `v0.48` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `nameOverride` | Override name of app | `` |
| `fullnameOverride` | Override full name of app | `` |
| `service.type` | Type of Service | `ClusterIP` |
| `service.port` | Port for kubernetes service | `80` |
| `service.annotations` | Annotations to add to the service | `{}` |
| `resources.requests.cpu` | CPU resource requests | |
| `resources.limits.cpu` | CPU resource limits | |
| `resources.requests.memory` | Memory resource requests | |
| `resources.limits.memory` | Memory resource limits | |
| `ingress` | Settings for ingress | `{}` |
| `nodeSelector` | Settings for nodeselector | `{}` |
| `tolerations` | Settings for toleration | `{}` |
| `affinity` | Settings for affinity | `{}` |
| `securityContext` | Settings for security context | `{}` |
| `serviceAccount.create` | Create service-account | `true` |
| `serviceAccount.name` | Override service-account name | `` |
| `livenessProbe.delay` | Specify delay in executing probe | `5` |
| `livenessProbe.period` | Speicy period of liveness probe | `5` |
| `livenessProbe.path` | Specify path liveness probe should hit | `/` |
| `configMap.enabled` | Provide a custom karma configuration | `false` |
| `configMap.rawConfig` | A karma compatible YAML configuration | `` |
| Parameter | Description | Default |
|-------------------------------------|--------------------------------------------------------|-------------------------------------------|
| `replicaCount` | Number of replicas | `1` |
| `image.repository` | The image to run | `lmierzwa/karma` |
| `image.tag` | The image tag to pull | `v0.48` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `nameOverride` | Override name of app | `` |
| `fullnameOverride` | Override full name of app | `` |
| `service.type` | Type of Service | `ClusterIP` |
| `service.port` | Port for kubernetes service | `80` |
| `service.annotations` | Annotations to add to the service | `{}` |
| `resources.requests.cpu` | CPU resource requests | |
| `resources.limits.cpu` | CPU resource limits | |
| `resources.requests.memory` | Memory resource requests | |
| `resources.limits.memory` | Memory resource limits | |
| `ingress` | Settings for ingress | `{}` |
| `nodeSelector` | Settings for nodeselector | `{}` |
| `tolerations` | Settings for toleration | `{}` |
| `affinity` | Settings for affinity | `{}` |
| `securityContext` | Settings for security context | `{}` |
| `serviceAccount.create` | Create service-account | `true` |
| `serviceAccount.name` | Override service-account name | `` |
| `livenessProbe.delay` | Specify delay in executing probe | `5` |
| `livenessProbe.period` | Speicy period of liveness probe | `5` |
| `livenessProbe.path` | Specify path liveness probe should hit | `/` |
| `configMap.enabled` | Provide a custom karma configuration | `false` |
| `configMap.rawConfig` | A karma compatible YAML configuration | `` |
| `certSecretNames` | Mount Alertmanager certificates to `/etc/certs/<name>` | `[]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+13 -2
View File
@@ -58,11 +58,16 @@ spec:
periodSeconds: {{ .Values.livenessProbe.period }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.configMap.enabled }}
volumeMounts:
{{- if .Values.configMap.enabled }}
- name: karma-config
mountPath: /etc/karma
{{- end }}
{{- range .Values.certSecretNames }}
- name: {{ . }}
mountPath: /etc/certs/{{ . }}
readOnly: true
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
@@ -75,9 +80,15 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.configMap.enabled }}
volumes:
{{- if .Values.configMap.enabled }}
- name: karma-config
configMap:
name: {{ .Release.Name }}-config
{{- end }}
{{- range .Values.certSecretNames }}
- name: {{ . }}
secret:
defaultMode: 420
secretName: {{ . }}
{{- end }}
+8
View File
@@ -126,3 +126,11 @@ configMap:
# sentry:
# private: secret
# public: 123456789
# Names of secrets that will be mounted to `/etc/certs/<secret_name>` in the karma container.
# These secrets can be used to configure TLS for Karma's Alertmanagers by passing their paths to
# the appropriate Karma configuration parameters. For example, secret `foo` containing a `ca.crt`
# will yield a file at `/etc/certs/foo/ca.crt`. That path can then be provided as the value to
# `configMap.rawConfig.alertmanager.servers[].tls.ca`.
# See <https://github.com/prymitive/karma/blob/master/docs/CONFIGURATION.md#alertmanagers>.
certSecretNames: []