Skip to content

Commit

Permalink
fixup! add policy sample
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra committed Jun 13, 2024
1 parent 8cf5727 commit 9a11182
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions config/samples/_v1beta1_policy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
apiVersion: app.spacelift.io/v1beta1
kind: Policy
metadata:
labels:
app.kubernetes.io/name: policy
app.kubernetes.io/instance: policy-sample
app.kubernetes.io/part-of: spacelift-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: spacelift-operator
name: policy-sample
spec:
# TODO(user): Add fields here
name: test policy
type: PLAN
spaceName: space-sample
attachedStacks:
- stack-sample
description: Prevent creation of IAM users test
body: |
package spacelift
deny[sprintf("must not create AWS IAM users", [resource.address])] {
some resource
created_resources[resource]
resource.type == "aws_iam_user"
}

0 comments on commit 9a11182

Please sign in to comment.