summaryrefslogtreecommitdiffstats
path: root/kud/tests/openness/sample-app
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/openness/sample-app')
-rw-r--r--kud/tests/openness/sample-app/helm/sample-app/Chart.yaml18
-rw-r--r--kud/tests/openness/sample-app/helm/sample-app/templates/consumer-deployment.yaml22
-rw-r--r--kud/tests/openness/sample-app/helm/sample-app/templates/prod-cons-policy.yaml18
-rw-r--r--kud/tests/openness/sample-app/helm/sample-app/templates/producer-deployment.yaml22
-rw-r--r--kud/tests/openness/sample-app/helm/sample-app/values.yaml42
-rw-r--r--kud/tests/openness/sample-app/profile/manifest.yaml4
-rw-r--r--kud/tests/openness/sample-app/profile/override_values.yaml0
7 files changed, 126 insertions, 0 deletions
diff --git a/kud/tests/openness/sample-app/helm/sample-app/Chart.yaml b/kud/tests/openness/sample-app/helm/sample-app/Chart.yaml
new file mode 100644
index 00000000..a2352bca
--- /dev/null
+++ b/kud/tests/openness/sample-app/helm/sample-app/Chart.yaml
@@ -0,0 +1,18 @@
+# Copyright 2018 Intel Corporation, Inc
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v1
+description: Openness EAA Sample App Helm Charts for version 19.12
+name: sample-app
+version: 1.0.0
diff --git a/kud/tests/openness/sample-app/helm/sample-app/templates/consumer-deployment.yaml b/kud/tests/openness/sample-app/helm/sample-app/templates/consumer-deployment.yaml
new file mode 100644
index 00000000..3bce0de2
--- /dev/null
+++ b/kud/tests/openness/sample-app/helm/sample-app/templates/consumer-deployment.yaml
@@ -0,0 +1,22 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ .Values.consumer.name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: {{ .Values.consumer.name }}
+ template:
+ metadata:
+ labels:
+ app: {{ .Values.consumer.name }}
+ spec:
+ containers:
+ - name: {{ .Values.consumer.container.name }}
+ image: {{ .Values.consumer.container.image }}
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: {{ .Values.consumer.container.port1 }}
+ - containerPort: {{ .Values.consumer.container.port2 }}
diff --git a/kud/tests/openness/sample-app/helm/sample-app/templates/prod-cons-policy.yaml b/kud/tests/openness/sample-app/helm/sample-app/templates/prod-cons-policy.yaml
new file mode 100644
index 00000000..93e20c54
--- /dev/null
+++ b/kud/tests/openness/sample-app/helm/sample-app/templates/prod-cons-policy.yaml
@@ -0,0 +1,18 @@
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: {{ .Values.policy.name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ podSelector: {{ .Values.policy.podSelector }}
+ policyTypes:
+ - Ingress
+ ingress:
+ - from:
+ - ipBlock:
+ cidr: {{ .Values.policy.ingress.cidr }}
+ ports:
+ - protocol: {{ .Values.policy.ingress.ports.port1.protocol }}
+ port: {{ .Values.policy.ingress.ports.port1.port }}
+ - protocol: {{ .Values.policy.ingress.ports.port2.protocol }}
+ port: {{ .Values.policy.ingress.ports.port2.port }}
diff --git a/kud/tests/openness/sample-app/helm/sample-app/templates/producer-deployment.yaml b/kud/tests/openness/sample-app/helm/sample-app/templates/producer-deployment.yaml
new file mode 100644
index 00000000..6554f851
--- /dev/null
+++ b/kud/tests/openness/sample-app/helm/sample-app/templates/producer-deployment.yaml
@@ -0,0 +1,22 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ .Values.producer.name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: {{ .Values.producer.name }}
+ template:
+ metadata:
+ labels:
+ app: {{ .Values.producer.name }}
+ spec:
+ containers:
+ - name: {{ .Values.producer.container.name }}
+ image: {{ .Values.producer.container.image }}
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: {{ .Values.producer.container.port1 }}
+ - containerPort: {{ .Values.producer.container.port2 }}
diff --git a/kud/tests/openness/sample-app/helm/sample-app/values.yaml b/kud/tests/openness/sample-app/helm/sample-app/values.yaml
new file mode 100644
index 00000000..65af7161
--- /dev/null
+++ b/kud/tests/openness/sample-app/helm/sample-app/values.yaml
@@ -0,0 +1,42 @@
+# Copyright 2018 Intel Corporation, Inc
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+consumer:
+ name: consumer
+ container:
+ name: consumer
+ image: integratedcloudnative/consumer:1.0
+ port1: 80
+ port2: 443
+
+producer:
+ name: producer
+ container:
+ name: producer
+ image: integratedcloudnative/producer:1.0
+ port1: 80
+ port2: 443
+
+policy:
+ name: eaa-prod-cons-policy
+ podSelector: "{}"
+ ingress:
+ cidr: 10.16.0.0/16
+ ports:
+ port1:
+ protocol: TCP
+ port: 80
+ port2:
+ protocol: TCP
+ port: 443
diff --git a/kud/tests/openness/sample-app/profile/manifest.yaml b/kud/tests/openness/sample-app/profile/manifest.yaml
new file mode 100644
index 00000000..4d381d02
--- /dev/null
+++ b/kud/tests/openness/sample-app/profile/manifest.yaml
@@ -0,0 +1,4 @@
+---
+version: v1
+type:
+ values: "override_values.yaml"
diff --git a/kud/tests/openness/sample-app/profile/override_values.yaml b/kud/tests/openness/sample-app/profile/override_values.yaml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/kud/tests/openness/sample-app/profile/override_values.yaml