Skip to content

Commit bdf3036

Browse files
authored
Merge 4e599a6 into 049c151
2 parents 049c151 + 4e599a6 commit bdf3036

16 files changed

+88
-4
lines changed

deploy/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-alert.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.alert.enabled }}
1718
apiVersion: apps/v1
1819
kind: Deployment
1920
metadata:
@@ -125,3 +126,4 @@ spec:
125126
- name: config-volume
126127
configMap:
127128
name: {{ include "dolphinscheduler.fullname" . }}-configs
129+
{{- end }}

deploy/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-api.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.api.enabled }}
1718
apiVersion: apps/v1
1819
kind: Deployment
1920
metadata:
@@ -134,3 +135,4 @@ spec:
134135
{{- include "dolphinscheduler.fsFileResource.volume" . | nindent 8 }}
135136
{{- include "dolphinscheduler.ldap.ssl.volume" . | nindent 8 }}
136137
{{- include "dolphinscheduler.etcd.ssl.volume" . | nindent 8 }}
138+
{{- end }}

deploy/kubernetes/dolphinscheduler/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
{{- if .Values.ingress.enabled }}
17+
{{- if and .Values.api.enabled .Values.ingress.enabled }}
1818
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
1919
apiVersion: networking.k8s.io/v1
2020
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}

deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.api.enabled }}
1718
apiVersion: batch/v1
1819
kind: Job
1920
metadata:
@@ -52,3 +53,4 @@ spec:
5253
envFrom:
5354
- configMapRef:
5455
name: {{ include "dolphinscheduler.fullname" . }}-common
56+
{{- end }}

deploy/kubernetes/dolphinscheduler/templates/keda-autoscaler-worker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
################################
1919
## DolphinScheduler Worker KEDA Scaler
2020
#################################
21-
{{- if and .Values.worker.keda.enabled }}
21+
{{- if and .Values.worker.keda.enabled .Values.worker.enabled }}
2222
apiVersion: keda.sh/v1alpha1
2323
kind: ScaledObject
2424
metadata:

deploy/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-alert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
{{- if .Values.alert.persistentVolumeClaim.enabled }}
17+
{{- if and .Values.alert.enabled .Values.alert.persistentVolumeClaim.enabled }}
1818
apiVersion: v1
1919
kind: PersistentVolumeClaim
2020
metadata:

deploy/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
{{- if .Values.api.persistentVolumeClaim.enabled }}
17+
{{- if and .Values.api.enabled .Values.api.persistentVolumeClaim.enabled }}
1818
apiVersion: v1
1919
kind: PersistentVolumeClaim
2020
metadata:

deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.master.enabled }}
1718
apiVersion: apps/v1
1819
kind: StatefulSet
1920
metadata:
@@ -143,3 +144,4 @@ spec:
143144
requests:
144145
storage: {{ .Values.master.persistentVolumeClaim.storage | quote }}
145146
{{- end }}
147+
{{- end }}

deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.worker.enabled }}
1718
apiVersion: apps/v1
1819
kind: StatefulSet
1920
metadata:
@@ -179,3 +180,4 @@ spec:
179180
storage: {{ .Values.worker.persistentVolumeClaim.logsPersistentVolume.storage | quote }}
180181
{{- end }}
181182
{{- end }}
183+
{{- end }}

deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-alert.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
{{- if and .Values.alert.enabled }}
1718
apiVersion: v1
1819
kind: Service
1920
metadata:
@@ -67,3 +68,4 @@ spec:
6768
path: {{ .Values.alert.service.serviceMonitor.path }}
6869
interval: {{ .Values.alert.service.serviceMonitor.interval }}
6970
{{- end }}
71+
{{- end }}

0 commit comments

Comments
 (0)