Skip to content

Commit

Permalink
Enable status sub resource for crd yamls (#546)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Aug 4, 2018
1 parent f2a9160 commit dafa74f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/crds/recovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ spec:
- rec
singular: recovery
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
Expand Down
2 changes: 2 additions & 0 deletions api/crds/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
- repo
singular: repository
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
Expand Down
2 changes: 2 additions & 0 deletions api/crds/restic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
- rst
singular: restic
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
Expand Down
2 changes: 2 additions & 0 deletions hack/gencrd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
)

func generateCRDDefinitions() {
stashv1alpha1.EnableStatusSubresource = true

filename := gort.GOPath() + "/src/github.com/appscode/stash/apis/stash/v1alpha1/crds.yaml"
os.Remove(filename)

Expand Down

0 comments on commit dafa74f

Please sign in to comment.