Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: makes sure all resource sample work together #37

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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