Skip to content

Commit

Permalink
Fix examples for v1beta2 versions of the following resources:
Browse files Browse the repository at this point in the history
- examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml
- examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml

Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf authored and ulucinar committed Jun 13, 2024
1 parent 158e1f0 commit e70c784
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 51 deletions.

This file was deleted.

26 changes: 16 additions & 10 deletions examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
apiVersion: cloudfront.aws.upbound.io/v1beta2
kind: FieldLevelEncryptionConfig
metadata:
name: example-field-level-encryption-config
annotations:
meta.upbound.io/example-id: cloudfront/v1beta2/fieldlevelencryptionconfig
labels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-config
name: example-field-level-encryption-config
spec:
forProvider:
region: us-west-1
Expand All @@ -24,40 +26,44 @@ spec:
items:
- profileIdSelector:
matchLabels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-config
queryArg: Arg1

---

apiVersion: cloudfront.aws.upbound.io/v1beta2
kind: FieldLevelEncryptionProfile
metadata:
annotations:
meta.upbound.io/example-id: cloudfront/v1beta2/fieldlevelencryptionconfig
name: example-field-level-encryption-profile
labels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-config
spec:
forProvider:
region: us-west-1
comment: test comment
encryptionEntities:
items:
- fieldPatterns:
- items:
- DateOfBirth
items:
- DateOfBirth
providerId: testprovider
publicKeyIdSelector:
matchLabels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-config
name: ${Rand.RFC1123Subdomain}

---

apiVersion: cloudfront.aws.upbound.io/v1beta1
kind: PublicKey
metadata:
name: example-public-key
annotations:
meta.upbound.io/example-id: cloudfront/v1beta2/fieldlevelencryptionconfig
labels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-config
name: example-public-key-config
spec:
forProvider:
region: us-west-1
Expand All @@ -66,7 +72,7 @@ spec:
name: publickeysecret
namespace: upbound-system
key: publickeyPEM
name: test_key
name: test_key2

---

Expand Down
18 changes: 11 additions & 7 deletions examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,36 @@
apiVersion: cloudfront.aws.upbound.io/v1beta2
kind: FieldLevelEncryptionProfile
metadata:
name: example-field-level-encryption-profile
annotations:
meta.upbound.io/example-id: cloudfront/v1beta2/fieldlevelencryptionprofile
labels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-profile
name: example-field-level-encryption-profile
spec:
forProvider:
region: us-west-1
comment: test comment
encryptionEntities:
items:
- fieldPatterns:
- items:
- DateOfBirth
items:
- DateOfBirth
providerId: testprovider
publicKeyIdSelector:
matchLabels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-profile
name: ${Rand.RFC1123Subdomain}

---

apiVersion: cloudfront.aws.upbound.io/v1beta1
kind: PublicKey
metadata:
name: example-public-key
annotations:
meta.upbound.io/example-id: cloudfront/v1beta2/fieldlevelencryptionprofile
labels:
testing.upbound.io/example-name: publickey
testing.upbound.io/example-name: example-field-level-encryption-profile
name: example-public-key-prof
spec:
forProvider:
region: us-west-1
Expand Down

0 comments on commit e70c784

Please sign in to comment.