diff --git a/tests/templates/kuttl/smoke/60-install-hive.yaml.j2 b/tests/templates/kuttl/smoke/60-install-hive.yaml.j2 index 05ef47b1..2b1ef1c3 100644 --- a/tests/templates/kuttl/smoke/60-install-hive.yaml.j2 +++ b/tests/templates/kuttl/smoke/60-install-hive.yaml.j2 @@ -1,4 +1,51 @@ --- +apiVersion: s3.stackable.tech/v1alpha1 +kind: S3Connection +metadata: + name: minio +spec: + host: minio + port: 9000 + accessStyle: Path + credentials: + secretClass: test-hive-s3-secret-class +{% if test_scenario['values']['s3-use-tls'] == 'true' %} + tls: + verification: + server: + caCert: + secretClass: minio-tls-certificates +{% endif %} +--- +apiVersion: secrets.stackable.tech/v1alpha1 +kind: SecretClass +metadata: + name: test-hive-s3-secret-class +spec: + backend: + k8sSearch: + searchNamespace: + pod: {} +--- +apiVersion: v1 +kind: Secret +metadata: + name: test-hive-s3-secret + labels: + secrets.stackable.tech/class: test-hive-s3-secret-class +stringData: + accessKey: hive + secretKey: hivehive +--- +apiVersion: v1 +kind: Secret +metadata: + name: hive-credentials +type: Opaque +stringData: + username: hive + password: hive +--- apiVersion: hive.stackable.tech/v1alpha1 kind: HiveCluster metadata: @@ -49,50 +96,3 @@ spec: hive-site.xml: common-var: group-value group-var: group-value ---- -apiVersion: s3.stackable.tech/v1alpha1 -kind: S3Connection -metadata: - name: minio -spec: - host: minio - port: 9000 - accessStyle: Path - credentials: - secretClass: test-hive-s3-secret-class -{% if test_scenario['values']['s3-use-tls'] == 'true' %} - tls: - verification: - server: - caCert: - secretClass: minio-tls-certificates -{% endif %} ---- -apiVersion: secrets.stackable.tech/v1alpha1 -kind: SecretClass -metadata: - name: test-hive-s3-secret-class -spec: - backend: - k8sSearch: - searchNamespace: - pod: {} ---- -apiVersion: v1 -kind: Secret -metadata: - name: test-hive-s3-secret - labels: - secrets.stackable.tech/class: test-hive-s3-secret-class -stringData: - accessKey: hive - secretKey: hivehive ---- -apiVersion: v1 -kind: Secret -metadata: - name: hive-credentials -type: Opaque -stringData: - username: hive - password: hive