Skip to content

Commit

Permalink
Update MariadbOperator sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Dec 4, 2023
1 parent c660c46 commit 088eaff
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 34 deletions.
87 changes: 79 additions & 8 deletions bundle/manifests/mariadb-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,61 @@ metadata:
},
"spec": {
"affinity": {},
"certController": {
"affinity": {},
"caValidity": "35064h",
"certValidity": "8766h",
"enabled": true,
"extrArgs": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"ha": {
"enabled": false,
"replicas": 3
},
"image": {
"pullPolicy": "IfNotPresent",
"repository": "ghcr.io/mariadb-operator/mariadb-operator",
"tag": ""
},
"imagePullSecrets": [],
"lookaheadValidity": "2160h",
"nodeSelector": {},
"podAnnotations": {},
"podSecurityContext": {},
"requeueDuration": "5m",
"resources": {},
"securityContext": {},
"serviceAccount": {
"annotations": {},
"automount": true,
"enabled": true,
"extraLabels": {},
"name": ""
},
"serviceMonitor": {
"additionalLabels": {},
"enabled": true,
"interval": "30s",
"scrapeTimeout": "25s"
},
"tolerations": []
},
"clusterName": "cluster.local",
"extrArgs": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"fullnameOverride": "",
"ha": {
"enabled": false,
"leaseId": "mariadb.mmontes.io",
"replicas": 3
},
"image": {
"pullPolicy": "IfNotPresent",
"repository": "ghcr.io/mariadb-operator/mariadb-operator",
"tag": ""
},
"imagePullSecrets": [],
"logLevel": "INFO",
"metrics": {
"enabled": false,
Expand All @@ -38,32 +81,60 @@ metadata:
"nodeSelector": {},
"podAnnotations": {},
"podSecurityContext": {},
"rbac": {
"enabled": true
},
"resources": {},
"securityContext": {},
"serviceAccount": {
"annotations": {},
"automount": true,
"enabled": true,
"extraLabels": {},
"name": ""
},
"tolerations": [],
"webhook": {
"affinity": {},
"certificate": {
"certManager": false,
"default": {
"annotations": {},
"caExpirationDays": 365,
"certExpirationDays": 365
"annotations": {},
"cert": {
"caPath": "/tmp/k8s-webhook-server/certificate-authority",
"certManager": {
"duration": "",
"enabled": false,
"issuerRef": {},
"renewBefore": ""
},
"path": "/tmp/k8s-webhook-server/serving-certs"
"path": "/tmp/k8s-webhook-server/serving-certs",
"secretAnnotations": {}
},
"extrArgs": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"ha": {
"enabled": false,
"replicas": 3
},
"hostNetwork": false,
"image": {
"pullPolicy": "IfNotPresent",
"repository": "ghcr.io/mariadb-operator/mariadb-operator",
"tag": ""
},
"imagePullSecrets": [],
"nodeSelector": {},
"podAnnotations": {},
"podSecurityContext": {},
"port": 10250,
"resources": {},
"securityContext": {},
"serviceAccount": {
"annotations": {},
"automount": true,
"enabled": true,
"extraLabels": {},
"name": ""
},
"serviceMonitor": {
"additionalLabels": {},
"enabled": true,
Expand Down
232 changes: 206 additions & 26 deletions config/samples/helm_v1alpha1_mariadboperator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,236 @@ kind: MariadbOperator
metadata:
name: mariadb-operator
spec:
# Default values copied from <project_dir>/helm-charts/mariadb-operator/values.yaml
affinity: {}
clusterName: cluster.local
nameOverride: ""
fullnameOverride: ""
ha:
enabled: false
leaseId: mariadb.mmontes.io
replicas: 3

image:
pullPolicy: IfNotPresent
repository: ghcr.io/mariadb-operator/mariadb-operator
pullPolicy: IfNotPresent
# -- Image tag to use. By default the chart appVersion is used
tag: ""
imagePullSecrets: []

# -- Controller log level
logLevel: INFO

# -- Cluster DNS name
clusterName: cluster.local

ha:
# -- Enable high availability
enabled: false
# -- Number of replicas
replicas: 3

metrics:
# -- Enable prometheus metrics. Prometheus must be installed in the cluster
enabled: false
serviceMonitor:
additionalLabels: {}
# -- Enable controller ServiceMonitor
enabled: true
# -- Labels to be added to the controller ServiceMonitor
additionalLabels: {}
# release: kube-prometheus-stack
# -- Interval to scrape metrics
interval: 30s
# -- Timeout if metrics can't be retrieved in given time interval
scrapeTimeout: 25s
nameOverride: ""
nodeSelector: {}

serviceAccount:
# -- Specifies whether a service account should be created
enabled: true
# -- Automounts the service account token in all containers of the Pod
automount: true
# -- Annotations to add to the service account
annotations: {}
# -- Extra Labels to add to the service account
extraLabels: {}
# -- The name of the service account to use.
# If not set and enabled is true, a name is generated using the fullname template
name: ""

rbac:
# -- Specifies whether RBAC resources should be created
enabled: true

# -- Extra arguments to be passed to the controller entrypoint
extrArgs: []

# -- Extra volumes to pass to pod.
extraVolumes: []

# -- Extra volumes to mount to the container.
extraVolumeMounts: []

# -- Annotations to add to controller Pod
podAnnotations: {}

# -- Security context to add to controller Pod
podSecurityContext: {}
resources: {}

# -- Security context to add to controller container
securityContext: {}

# -- Resources to add to controller container
resources: {}
# requests:
# cpu: 10m
# memory: 32Mi

# -- Node selectors to add to controller Pod
nodeSelector: {}

# -- Tolerations to add to controller Pod
tolerations: []

# -- Affinity to add to controller Pod
affinity: {}

webhook:
affinity: {}
certificate:
certManager: false
default:
annotations: {}
caExpirationDays: 365
certExpirationDays: 365
path: /tmp/k8s-webhook-server/serving-certs
hostNetwork: false
image:
pullPolicy: IfNotPresent
repository: ghcr.io/mariadb-operator/mariadb-operator
pullPolicy: IfNotPresent
# -- Image tag to use. By default the chart appVersion is used
tag: ""
nodeSelector: {}
imagePullSecrets: []
ha:
# -- Enable high availability
enabled: false
# -- Number of replicas
replicas: 3
cert:
certManager:
# -- Whether to use cert-manager to issue and rotate the certificate. If set to false, mariadb-operator's cert-controller will be used instead.
enabled: false
# -- Issuer reference to be used in the Certificate resource. If not provided, a self-signed issuer will be used.
issuerRef: {}
# -- Duration to be used in the Certificate resource,
duration: ""
# -- Renew before duration to be used in the Certificate resource.
renewBefore: ""
# -- Annotatioms to be added to webhook TLS secret.
secretAnnotations: {}
# -- Path where the CA certificate will be mounted.
caPath: /tmp/k8s-webhook-server/certificate-authority
# -- Path where the certificate will be mounted.
path: /tmp/k8s-webhook-server/serving-certs
# -- Port to be used by the webhook server
port: 10250
# -- Expose the webhook server in the host network
hostNetwork: false
serviceMonitor:
# -- Enable webhook ServiceMonitor. Metrics must be enabled
enabled: true
# -- Labels to be added to the webhook ServiceMonitor
additionalLabels: {}
# release: kube-prometheus-stack
# -- Interval to scrape metrics
interval: 30s
# -- Timeout if metrics can't be retrieved in given time interval
scrapeTimeout: 25s
serviceAccount:
# -- Specifies whether a service account should be created
enabled: true
# -- Automounts the service account token in all containers of the Pod
automount: true
# -- Annotations to add to the service account
annotations: {}
# -- Extra Labels to add to the service account
extraLabels: {}
# -- The name of the service account to use.
# If not set and enabled is true, a name is generated using the fullname template
name: ""
# -- Annotations for webhook configurations.
annotations: {}
# -- Extra arguments to be passed to the webhook entrypoint
extrArgs: []
# -- Extra volumes to pass to webhook Pod
extraVolumes: []
# -- Extra volumes to mount to webhook container
extraVolumeMounts: []
# -- Annotations to add to webhook Pod
podAnnotations: {}
# -- Security context to add to webhook Pod
podSecurityContext: {}
port: 10250
resources: {}
# -- Security context to add to webhook container
securityContext: {}
# -- Resources to add to webhook container
resources: {}
# requests:
# cpu: 10m
# memory: 32Mi
# -- Node selectors to add to controller Pod
nodeSelector: {}
# -- Tolerations to add to controller Pod
tolerations: []
# -- Affinity to add to controller Pod
affinity: {}

certController:
# -- Specifies whether the cert-controller should be created.
enabled: true
image:
repository: ghcr.io/mariadb-operator/mariadb-operator
pullPolicy: IfNotPresent
# -- Image tag to use. By default the chart appVersion is used
tag: ""
imagePullSecrets: []
ha:
# -- Enable high availability
enabled: false
# -- Number of replicas
replicas: 3
# -- CA certificate validity. It must be greater than certValidity.
caValidity: 35064h
# -- Certificate validity.
certValidity: 8766h
# -- Duration used to verify whether a certificate is valid or not.
lookaheadValidity: 2160h
# -- Requeue duration to ensure that certificate gets renewed.
requeueDuration: 5m
serviceMonitor:
additionalLabels: {}
# -- Enable cert-controller ServiceMonitor. Metrics must be enabled
enabled: true
# -- Labels to be added to the cert-controller ServiceMonitor
additionalLabels: {}
# release: kube-prometheus-stack
# -- Interval to scrape metrics
interval: 30s
# -- Timeout if metrics can't be retrieved in given time interval
scrapeTimeout: 25s
serviceAccount:
# -- Specifies whether a service account should be created
enabled: true
# -- Automounts the service account token in all containers of the Pod
automount: true
# -- Annotations to add to the service account
annotations: {}
# -- Extra Labels to add to the service account
extraLabels: {}
# -- The name of the service account to use.
# If not set and enabled is true, a name is generated using the fullname template
name: ""
# -- Extra arguments to be passed to the cert-controller entrypoint
extrArgs: []
# -- Extra volumes to pass to cert-controller Pod
extraVolumes: []
# -- Extra volumes to mount to cert-controller container
extraVolumeMounts: []
# -- Annotations to add to cert-controller Pod
podAnnotations: {}
# -- Security context to add to cert-controller Pod
podSecurityContext: {}
# -- Security context to add to cert-controller container
securityContext: {}
# -- Resources to add to cert-controller container
resources: {}
# requests:
# cpu: 10m
# memory: 32Mi
# -- Node selectors to add to controller Pod
nodeSelector: {}
# -- Tolerations to add to controller Pod
tolerations: []
# -- Affinity to add to controller Pod
affinity: {}

0 comments on commit 088eaff

Please sign in to comment.