Skip to content

Commit

Permalink
adding syncset/making bucket name unique/adding provider details (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamahgoub authored Mar 12, 2024
1 parent 1c086e8 commit 70d1aff
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion examples/gatekeeper/duplicate-s3/samples/allowed-bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
crossplane.io/external-create-pending: "2023-06-15T21:17:04Z"
crossplane.io/external-create-succeeded: "2023-06-15T21:17:05Z"
crossplane.io/external-name: my-bucket-456
crossplane.io/external-name: my-bucket-456-$ACCOUNT_ID
labels:
crossplane.io/claim-name: standard-object-storage
crossplane.io/claim-namespace: default
Expand All @@ -22,3 +22,5 @@ spec:
blockPublicPolicy: true
ignorePublicAcls: true
restrictPublicBuckets: true
providerConfigRef:
name: aws-provider-config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
name: bucket-info
resourceConfig:
providerConfigName: aws-provider-config
name: my-bucket-456
name: my-bucket-456-$ACCOUNT_ID
region: us-west-2
tags:
- key: env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
crossplane.io/external-create-pending: "2023-06-15T21:17:04Z"
crossplane.io/external-create-succeeded: "2023-06-15T21:17:05Z"
crossplane.io/external-name: my-bucket-123
crossplane.io/external-name: my-bucket-123-$ACCOUNT_ID
labels:
crossplane.io/claim-name: standard-object-storage
crossplane.io/claim-namespace: default
Expand All @@ -22,3 +22,5 @@ spec:
blockPublicPolicy: true
ignorePublicAcls: true
restrictPublicBuckets: true
providerConfigRef:
name: aws-provider-config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
crossplane.io/external-create-pending: "2023-06-15T21:17:04Z"
crossplane.io/external-create-succeeded: "2023-06-15T21:17:05Z"
crossplane.io/external-name: my-bucket-123
crossplane.io/external-name: my-bucket-123-$ACCOUNT_ID
labels:
crossplane.io/claim-name: standard-object-storage
crossplane.io/claim-namespace: default
Expand All @@ -22,3 +22,5 @@ spec:
blockPublicPolicy: true
ignorePublicAcls: true
restrictPublicBuckets: true
providerConfigRef:
name: aws-provider-config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
name: bucket-info
resourceConfig:
providerConfigName: aws-provider-config
name: my-bucket-123
name: my-bucket-123-$ACCOUNT_ID
region: us-west-2
tags:
- key: env
Expand Down
9 changes: 9 additions & 0 deletions examples/gatekeeper/duplicate-s3/syncset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: syncset.gatekeeper.sh/v1alpha1
kind: SyncSet
metadata:
name: s3-syncset
spec:
gvks:
- group: "s3.aws.crossplane.io"
version: "v1beta1"
kind: "Bucket"

0 comments on commit 70d1aff

Please sign in to comment.