Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ssch1337 committed Mar 5, 2024
1 parent 7734aa3 commit aa2b26e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
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-opensearch
spec:
package: tages/provider-opensearch:v0.1.0
1 change: 1 addition & 0 deletions examples/providerconfig/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secret.yaml
11 changes: 11 additions & 0 deletions examples/providerconfig/providerconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: opensearch.upbound.io/v1beta1
kind: ProviderConfig
metadata:
name: default
spec:
credentials:
source: Secret
secretRef:
name: example-creds
namespace: crossplane-system
key: credentials
34 changes: 34 additions & 0 deletions examples/providerconfig/secret.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Secret
metadata:
name: example-creds
namespace: crossplane-system
type: Opaque
stringData:
credentials: |
{
"url": "http://127.0.0.1:9200"
"aws_access_key": "",
"aws_assume_role_arn": "",
"aws_assume_role_external_id": "",
"aws_profile": "",
"aws_region": "",
"aws_secret_key": "",
"aws_signature_service": "",
"aws_token": "",
"cacert_file": "",
"client_cert_path": "",
"client_key_path": "",
"healthcheck": true,
"host_override": "",
"insecure": false,
"opensearch_version": "",
"password": "t0ps3cr3t11"
"proxy": "",
"sign_aws_requests": false,
"sniff": false,
"token": "",
"token_name": "",
"username": "admin",
"version_ping_timeout": 30
}
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: opensearch.upbound.io/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

0 comments on commit aa2b26e

Please sign in to comment.