Skip to content

Commit a67e898

Browse files
committed
Add chart field in values.yaml
1 parent 320e35b commit a67e898

File tree

3 files changed

+27
-17
lines changed

3 files changed

+27
-17
lines changed

hack/charts/mysql-operator/README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,26 @@ helm install presslabs/mysql-operator --name mysql-operator
1111
## Configuration
1212
The following table contains the configuration parameters for mysql-operator and default values.
1313

14-
| Parameter | Description | Default value |
15-
| --- | --- | --- |
16-
| `replicaCount` | replicas for controller | `1` |
17-
| `image` | controller container image | `quay.io/presslabs/mysql-operator:v0.1.5` |
18-
| `imagePullPolicy` | controller image pull policy | `IfNotPresent` |
19-
| `sidecarImage` | mysql operator sidecar image | `quay.io/presslabs/mysql-helper:v0.1.5` |
20-
| `installCRDs` | whether or not to install CRDS | `true` |
21-
| `resources` | controller pod resources | `{}` |
22-
| `nodeSelector` | controller pod nodeSelector | `{}` |
23-
| `tolerations` | controller pod tolerations | `{}` |
24-
| `affinity` | controller pod affinity | `{}` |
25-
| `extraArgs` | args that are passed to controller | `[]` |
26-
| `rbac.create` | whether or not to create rbac service account, role and roleBinding | `true` |
27-
| `rbac.serviceAccountName` | If `rbac.create` is false then this service account is used. | `default` |
28-
| `orchestrator.replicas` | Control orchestraotr replicas | `3` |
29-
| `orchestrator.image` | Orchestrator container image | `quay.io/presslabs/orchestrator:latest` |
30-
| `orchestrator.*` | More ochestrator values that can be tuned. See [values.yaml](https://github.com/presslabs/docker-orchestrator/blob/master/charts/orchestrator/values.yaml) | |
14+
| Parameter | Description | Default value |
15+
| --- | --- | --- |
16+
| `replicaCount` | Replicas for controller | `1` |
17+
| `image` | Controller container image | `quay.io/presslabs/mysql-operator:v0.1.5` |
18+
| `imagePullPolicy` | Controller image pull policy | `IfNotPresent` |
19+
| `sidecarImage` | Mysql operator sidecar image | `quay.io/presslabs/mysql-helper:v0.1.5` |
20+
| `installCRDs` | Whether or not to install CRDS | `true` |
21+
| `resources` | Controller pod resources | `{}` |
22+
| `nodeSelector` | Controller pod nodeSelector | `{}` |
23+
| `tolerations` | Controller pod tolerations | `{}` |
24+
| `affinity` | Controller pod affinity | `{}` |
25+
| `extraArgs` | Args that are passed to controller, check controller command line flags | `[]` |
26+
| `watchNamespace` | The namespace where the operator to watch for resources. Leave empty to watch all namespaces. | `""` |
27+
| `rbac.create` | Whether or not to create rbac service account, role and roleBinding | `true` |
28+
| `rbac.serviceAccountName` | If `rbac.create` is false then this service account is used | `default` |
29+
| `orchestrator.replicas` | Control orchestraotr replicas | `3` |
30+
| `orchestrator.image` | Orchestrator container image | `quay.io/presslabs/orchestrator:latest` |
31+
| `orchestrator.*` | More ochestrator values that can be tuned. Check orchestrator chart values.yaml | |
32+
33+
34+
For more orchestrator chart values check
35+
[values.yaml](https://github.com/presslabs/docker-orchestrator/blob/master/charts/orchestrator/values.yaml)
36+
from Orchestrator [chart](https://github.com/presslabs/docker-orchestrator/).

hack/charts/mysql-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ spec:
4141
{{- if .Values.sidecarImage }}
4242
- --sidecar-image={{ .Values.sidecarImage }}
4343
{{- end -}}
44+
{{- if .Values.watchNamespace }}
45+
- --namespace={{ .Values.watchNamespace }}
46+
{{- end }}
4447
{{- range $arg := .Values.extraArgs }}
4548
- {{ $arg }}
4649
{{- end }}

hack/charts/mysql-operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ imagePullPolicy: IfNotPresent
88
sidecarImage: quay.io/presslabs/mysql-operator-sidecar:latest
99

1010
installCRDs: true
11+
watchNamespace:
1112

1213
resources: {}
1314
# limits:

0 commit comments

Comments
 (0)