Skip to content

Commit 443e119

Browse files
committed
only install if arango enabled
Signed-off-by: Steve Taylor <steve@deployhub.com>
1 parent f0468d9 commit 443e119

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

chart/scec-arangodb/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{ if (((.Values.global).arangodb).enabled) }}
23
apiVersion: apps/v1
34
kind: StatefulSet
45
metadata:
@@ -63,3 +64,4 @@ spec:
6364
requests:
6465
storage: 1Gi
6566
{{ end }}
67+
{{ end }}

chart/scec-arangodb/templates/secret.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{ if (((.Values.global).arangodb).enabled) }}
23
apiVersion: v1
34
kind: Secret
45
type: Opaque
@@ -19,3 +20,4 @@ data:
1920
{{ end }}
2021
DBPort: {{ $dbport | b64enc }}
2122
DBName: {{ $dbname | b64enc }}
23+
{{ end }}

chart/scec-arangodb/templates/service.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
14+
---
15+
{{ if (((.Values.global).arangodb).enabled) }}
1516
apiVersion: v1
1617
kind: Service
1718
metadata:
@@ -26,4 +27,4 @@ spec:
2627
nodePort: {{ .Values.ingress.nodePort }}
2728
{{ end }}
2829
type: NodePort
29-
---
30+
{{ end }}

chart/scec-arangodb/templates/storage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if (((.Values.global).arangodb).enabled) }}
12
{{- if or (contains "gke" (.Capabilities.KubeVersion.Version | toString)) (contains "eks" (.Capabilities.KubeVersion.Version | toString)) }}
23
apiVersion: storage.k8s.io/v1
34
kind: StorageClass
@@ -23,3 +24,4 @@ allowVolumeExpansion: true
2324
volumeBindingMode: WaitForFirstConsumer
2425
{{- end }}
2526
{{ end }}
27+
{{ end }}

0 commit comments

Comments
 (0)