Skip to content

Commit

Permalink
Configure manifest generation to the correct directory (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
kensipe authored Apr 17, 2019
1 parent 55ae38d commit b253704
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ deploy-clean:

# Generate manifests e.g. CRD, RBAC etc.
manifests:
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
# controller-gen/main.go all == [rbac, crd]
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go rbac --output-dir=config/default/rbac
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd

# Run go fmt against code
fmt:
Expand Down
8 changes: 4 additions & 4 deletions config/crds/kudo_v1alpha1_instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ spec:
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
inline:
type: object
metadata:
type: object
spec:
Expand Down Expand Up @@ -46,6 +44,8 @@ spec:
status:
type: string
type: object
required:
- inline
version: v1alpha1
status:
acceptedNames:
Expand Down
8 changes: 4 additions & 4 deletions config/crds/kudo_v1alpha1_planexecution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ spec:
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
inline:
type: object
metadata:
type: object
spec:
Expand Down Expand Up @@ -65,6 +63,8 @@ spec:
strategy:
type: string
type: object
required:
- inline
version: v1alpha1
status:
acceptedNames:
Expand Down

0 comments on commit b253704

Please sign in to comment.