-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3282 from yuwenma/sm-version-alias
feat: add secretManager version alias
- Loading branch information
Showing
22 changed files
with
675 additions
and
11 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
16 changes: 16 additions & 0 deletions
16
...anager/v1beta1/basicsecretmanagersecret/_generated_export_basicsecretmanagersecret.golden
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,16 @@ | ||
apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 | ||
kind: SecretManagerSecret | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/project-id: ${projectId} | ||
labels: | ||
cnrm-test: "true" | ||
label-one: value-one | ||
managed-by-cnrm: "true" | ||
name: secretmanagersecret-${uniqueId} | ||
spec: | ||
replication: | ||
userManaged: | ||
replicas: | ||
- location: us-central1 | ||
resourceID: secretmanagersecret-${uniqueId} |
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
28 changes: 28 additions & 0 deletions
28
...tmanager/v1beta1/fullsecretmanagersecret/_generated_export_fullsecretmanagersecret.golden
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,28 @@ | ||
apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 | ||
kind: SecretManagerSecret | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/project-id: ${projectId} | ||
labels: | ||
cnrm-test: "true" | ||
label-one: value-one | ||
label-two: value-two | ||
managed-by-cnrm: "true" | ||
name: secretmanagersecret-${uniqueId} | ||
spec: | ||
annotations: | ||
bar: secretmanagersecret-bar | ||
foo: secretmanagersecret | ||
expireTime: "2025-10-03T15:01:23Z" | ||
replication: | ||
auto: | ||
customerManagedEncryption: | ||
kmsKeyRef: | ||
external: projects/${projectId}/locations/global/keyRings/kmskeyring-${uniqueId}/cryptoKeys/kmscryptokey-${uniqueId} | ||
resourceID: secretmanagersecret-${uniqueId} | ||
rotation: | ||
nextRotationTime: "2025-10-03T15:01:23Z" | ||
rotationPeriod: 7200s | ||
topics: | ||
- topicRef: | ||
external: projects/${projectId}/topics/topic-2-${uniqueId} |
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
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
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
12 changes: 12 additions & 0 deletions
12
tests/e2e/testdata/scenarios/secretmanagerversionalias/_export0.yaml
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,12 @@ | ||
apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 | ||
kind: SecretManagerSecret | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/project-id: ${projectId} | ||
name: secret-${uniqueId} | ||
spec: | ||
replication: | ||
userManaged: | ||
replicas: | ||
- location: us-central1 | ||
resourceID: secret-${uniqueId} |
14 changes: 14 additions & 0 deletions
14
tests/e2e/testdata/scenarios/secretmanagerversionalias/_export3.yaml
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,14 @@ | ||
apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 | ||
kind: SecretManagerSecret | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/project-id: ${projectId} | ||
name: secret-${uniqueId} | ||
spec: | ||
replication: | ||
userManaged: | ||
replicas: | ||
- location: us-central1 | ||
resourceID: secret-${uniqueId} | ||
versionAliases: | ||
foo: "1" |
Oops, something went wrong.