Skip to content

Commit

Permalink
chore: add valid resources samples (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra authored Jun 13, 2024
1 parent 49ac942 commit 281a76e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
21 changes: 21 additions & 0 deletions config/samples/_v1beta1_context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: app.spacelift.io/v1beta1
kind: Context
metadata:
name: context-sample
spec:
name: test
space: space-sample
attachments:
- stack: stack-sample
environment:
- id: foo
value: bar
description: "insecure"
- id: bar
valueFromSecret:
name: test-secret
key: test-value
description: "secure"
mountedFiles:
- id: bar
value: Zm9vCg==
5 changes: 1 addition & 4 deletions config/samples/_v1beta1_space.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
apiVersion: app.spacelift.io/v1beta1
kind: Space
metadata:
labels:
app.kubernetes.io/name: spacelift-operator
app.kubernetes.io/managed-by: kustomize
name: space-sample
spec:
name: created-from-operator
name: created from operator
parentSpace: root
inheritEntities: false
description: "This space was created from an operator"
Expand Down
10 changes: 2 additions & 8 deletions config/samples/_v1beta1_stack.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
apiVersion: app.spacelift.io/v1beta1
kind: Stack
metadata:
labels:
app.kubernetes.io/name: stack
app.kubernetes.io/instance: stack-sample
app.kubernetes.io/part-of: spacelift-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: spacelift-operator
name: stack-sample
spec:
name: spacelift-operator-stack
spaceName: space-sample
settings:
administrative: false
branch: main
repository: empty
commitSHA: 8fd7048876cdcc4e698d35f89dd816f705e175f7
repository: ORG/REPO_NAME

0 comments on commit 281a76e

Please sign in to comment.