forked from openstack-k8s-operators/openstack-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kuttl-test.yaml
41 lines (40 loc) · 1.67 KB
/
kuttl-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# EXECUTION (from install_yamls repo root):
#
# make openstack_kuttl
#
# ASSUMPTIONS:
#
# 1. Latest version of kuttl is installed at /usr/local/bin/kubectl-kuttl
# - wget https://github.com/kudobuilder/kuttl/releases/download/v0.11.1/kubectl-kuttl_0.11.1_linux_x86_64
# - mv kubectl-kuttl_0.11.1_linux_x86_64 /usr/local/bin/kubectl-kuttl
# - chmod 755 /usr/local/bin/kubectl-kuttl
# 2. An OCP 4.10+ CRC cluster with Podified Operators has been deployed
# 3. CLI user has access to $KUBECONFIG
# 4. The environment variable INSTALL_YAMLS is set to the the path of the
# install_yamls repo
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
commands:
- command: oc apply -n openstack-kuttl-tests -f https://raw.githubusercontent.com/openstack-k8s-operators/infra-operator/main/config/samples/network_v1beta1_netconfig.yaml
- command: oc apply -n openstack-kuttl-tests -f https://raw.githubusercontent.com/openstack-k8s-operators/infra-operator/main/config/samples/network_v1beta1_dnsmasq.yaml
- script: |
if [ ! -f ansibleee-ssh-key-id_rsa ]; then
ssh-keygen -f ansibleee-ssh-key-id_rsa -N "" -t rsa -b 4096
fi
oc create secret generic dataplane-ansible-ssh-private-key-secret \
--save-config \
--dry-run=client \
--from-file=authorized_keys=ansibleee-ssh-key-id_rsa.pub \
--from-file=ssh-privatekey=ansibleee-ssh-key-id_rsa \
--from-file=ssh-publickey=ansibleee-ssh-key-id_rsa.pub \
-n openstack-kuttl-tests \
-o yaml | \
oc apply -f -
reportFormat: JSON
reportName: kuttl-test-openstack
namespace: openstack-kuttl-tests
timeout: 1380
parallel: 1
suppress:
- events # Remove spammy event logs