diff --git a/integration-tests/akvs-certificate-sync.yaml b/integration-tests/akvs-certificate-sync.yaml new file mode 100644 index 00000000..41932bfa --- /dev/null +++ b/integration-tests/akvs-certificate-sync.yaml @@ -0,0 +1,15 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: certificate-sync + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-cert + type: certificate + output: + secret: + name: my-certificate-from-akv # kubernetes secret name + type: kubernetes.io/tls # kubernetes secret type diff --git a/integration-tests/akvs-configmap-sync.yaml b/integration-tests/akvs-configmap-sync.yaml new file mode 100644 index 00000000..f061934a --- /dev/null +++ b/integration-tests/akvs-configmap-sync.yaml @@ -0,0 +1,15 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: secret-configmap-sync + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-secret # name of the akv object + type: secret # akv object type + output: + configMap: + name: my-secret-from-akv # kubernetes configmap name + dataKey: secret-value # key to store object value in kubernetes configmap diff --git a/integration-tests/akvs-multi-key-value-secret.yaml b/integration-tests/akvs-multi-key-value-secret.yaml new file mode 100644 index 00000000..bf8c3c8c --- /dev/null +++ b/integration-tests/akvs-multi-key-value-secret.yaml @@ -0,0 +1,15 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: db-config + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv + object: + contentType: application/x-json # make sure this matches the content of the secret, can be either 'application/x-json' or 'application/x-yaml' + name: akv2k8s-multi-key-test + type: multi-key-value-secret + output: + secret: + name: db-config diff --git a/integration-tests/akvs-secret-sync.yaml b/integration-tests/akvs-secret-sync.yaml new file mode 100644 index 00000000..8c02f704 --- /dev/null +++ b/integration-tests/akvs-secret-sync.yaml @@ -0,0 +1,15 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: secret-sync + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-secret # name of the akv object + type: secret # akv object type + output: + secret: + name: my-secret-from-akv # kubernetes secret name + dataKey: secret-value # key to store object value in kubernetes secret diff --git a/integration-tests/akvs-signing-key-sync.yaml b/integration-tests/akvs-signing-key-sync.yaml new file mode 100644 index 00000000..879528f9 --- /dev/null +++ b/integration-tests/akvs-signing-key-sync.yaml @@ -0,0 +1,15 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: signing-key-sync + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-key # name of the akv object + type: key # akv object type + output: + secret: + name: my-signing-key-from-akv # kubernetes secret name + dataKey: signing-key # key to store object value in kubernetes secret diff --git a/integration-tests/multi-akvs-secret-sync.yaml b/integration-tests/multi-akvs-secret-sync.yaml new file mode 100644 index 00000000..a4559bce --- /dev/null +++ b/integration-tests/multi-akvs-secret-sync.yaml @@ -0,0 +1,31 @@ +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: secret-sync-1 + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-secret # name of the akv object + type: secret # akv object type + output: + secret: + name: my-secrets-from-akv # kubernetes secret name + dataKey: secret-value-1 # key to store object value in kubernetes secret +--- +apiVersion: spv.no/v2beta1 +kind: AzureKeyVaultSecret +metadata: + name: secret-sync-2 + namespace: akv-test +spec: + vault: + name: akv2k8sinttestskv # name of key vault + object: + name: akv2k8s-test-secret-two # name of the akv object + type: secret # akv object type + output: + secret: + name: my-secrets-from-akv # kubernetes secret name + dataKey: secret-value-2 # key to store object value in kubernetes secret diff --git a/integration-tests/namespace.yaml b/integration-tests/namespace.yaml new file mode 100644 index 00000000..d343314a --- /dev/null +++ b/integration-tests/namespace.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: akv-test + labels: + azure-key-vault-env-injection: enabled +