Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add StoreConfig, Install, and ProviderConfig examples #10

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/install.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions examples/providerconfig/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secret.yaml
25 changes: 25 additions & 0 deletions examples/providerconfig/providerconfig.yaml
Original file line number Diff line number Diff line change
@@ -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": "<confluent_api_key_id>",
"cloud_api_secret": "<confluent_api_key_secret>
}
12 changes: 12 additions & 0 deletions examples/providerconfig/secret.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
name: example-creds
namespace: crossplane-system
type: Opaque
stringData:
credentials: |
{
"username": "admin",
"password": "t0ps3cr3t11"
}
7 changes: 7 additions & 0 deletions examples/storeconfig/kubernetes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: confluent.crossplane.io/v1alpha1
kind: StoreConfig
metadata:
name: kubernetes
spec:
type: Kubernetes
defaultScope: default
19 changes: 19 additions & 0 deletions examples/storeconfig/vault.yaml
Original file line number Diff line number Diff line change
@@ -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