Init kubebuilder with ressource and controller
This commit is contained in:
5
config/samples/kustomization.yaml
Normal file
5
config/samples/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
## Append samples of your project ##
|
||||
resources:
|
||||
- webapp_v1_operator-test.yaml
|
||||
- webapp_v1_operator.yaml
|
||||
# +kubebuilder:scaffold:manifestskustomizesamples
|
||||
9
config/samples/webapp_v1_operator-test.yaml
Normal file
9
config/samples/webapp_v1_operator-test.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: webapp.localhost/v1
|
||||
kind: Operator-test
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: operator-test
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: operator-test-sample
|
||||
spec:
|
||||
# TODO(user): Add fields here
|
||||
9
config/samples/webapp_v1_operator.yaml
Normal file
9
config/samples/webapp_v1_operator.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: webapp.localhost/v1
|
||||
kind: Operator
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: operator-test
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: operator-sample
|
||||
spec:
|
||||
# TODO(user): Add fields here
|
||||
Reference in New Issue
Block a user