Skip to content
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

Upgrade Operator SDK version to v1.4.2 #1038

Merged
merged 2 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions charts/vald-helm-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,45 @@ spec:
{{- if .Values.enableMetrics }}
- "--metrics-addr=:{{ .Values.metricsPort }}"
{{- end }}
- "--health-probe-bind-address=:{{ .Values.healthPort }}"
- "--reconcile-period={{ .Values.reconcilePeriod }}"
- "--max-concurrent-reconciles={{ .Values.maxConcurrentReconciles }}"
- "--zap-encoder={{ .Values.logging.format }}"
- "--zap-log-level={{ .Values.logging.level }}"
- "--zap-stacktrace-level={{ .Values.logging.stacktraceLevel }}"
{{- if .Values.enableMetrics }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.httpGet.path }}
port: {{ .Values.livenessProbe.httpGet.port }}
scheme: {{ .Values.livenessProbe.httpGet.scheme }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.httpGet.path }}
port: {{ .Values.readinessProbe.httpGet.port }}
scheme: {{ .Values.readinessProbe.httpGet.scheme }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
{{- end }}
ports:
- name: health
protocol: TCP
containerPort: {{ .Values.healthPort }}
{{- if .Values.enableMetrics }}
- name: prometheus
protocol: TCP
containerPort: {{ .Values.metricsPort }}
{{- end }}
{{- end }}
env:
- name: POD_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald-helm-operator/values.schema.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema#","title":"Values","type":"object","properties":{"affinity":{"type":"object"},"annotations":{"type":"object"},"enableLeaderElection":{"type":"boolean"},"enableMetrics":{"type":"boolean"},"image":{"type":"object","properties":{"pullPolicy":{"type":"string","enum":["Always","Never","IfNotPresent"]},"repository":{"type":"string"},"tag":{"type":"string"}}},"leaderElectionID":{"type":"string"},"logging":{"type":"object","properties":{"format":{"type":"string","enum":["console","json"]},"level":{"type":"string","enum":["debug","info","error"]},"stacktraceLevel":{"type":"string","enum":["debug","info","error"]}}},"maxConcurrentReconciles":{"type":"integer"},"metricsPort":{"type":"integer"},"name":{"type":"string"},"namespaced":{"type":"boolean"},"nodeSelector":{"type":"object"},"podAnnotations":{"type":"object"},"rbac":{"type":"object","properties":{"create":{"type":"boolean"},"name":{"type":"string"}}},"reconcilePeriod":{"type":"string"},"replicas":{"type":"integer"},"resources":{"type":"object"},"service":{"type":"object","properties":{"annotations":{"type":"object"},"enabled":{"type":"boolean"},"externalTrafficPolicy":{"type":"string"},"labels":{"type":"object"},"type":{"type":"string","enum":["ClusterIP","LoadBalancer","NodePort"]}}},"serviceAccount":{"type":"object","properties":{"create":{"type":"boolean"},"name":{"type":"string"}}},"tolerations":{"type":"array","items":{"type":"object"}},"watchNamespaces":{"type":"string"}}}
{"$schema":"http://json-schema.org/draft-07/schema#","title":"Values","type":"object","properties":{"affinity":{"type":"object"},"annotations":{"type":"object"},"enableLeaderElection":{"type":"boolean"},"enableMetrics":{"type":"boolean"},"healthPort":{"type":"integer"},"image":{"type":"object","properties":{"pullPolicy":{"type":"string","enum":["Always","Never","IfNotPresent"]},"repository":{"type":"string"},"tag":{"type":"string"}}},"leaderElectionID":{"type":"string"},"livenessProbe":{"type":"object","properties":{"enabled":{"type":"boolean"},"failureThreshold":{"type":"integer"},"httpGet":{"type":"object","properties":{"path":{"type":"string"},"port":{"type":"string"},"scheme":{"type":"string"}}},"initialDelaySeconds":{"type":"integer"},"periodSeconds":{"type":"integer"},"successThreshold":{"type":"integer"},"timeoutSeconds":{"type":"integer"}}},"logging":{"type":"object","properties":{"format":{"type":"string","enum":["console","json"]},"level":{"type":"string","enum":["debug","info","error"]},"stacktraceLevel":{"type":"string","enum":["debug","info","error"]}}},"maxConcurrentReconciles":{"type":"integer"},"metricsPort":{"type":"integer"},"name":{"type":"string"},"namespaced":{"type":"boolean"},"nodeSelector":{"type":"object"},"podAnnotations":{"type":"object"},"rbac":{"type":"object","properties":{"create":{"type":"boolean"},"name":{"type":"string"}}},"readinessProbe":{"type":"object","properties":{"enabled":{"type":"boolean"},"failureThreshold":{"type":"integer"},"httpGet":{"type":"object","properties":{"path":{"type":"string"},"port":{"type":"string"},"scheme":{"type":"string"}}},"initialDelaySeconds":{"type":"integer"},"periodSeconds":{"type":"integer"},"successThreshold":{"type":"integer"},"timeoutSeconds":{"type":"integer"}}},"reconcilePeriod":{"type":"string"},"replicas":{"type":"integer"},"resources":{"type":"object"},"service":{"type":"object","properties":{"annotations":{"type":"object"},"enabled":{"type":"boolean"},"externalTrafficPolicy":{"type":"string"},"labels":{"type":"object"},"type":{"type":"string","enum":["ClusterIP","LoadBalancer","NodePort"]}}},"serviceAccount":{"type":"object","properties":{"create":{"type":"boolean"},"name":{"type":"string"}}},"tolerations":{"type":"array","items":{"type":"object"}},"watchNamespaces":{"type":"string"}}}
68 changes: 68 additions & 0 deletions charts/vald-helm-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ reconcilePeriod: 1m
# enableMetrics -- enable metrics endpoint
enableMetrics: true

# @schema {"name": "healthPort", "type": "integer"}
# healthPort -- port of health endpoint
healthPort: 8081

# @schema {"name": "metricsPort", "type": "integer"}
# metricsPort -- port of metrics endpoint
metricsPort: 6061
Expand Down Expand Up @@ -137,3 +141,67 @@ logging:
# @schema {"name": "logging.format", "type": "string", "enum": ["console", "json"]}
# logging.format -- logging format of operator (console or json)
format: console

# @schema {"name": "livenessProbe", "type": "object"}
livenessProbe:
# @schema {"name": "livenessProbe.enabled", "type": "boolean"}
# livenessProbe.enabled -- enable liveness probe.
enabled: true
# @schema {"name": "livenessProbe.httpGet", "type": "object"}
httpGet:
# @schema {"name": "livenessProbe.httpGet.path", "type": "string"}
# livenessProbe.httpGet.path -- readiness probe path
path: /healthz
# @schema {"name": "livenessProbe.httpGet.port", "type": "string"}
# livenessProbe.httpGet.port -- readiness probe port
port: health
# @schema {"name": "livenessProbe.httpGet.scheme", "type": "string"}
# livenessProbe.httpGet.scheme -- readiness probe scheme
scheme: HTTP
# @schema {"name": "livenessProbe.initialDelaySeconds", "type": "integer"}
# livenessProbe.initialDelaySeconds -- liveness probe initial delay seconds
initialDelaySeconds: 15
# @schema {"name": "livenessProbe.periodSeconds", "type": "integer"}
# livenessProbe.periodSeconds -- liveness probe period seconds
periodSeconds: 20
# @schema {"name": "livenessProbe.successThreshold", "type": "integer"}
# livenessProbe.successThreshold -- liveness probe success threshold
successThreshold: 1
# @schema {"name": "livenessProbe.failureThreshold", "type": "integer"}
# livenessProbe.failureThreshold -- liveness probe failure threshold
failureThreshold: 2
# @schema {"name": "livenessProbe.timeoutSeconds", "type": "integer"}
# livenessProbe.timeoutSeconds -- liveness probe timeout seconds
timeoutSeconds: 5

# @schema {"name": "readinessProbe", "type": "object"}
readinessProbe:
# @schema {"name": "readinessProbe.enabled", "type": "boolean"}
# readinessProbe.enabled -- enable readiness probe.
enabled: true
# @schema {"name": "readinessProbe.httpGet", "type": "object"}
httpGet:
# @schema {"name": "readinessProbe.httpGet.path", "type": "string"}
# readinessProbe.httpGet.path -- readiness probe path
path: /readyz
# @schema {"name": "readinessProbe.httpGet.port", "type": "string"}
# readinessProbe.httpGet.port -- readiness probe port
port: health
# @schema {"name": "readinessProbe.httpGet.scheme", "type": "string"}
# readinessProbe.httpGet.scheme -- readiness probe scheme
scheme: HTTP
# @schema {"name": "readinessProbe.initialDelaySeconds", "type": "integer"}
# readinessProbe.initialDelaySeconds -- liveness probe initial delay seconds
initialDelaySeconds: 5
# @schema {"name": "readinessProbe.periodSeconds", "type": "integer"}
# readinessProbe.periodSeconds -- liveness probe period seconds
periodSeconds: 10
# @schema {"name": "readinessProbe.successThreshold", "type": "integer"}
# readinessProbe.successThreshold -- liveness probe success threshold
successThreshold: 1
# @schema {"name": "readinessProbe.failureThreshold", "type": "integer"}
# readinessProbe.failureThreshold -- liveness probe failure threshold
failureThreshold: 2
# @schema {"name": "readinessProbe.timeoutSeconds", "type": "integer"}
# readinessProbe.timeoutSeconds -- liveness probe timeout seconds
timeoutSeconds: 5
2 changes: 1 addition & 1 deletion versions/OPERATOR_SDK_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.0
v1.4.2