Skip to content

Commit

Permalink
Add artifacts for sample controller
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed Mar 16, 2018
1 parent 177ce3c commit ad74010
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions samples/controller/artifacts/examples/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: foos.samplecontroller.k8s.io
spec:
group: samplecontroller.k8s.io
version: v1alpha1
names:
kind: Foo
plural: foos
scope: Namespaced
validation:
openAPIV3Schema:
properties:
spec:
properties:
replicas:
type: integer
minimum: 1
maximum: 10
7 changes: 7 additions & 0 deletions samples/controller/artifacts/examples/example-foo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: samplecontroller.k8s.io/v1alpha1
kind: Foo
metadata:
name: example-foo
spec:
deploymentName: example-foo
replicas: 1

0 comments on commit ad74010

Please sign in to comment.