Skip to content

Commit

Permalink
update types.go to generate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
realshuting committed Nov 13, 2020
1 parent 5c38aab commit 047b2b8
Show file tree
Hide file tree
Showing 16 changed files with 4,401 additions and 239 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,14 @@ release:
kustomize build ./definitions > ./definitions/install.yaml
kustomize build ./definitions > ./definitions/release/install.yaml

kyverno-crd: controller-gen
$(CONTROLLER_GEN) crd paths=./pkg/api/kyverno/v1alpha1 output:dir=./definitions/crds
$(CONTROLLER_GEN) object paths=./pkg/api/kyverno/v1alpha1
$(CONTROLLER_GEN) crd paths=./pkg/api/kyverno/v1 output:dir=./definitions/crds

report-crd: controller-gen
$(CONTROLLER_GEN) crd:trivialVersions=true paths=./pkg/api/policyreport/v1alpha1 output:dir=./definitions/crds
$(CONTROLLER_GEN) crd paths=./pkg/api/policyreport/v1alpha1 output:dir=./definitions/crds
$(CONTROLLER_GEN) object paths=./pkg/api/policyreport/v1alpha1
$(CONTROLLER_GEN) crd:trivialVersions=true paths=./pkg/api/kyverno/v1alpha1 output:dir=./definitions/crds
$(CONTROLLER_GEN) object paths=./pkg/api/kyverno/v1alpha1

# find or download controller-gen
# download controller-gen if necessary
Expand Down
1,200 changes: 1,198 additions & 2 deletions charts/kyverno/crds/crds.yaml

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions definitions/crds/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ kind: Kustomization

resources:
- ./crds.yaml
- ./wgpolicyk8s.io_clusterpolicyreports.yaml
- ./wgpolicyk8s.io_policyreports.yaml
- ./kyverno.io_clusterpolicies.yaml
- ./kyverno.io_clusterreportchangerequests.yaml
- ./kyverno.io_generaterequests.yaml
- ./kyverno.io_policies.yaml
- ./kyverno.io_reportchangerequests.yaml
- ./kyverno.io_clusterreportchangerequests.yaml
- ./wgpolicyk8s.io_clusterpolicyreports.yaml
- ./wgpolicyk8s.io_policyreports.yaml
518 changes: 518 additions & 0 deletions definitions/crds/kyverno.io_clusterpolicies.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion definitions/crds/kyverno.io_clusterreportchangerequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ spec:
kind: ClusterReportChangeRequest
listKind: ClusterReportChangeRequestList
plural: clusterreportchangerequests
shortNames:
- cpol
singular: clusterreportchangerequest
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
Expand Down
18 changes: 9 additions & 9 deletions definitions/crds/kyverno.io_generaterequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ spec:
request
properties:
apiVersion:
description: Specifies resource apiVersionm
description: Specifies resource apiVersion.
type: string
kind:
description: Specifies resource kind
description: Specifies resource kind.
type: string
name:
description: Specifies resource name
description: Specifies resource name.
type: string
namespace:
description: Specifies resource namespace
description: Specifies resource namespace.
type: string
type: object
required:
Expand All @@ -122,19 +122,19 @@ spec:
description: This will track the resources that are generated by the
generate Policy Will be used during clean up resources
items:
description: ResourceSpec information to identify the resource
description: ResourceSpec information to identify the resource.
properties:
apiVersion:
description: Specifies resource apiVersionm
description: Specifies resource apiVersion.
type: string
kind:
description: Specifies resource kind
description: Specifies resource kind.
type: string
name:
description: Specifies resource name
description: Specifies resource name.
type: string
namespace:
description: Specifies resource namespace
description: Specifies resource namespace.
type: string
type: object
type: array
Expand Down
162 changes: 86 additions & 76 deletions definitions/crds/kyverno.io_policies.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion definitions/crds/wgpolicyk8s.io_clusterpolicyreports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
shortNames:
- cpolr
singular: clusterpolicyreport
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
Expand Down

0 comments on commit 047b2b8

Please sign in to comment.