Skip to content

Commit

Permalink
move opsdefiniton YAMLs to templates directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yipeng1030 committed Jul 19, 2024
1 parent 1b7b5b9 commit 64106ab
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions addons/kafka/opsdefinitions/quota-preconditions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
3 changes: 3 additions & 0 deletions addons/kafka/opsdefinitions/topic-preconditions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
3 changes: 3 additions & 0 deletions addons/kafka/opsdefinitions/useracl-preconditions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ metadata:
name: kafka-quota
spec:
preConditions:
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
{{- .Files.Get "opsdefinitions/quota-preconditions" | nindent 4 }}
componentInfos:
- componentDefinitionName: kafka-broker
accountName: client
Expand Down Expand Up @@ -56,8 +54,8 @@ spec:
podSpec:
containers:
- name: kafka-topic
image: apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kafka:3.3.2-debian-11-r54
imagePullPolicy: IfNotPresent
image: {{ .Values.images.registry | default "docker.io" }}/{{ .Values.images.kafka.repository }}:{{ default .Chart.AppVersion .Values.images.kafka.tag }}
imagePullPolicy: {{ default "IfNotPresent" .Values.images.pullPolicy }}
command:
- bash
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ metadata:
name: kafka-topic
spec:
preConditions:
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
{{- .Files.Get "opsdefinitions/topic-preconditions" | nindent 4 }}
componentInfos:
- componentDefinitionName: kafka-broker
accountName: client
Expand Down Expand Up @@ -61,8 +59,8 @@ spec:
podSpec:
containers:
- name: kafka-topic
image: apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kafka:3.3.2-debian-11-r54
imagePullPolicy: IfNotPresent
image: {{ .Values.images.registry | default "docker.io" }}/{{ .Values.images.kafka.repository }}:{{ default .Chart.AppVersion .Values.images.kafka.tag }}
imagePullPolicy: {{ default "IfNotPresent" .Values.images.pullPolicy }}
command:
- bash
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ metadata:
name: kafka-user-acl
spec:
preConditions:
- rule:
expression: '{{ eq .component.status.phase "Running" }}'
message: "Component is not in Running status."
{{- .Files.Get "opsdefinitions/topic-preconditions" | nindent 4 }}
componentInfos:
- componentDefinitionName: kafka-broker
accountName: client
Expand Down Expand Up @@ -102,8 +100,8 @@ spec:
podSpec:
containers:
- name: kafka-topic
image: apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kafka:3.3.2-debian-11-r54
imagePullPolicy: IfNotPresent
image: {{ .Values.images.registry | default "docker.io" }}/{{ .Values.images.kafka.repository }}:{{ default .Chart.AppVersion .Values.images.kafka.tag }}
imagePullPolicy: {{ default "IfNotPresent" .Values.images.pullPolicy }}
command:
- bash
- -c
Expand Down

0 comments on commit 64106ab

Please sign in to comment.