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

Rename operator component in manfiests #943

Merged
merged 1 commit into from
Oct 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions manifests/pipecd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,29 +227,29 @@ spec:
{{- end }}

---
# Single operator pod.
# Single ops pod.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pipecd.fullname" . }}-operator
name: {{ include "pipecd.fullname" . }}-ops
labels:
{{- include "pipecd.labels" . | nindent 4 }}
app.kubernetes.io/component: operator
app.kubernetes.io/component: ops
spec:
replicas: 1
selector:
matchLabels:
{{- include "pipecd.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: operator
app.kubernetes.io/component: ops
template:
metadata:
labels:
{{- include "pipecd.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: operator
app.kubernetes.io/component: ops
spec:
containers:
- name: operator
image: "gcr.io/pipecd/operator:{{ .Chart.AppVersion }}"
- name: ops
image: "gcr.io/pipecd/ops:{{ .Chart.AppVersion }}"
imagePullPolicy: IfNotPresent
args:
- server
Expand Down Expand Up @@ -285,9 +285,9 @@ spec:
- name: pipecd-config
configMap:
name: {{ include "pipecd.configMapName" . }}
{{- if .Values.operator.resources }}
{{- if .Values.ops.resources }}
resources:
{{- toYaml .Values.operator.resources | nindent 12 }}
{{- toYaml .Values.ops.resources | nindent 12 }}
{{- end }}

{{- if .Values.quickstart}}
Expand Down
6 changes: 3 additions & 3 deletions manifests/pipecd/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "pipecd.fullname" . }}-operator
name: {{ include "pipecd.fullname" . }}-ops
labels:
{{- include "pipecd.labels" . | nindent 4 }}
app.kubernetes.io/component: operator
app.kubernetes.io/component: ops
spec:
type: ClusterIP
clusterIP: None
Expand All @@ -133,7 +133,7 @@ spec:
targetPort: admin
selector:
{{- include "pipecd.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: operator
app.kubernetes.io/component: ops

{{- if .Values.quickstart}}
---
Expand Down
2 changes: 1 addition & 1 deletion manifests/pipecd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cache:
password: ""
resources: {}

operator:
ops:
resources: {}

mongodb:
Expand Down