/*
* Copyright 2018 Intel Corporation, Inc
+ * Copyright 2020,2021 Samsung Electronics, Modifications
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
},
expectedError: "",
},
+ {
+ label: "Test simple v3 helm charts support",
+ chartPath: "../../mock_files/mock_charts/mockv3",
+ valueFiles: []string{},
+ values: []string{},
+ expectedError: "",
+ expectedHashMap: map[string]string{
+ "mockv3/templates/deployment.yaml": "259a027a4957e7428eb1d2e774fa1afaa62449521853f8b2916887040bae2ca4",
+ },
+ },
}
h := sha256.New()
--- /dev/null
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: dummy
+ labels:
+ dummy: yes
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ dummy: yes
+ template:
+ metadata:
+ labels:
+ dummy: yes
+ spec:
+ containers:
+ - name: {{ .Chart.Name }}
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /
+ port: http
+ readinessProbe:
+ httpGet:
+ path: /
+ port: http