Skip to content

Commit 53eaef2

Browse files
iQQBotroboquat
authored andcommitted
add missing condition for ide-proxy heml chart
1 parent 4a0b061 commit 53eaef2

3 files changed

+6
-2
lines changed

chart/templates/ide-proxy-deny-all-allow-explicit-networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
22
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
33

4-
{{ if .Values.installNetworkPolicies -}}
4+
{{ if and (not .Values.components.ideProxy.disabled) (.Values.installNetworkPolicies) -}}
55
apiVersion: networking.k8s.io/v1
66
kind: NetworkPolicy
77
metadata:

chart/templates/ide-proxy-rolebinding.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
22
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
33

4+
{{ if not .Values.components.ideProxy.disabled -}}
45
kind: RoleBinding
56
apiVersion: rbac.authorization.k8s.io/v1
67
metadata:
@@ -17,3 +18,4 @@ roleRef:
1718
kind: ClusterRole
1819
name: {{ .Release.Namespace }}-ns-psp:restricted-root-user
1920
apiGroup: rbac.authorization.k8s.io
21+
{{- end -}}

chart/templates/ide-proxy-serviceaccount.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
22
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
33

4+
{{ if not .Values.components.ideProxy.disabled -}}
45
apiVersion: v1
56
kind: ServiceAccount
67
metadata:
@@ -10,4 +11,5 @@ metadata:
1011
component: ide-proxy
1112
kind: service-account
1213
stage: {{ .Values.installation.stage }}
13-
automountServiceAccountToken: false
14+
automountServiceAccountToken: false
15+
{{- end -}}

0 commit comments

Comments
 (0)