aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/mock_files
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2021-01-13 13:39:53 +0100
committerKonrad Bańka <k.banka@samsung.com>2021-01-13 14:22:31 +0100
commit0b4114ddfd6663aaafeaacb983335140cd44a358 (patch)
treeb6e7e3a52e38bb7c16299c97b78bfddc2ae6a7b1 /src/k8splugin/mock_files
parentac7751eca12f848732f8f0377af50ff0f2cc1a28 (diff)
Provide simple v3 chart mock test
Issue-ID: MULTICLOUD-1267 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ib05167a6e0e2c69268bcd85c0ae3fa30fdd78e39
Diffstat (limited to 'src/k8splugin/mock_files')
-rw-r--r--src/k8splugin/mock_files/mock_charts/mockv3/Chart.yaml6
-rw-r--r--src/k8splugin/mock_files/mock_charts/mockv3/templates/deployment.yaml32
-rw-r--r--src/k8splugin/mock_files/mock_charts/mockv3/values.yaml6
3 files changed, 44 insertions, 0 deletions
diff --git a/src/k8splugin/mock_files/mock_charts/mockv3/Chart.yaml b/src/k8splugin/mock_files/mock_charts/mockv3/Chart.yaml
new file mode 100644
index 00000000..97233399
--- /dev/null
+++ b/src/k8splugin/mock_files/mock_charts/mockv3/Chart.yaml
@@ -0,0 +1,6 @@
+apiVersion: v2
+name: mockv3
+description: A Helm chart for Kubernetes
+type: application
+version: 0.1.0
+appVersion: 1.16.0
diff --git a/src/k8splugin/mock_files/mock_charts/mockv3/templates/deployment.yaml b/src/k8splugin/mock_files/mock_charts/mockv3/templates/deployment.yaml
new file mode 100644
index 00000000..b901e337
--- /dev/null
+++ b/src/k8splugin/mock_files/mock_charts/mockv3/templates/deployment.yaml
@@ -0,0 +1,32 @@
+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
diff --git a/src/k8splugin/mock_files/mock_charts/mockv3/values.yaml b/src/k8splugin/mock_files/mock_charts/mockv3/values.yaml
new file mode 100644
index 00000000..43850077
--- /dev/null
+++ b/src/k8splugin/mock_files/mock_charts/mockv3/values.yaml
@@ -0,0 +1,6 @@
+replicaCount: 1
+
+image:
+ repository: nginx
+ pullPolicy: IfNotPresent
+ tag: ""