Skip to content

Commit

Permalink
change_example_test_file_to_work_like_usergroup+iam
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-re committed Feb 5, 2025
1 parent b652496 commit d8caf26
Showing 1 changed file with 9 additions and 33 deletions.
42 changes: 9 additions & 33 deletions examples/elasticache/v1beta1/usergroupassociation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ spec:
region: us-west-1
userGroupIdSelector:
matchLabels:
testing.upbound.io/example-name: example
testing.upbound.io/example-name: exampleGroup
userIdSelector:
matchLabels:
testing.upbound.io/example-name: example
testing.upbound.io/example-name: exampleUser

---

Expand All @@ -24,41 +24,16 @@ metadata:
annotations:
meta.upbound.io/example-id: elasticache/v1beta1/usergroupassociation
labels:
testing.upbound.io/example-name: default
name: default
spec:
forProvider:
accessString: on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield
-hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius
-georadiusbymember
engine: REDIS
passwordsSecretRef:
- key: example-key
name: example-secret
namespace: upbound-system
region: us-west-1
userName: default

---

apiVersion: elasticache.aws.upbound.io/v1beta1
kind: User
metadata:
annotations:
meta.upbound.io/example-id: elasticache/v1beta1/usergroupassociation
labels:
testing.upbound.io/example-name: example
testing.upbound.io/example-name: exampleUser
name: example
spec:
forProvider:
accessString: on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield
-hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius
-georadiusbymember
engine: REDIS
passwordsSecretRef:
- key: example-key
name: example-secret
namespace: upbound-system
authenticationMode:
- type: iam
region: us-west-1
userName: exampleuser

Expand All @@ -68,13 +43,14 @@ apiVersion: elasticache.aws.upbound.io/v1beta1
kind: UserGroup
metadata:
annotations:
upjet.upbound.io/manual-intervention: "This resource needs a User resource and this User resource needs secrets that must contain valid credentials."
meta.upbound.io/example-id: elasticache/v1beta1/usergroupassociation
labels:
testing.upbound.io/example-name: example
name: example
testing.upbound.io/example-name: exampleGroup
name: test
spec:
forProvider:
engine: REDIS
region: us-west-1
userIdRefs:
- name: default
- name: test

0 comments on commit d8caf26

Please sign in to comment.