summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application/molecule/helm3
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-02-16 12:39:51 +0000
committerGerrit Code Review <gerrit@onap.org>2021-02-16 12:39:51 +0000
commit8ec40e9842c856ed4c14d91755cc26b7c81b8f01 (patch)
treef1ee39c1d851be7eda03a1681a88b24a9691107c /ansible/roles/application/molecule/helm3
parentdf09c2bf1e533a2c085a53eb46116bca9025c4fa (diff)
parent2c7299fa340e6918a59d92981f01652e9464ee86 (diff)
Merge "Add Helm v3 plugin deployment playbook"
Diffstat (limited to 'ansible/roles/application/molecule/helm3')
l---------ansible/roles/application/molecule/helm3/Dockerfile.j21
-rw-r--r--ansible/roles/application/molecule/helm3/molecule.yml54
l---------ansible/roles/application/molecule/helm3/tests1
3 files changed, 56 insertions, 0 deletions
diff --git a/ansible/roles/application/molecule/helm3/Dockerfile.j2 b/ansible/roles/application/molecule/helm3/Dockerfile.j2
new file mode 120000
index 00000000..867ec5c3
--- /dev/null
+++ b/ansible/roles/application/molecule/helm3/Dockerfile.j2
@@ -0,0 +1 @@
+../default/Dockerfile.j2 \ No newline at end of file
diff --git a/ansible/roles/application/molecule/helm3/molecule.yml b/ansible/roles/application/molecule/helm3/molecule.yml
new file mode 100644
index 00000000..fce59098
--- /dev/null
+++ b/ansible/roles/application/molecule/helm3/molecule.yml
@@ -0,0 +1,54 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint:
+ name: yamllint
+platforms:
+ - name: instance-helm3
+ image: centos:7
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ inventory:
+ group_vars:
+ all:
+ app_name: moleculetestapp
+ app_data_path: "/opt/{{ app_name }}"
+ app_helm_release_name: "{{ app_name }}"
+ app_kubernetes_namespace: "{{ app_name }}"
+ app_helm_charts_install_directory: application/helm_charts
+ app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/"
+ app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts"
+ helm_bin_dir: /usr/local/bin
+ app_helm_build_targets:
+ - all
+ - onap
+ app_helm_chart_name: "{{ app_name }}"
+ helm_version: v3
+ lint:
+ name: ansible-lint
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/playbook.yml
+ cleanup: ../default/cleanup.yml
+scenario:
+ name: helm3
+ test_sequence:
+ - lint
+ - cleanup
+ - destroy
+ - dependency
+ - syntax
+ - create
+ - prepare
+ - converge
+ - verify
+ - cleanup
+ - destroy
+verifier:
+ name: testinfra
+ lint:
+ name: flake8
diff --git a/ansible/roles/application/molecule/helm3/tests b/ansible/roles/application/molecule/helm3/tests
new file mode 120000
index 00000000..b8ac4407
--- /dev/null
+++ b/ansible/roles/application/molecule/helm3/tests
@@ -0,0 +1 @@
+../default/tests/ \ No newline at end of file