Skip to content

Commit

Permalink
refactor: add nodeSelector and refactor resources yaml field (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 authored Aug 10, 2023
1 parent b52027c commit 3805d57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/greptimedb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.18.0-0"
description: The greptimedb-operator Helm chart for Kubernetes
name: greptimedb-operator
appVersion: 0.1.0-alpha.12
version: 0.1.1-alpha.9
version: 0.1.1-alpha.10
type: application
home: https://github.com/GreptimeTeam/greptimedb-operator
sources:
Expand Down
8 changes: 6 additions & 2 deletions charts/greptimedb-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{- end }}
serviceAccountName: {{ include "greptimedb-operator.serviceAccountName" . }}
terminationGracePeriodSeconds: 10
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: manager
image: '{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}'
Expand All @@ -45,5 +48,6 @@ spec:
- --enable-leader-election
command:
- greptimedb-operator
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.resources }}
resources: {{ toYaml .Values.resources | nindent 10 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/greptimedb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ nameOverride: ""

# Provide a name to substitute for the full names of resources
fullnameOverride: ""

nodeSelector: {}

0 comments on commit 3805d57

Please sign in to comment.