Skip to content

Commit

Permalink
update controller gen and manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
  • Loading branch information
ritazh committed Jan 11, 2024
1 parent 6ebe765 commit 6cd98e9
Show file tree
Hide file tree
Showing 34 changed files with 4,530 additions and 2,084 deletions.
2 changes: 1 addition & 1 deletion build/tooling/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.21-bullseye@sha256:1e3c713a9f5419786d85d0feb343ceff119d0f82f7ab0fefffa4150420c3ad7f

RUN GO111MODULE=on go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.10.0
RUN GO111MODULE=on go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
RUN GO111MODULE=on go install k8s.io/code-generator/cmd/conversion-gen@v0.25.4

RUN mkdir /gatekeeper
Expand Down
3 changes: 1 addition & 2 deletions config/crd/bases/_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.14.0
spec:
group: ""
names:
Expand Down
28 changes: 16 additions & 12 deletions config/crd/bases/config.gatekeeper.sh_configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.14.0
name: configs.config.gatekeeper.sh
spec:
group: config.gatekeeper.sh
Expand All @@ -21,14 +20,19 @@ spec:
description: Config is the Schema for the configs API.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
Expand All @@ -41,10 +45,10 @@ spec:
properties:
excludedNamespaces:
items:
description: 'A string that supports globbing at its front
or end. Ex: "kube-*" will match "kube-system" or "kube-public",
"*-system" will match "kube-system" or "gatekeeper-system". The
asterisk is required for wildcard matching.'
description: |-
A string that supports globbing at its front or end. Ex: "kube-*" will match "kube-system" or
"kube-public", "*-system" will match "kube-system" or "gatekeeper-system". The asterisk is
required for wildcard matching.
pattern: ^(\*|\*-)?[a-z0-9]([-:a-z0-9]*[a-z0-9])?(\*|-\*)?$
type: string
type: array
Expand Down
113 changes: 65 additions & 48 deletions config/crd/bases/expansion.gatekeeper.sh_expansiontemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.14.0
name: expansiontemplate.expansion.gatekeeper.sh
spec:
group: expansion.gatekeeper.sh
Expand All @@ -21,26 +20,33 @@ spec:
description: ExpansionTemplate is the Schema for the ExpansionTemplate API.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ExpansionTemplateSpec defines the desired state of ExpansionTemplate.
properties:
applyTo:
description: ApplyTo lists the specific groups, versions and kinds
of generator resources which will be expanded.
description: |-
ApplyTo lists the specific groups, versions and kinds of generator resources
which will be expanded.
items:
description: ApplyTo determines what GVKs items the mutation should
apply to. Globs are not allowed.
description: |-
ApplyTo determines what GVKs items the mutation should apply to.
Globs are not allowed.
properties:
groups:
items:
Expand All @@ -57,14 +63,15 @@ spec:
type: object
type: array
enforcementAction:
description: EnforcementAction specifies the enforcement action to
be used for resources matching the ExpansionTemplate. Specifying
an empty value will use the enforcement action specified by the
Constraint in violation.
description: |-
EnforcementAction specifies the enforcement action to be used for resources
matching the ExpansionTemplate. Specifying an empty value will use the
enforcement action specified by the Constraint in violation.
type: string
generatedGVK:
description: GeneratedGVK specifies the GVK of the resources which
the generator resource creates.
description: |-
GeneratedGVK specifies the GVK of the resources which the generator
resource creates.
properties:
group:
type: string
Expand All @@ -74,9 +81,10 @@ spec:
type: string
type: object
templateSource:
description: TemplateSource specifies the source field on the generator
resource to use as the base for expanded resource. For Pod-creating
generators, this is usually spec.template
description: |-
TemplateSource specifies the source field on the generator resource to
use as the base for expanded resource. For Pod-creating generators, this
is usually spec.template
type: string
type: object
status:
Expand Down Expand Up @@ -110,10 +118,10 @@ spec:
type: string
type: array
templateUID:
description: UID is a type that holds unique ID values, including
UUIDs. Because we don't ONLY use UUIDs, this is an alias
to string. Being a type captures intent and helps make sure
that UIDs and names do not get conflated.
description: |-
UID is a type that holds unique ID values, including UUIDs. Because we
don't ONLY use UUIDs, this is an alias to string. Being a type captures
intent and helps make sure that UIDs and names do not get conflated.
type: string
type: object
type: array
Expand All @@ -129,26 +137,33 @@ spec:
description: ExpansionTemplate is the Schema for the ExpansionTemplate API.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ExpansionTemplateSpec defines the desired state of ExpansionTemplate.
properties:
applyTo:
description: ApplyTo lists the specific groups, versions and kinds
of generator resources which will be expanded.
description: |-
ApplyTo lists the specific groups, versions and kinds of generator resources
which will be expanded.
items:
description: ApplyTo determines what GVKs items the mutation should
apply to. Globs are not allowed.
description: |-
ApplyTo determines what GVKs items the mutation should apply to.
Globs are not allowed.
properties:
groups:
items:
Expand All @@ -165,14 +180,15 @@ spec:
type: object
type: array
enforcementAction:
description: EnforcementAction specifies the enforcement action to
be used for resources matching the ExpansionTemplate. Specifying
an empty value will use the enforcement action specified by the
Constraint in violation.
description: |-
EnforcementAction specifies the enforcement action to be used for resources
matching the ExpansionTemplate. Specifying an empty value will use the
enforcement action specified by the Constraint in violation.
type: string
generatedGVK:
description: GeneratedGVK specifies the GVK of the resources which
the generator resource creates.
description: |-
GeneratedGVK specifies the GVK of the resources which the generator
resource creates.
properties:
group:
type: string
Expand All @@ -182,9 +198,10 @@ spec:
type: string
type: object
templateSource:
description: TemplateSource specifies the source field on the generator
resource to use as the base for expanded resource. For Pod-creating
generators, this is usually spec.template
description: |-
TemplateSource specifies the source field on the generator resource to
use as the base for expanded resource. For Pod-creating generators, this
is usually spec.template
type: string
type: object
status:
Expand Down Expand Up @@ -218,10 +235,10 @@ spec:
type: string
type: array
templateUID:
description: UID is a type that holds unique ID values, including
UUIDs. Because we don't ONLY use UUIDs, this is an alias
to string. Being a type captures intent and helps make sure
that UIDs and names do not get conflated.
description: |-
UID is a type that holds unique ID values, including UUIDs. Because we
don't ONLY use UUIDs, this is an alias to string. Being a type captures
intent and helps make sure that UIDs and names do not get conflated.
type: string
type: object
type: array
Expand Down
Loading

0 comments on commit 6cd98e9

Please sign in to comment.