diff --git a/examples/install.yaml b/examples/install.yaml new file mode 100644 index 0000000..27c7a23 --- /dev/null +++ b/examples/install.yaml @@ -0,0 +1,6 @@ +apiVersion: pkg.crossplane.io/v1 +kind: Provider +metadata: + name: provider-confluent +spec: + package: xpkg.upbound.io/crossplane-contrib/provider-confluent:vX.X.X # replace with current version \ No newline at end of file diff --git a/examples/providerconfig/.gitignore b/examples/providerconfig/.gitignore new file mode 100644 index 0000000..4a424df --- /dev/null +++ b/examples/providerconfig/.gitignore @@ -0,0 +1 @@ +secret.yaml diff --git a/examples/providerconfig/providerconfig.yaml b/examples/providerconfig/providerconfig.yaml new file mode 100644 index 0000000..687eb44 --- /dev/null +++ b/examples/providerconfig/providerconfig.yaml @@ -0,0 +1,25 @@ +apiVersion: confluent.orchestrate.cloud.sap/v1beta1 +kind: ProviderConfig +metadata: + name: default +spec: + credentials: + source: Secret + secretRef: + name: confluent-provider-config + namespace: default + key: credentials +--- + +apiVersion: v1 +kind: Secret +metadata: + namespace: default + name: confluent-provider-config +type: Opaque +stringData: + credentials: | + { + "cloud_api_key": "", + "cloud_api_secret": " + } diff --git a/examples/providerconfig/secret.yaml.tmpl b/examples/providerconfig/secret.yaml.tmpl new file mode 100644 index 0000000..6dfa5c8 --- /dev/null +++ b/examples/providerconfig/secret.yaml.tmpl @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + name: example-creds + namespace: crossplane-system +type: Opaque +stringData: + credentials: | + { + "username": "admin", + "password": "t0ps3cr3t11" + } diff --git a/examples/storeconfig/kubernetes.yaml b/examples/storeconfig/kubernetes.yaml new file mode 100644 index 0000000..972adaf --- /dev/null +++ b/examples/storeconfig/kubernetes.yaml @@ -0,0 +1,7 @@ +apiVersion: confluent.crossplane.io/v1alpha1 +kind: StoreConfig +metadata: + name: kubernetes +spec: + type: Kubernetes + defaultScope: default \ No newline at end of file diff --git a/examples/storeconfig/vault.yaml b/examples/storeconfig/vault.yaml new file mode 100644 index 0000000..baf3843 --- /dev/null +++ b/examples/storeconfig/vault.yaml @@ -0,0 +1,19 @@ +apiVersion: confluent.orchestrate.cloud.sap/v1alpha1 +kind: StoreConfig +metadata: + name: vault +spec: + type: Vault + defaultScope: crossplane-system + vault: + server: http://vault.vault-system:8200 + mountPath: kv2/ + version: v2 + auth: + method: Token + token: + source: Secret + secretRef: + namespace: crossplane-system + name: vault-token + key: token \ No newline at end of file