Skip to content

Commit

Permalink
fix: makes sure all resource sample work together (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra authored Jun 14, 2024
1 parent a16c83e commit a761ed9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
11 changes: 9 additions & 2 deletions config/samples/_v1beta1_context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,23 @@ spec:
name: test
space: space-sample
attachments:
- stack: stack-sample
- { stack: stack-sample }
environment:
- id: foo
value: bar
description: "insecure"
- id: bar
valueFromSecret:
name: test-secret
name: secret-sample
key: test-value
description: "secure"
mountedFiles:
- id: bar
value: Zm9vCg==
---
apiVersion: v1
kind: Secret
metadata:
name: secret-sample
data:
test-value: c2VjcmV0IHN0cmluZwo=
2 changes: 1 addition & 1 deletion config/samples/_v1beta1_policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ spec:
name: test policy
type: PLAN
spaceName: space-sample
description: Prevent creation of IAM users test
attachedStacks:
- stack-sample
description: Prevent creation of IAM users test
body: |
package spacelift
Expand Down
6 changes: 0 additions & 6 deletions config/samples/_v1beta1_run.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: app.spacelift.io/v1beta1
kind: Run
metadata:
labels:
app.kubernetes.io/name: run
app.kubernetes.io/instance: run-sample
app.kubernetes.io/part-of: spacelift-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: spacelift-operator
name: run-sample
spec:
stackName: stack-sample
5 changes: 1 addition & 4 deletions config/samples/_v1beta1_space.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ kind: Space
metadata:
name: space-sample
spec:
name: created from operator
name: my test space
parentSpace: root
inheritEntities: false
description: "This space was created from an operator"
labels: ["one", "two"]
5 changes: 2 additions & 3 deletions config/samples/_v1beta1_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: Stack
metadata:
name: stack-sample
spec:
name: spacelift-operator-stack
spaceName: space-sample
name: spacelift operator stack
settings:
spaceName: space-sample
administrative: false
branch: main
repository: ORG/REPO_NAME

0 comments on commit a761ed9

Please sign in to comment.