-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve example manifest for some resources
- Loading branch information
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: kms.gcp.upbound.io/v1beta1 | ||
kind: CryptoKey | ||
metadata: | ||
annotations: | ||
meta.upbound.io/example-id: kms/v1beta1/cryptokey | ||
upjet.upbound.io/manual-intervention: "By default, keys in Cloud KMS spend 24 hours in the Scheduled for destruction (soft deleted) state before the key material is logically deleted from the system" | ||
labels: | ||
testing.upbound.io/example-name: crypto-key | ||
name: crypto-key-${Rand.RFC1123Subdomain} | ||
spec: | ||
forProvider: | ||
keyRingSelector: | ||
matchLabels: | ||
testing.upbound.io/example-name: keyring | ||
rotationPeriod: 100000s | ||
# The minimum duration is 24 hours for all keys, except for import-only keys which have a minimum duration of 0 | ||
destroyScheduledDuration: 86400s | ||
--- | ||
|
||
apiVersion: kms.gcp.upbound.io/v1beta1 | ||
kind: KeyRing | ||
metadata: | ||
annotations: | ||
meta.upbound.io/example-id: kms/v1beta1/cryptokey | ||
upjet.upbound.io/manual-intervention: "This resource is dependency of CryptoKey. This resource is skipping because parent resource was skipped." | ||
labels: | ||
testing.upbound.io/example-name: keyring | ||
name: keyring-crypto-key-${Rand.RFC1123Subdomain} | ||
spec: | ||
forProvider: | ||
location: global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -aeuo pipefail | ||
|
||
# Note(turkenf): We are getting (Invalid request since instance is not running) exception if user for | ||
# the instance got deleted before the user resource. This is a workaround for this | ||
# problem to make automated tests to work. | ||
${KUBECTL} delete user.sql.gcp.upbound.io -l testing.upbound.io/example-name=example_user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters