bump controller-tools version when updating schema (#838)

This commit is contained in:
Dave Protasowski 2024-02-23 10:03:30 -05:00 committed by GitHub
parent 9565021883
commit 674b31b90f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 13 deletions

View File

@ -38,14 +38,25 @@ spec:
status: {} status: {}
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: Image is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached. description: |-
Image is a Knative abstraction that encapsulates the interface by which Knative
components express a desire to have a particular image cached.
type: object type: object
properties: properties:
apiVersion: 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 type: string
kind: 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 type: string
metadata: metadata:
type: object type: object
@ -59,25 +70,40 @@ spec:
description: Image is the name of the container image url to cache across the cluster. description: Image is the name of the container image url to cache across the cluster.
type: string type: string
imagePullSecrets: imagePullSecrets:
description: ImagePullSecrets contains the names of the Kubernetes Secrets containing login information used by the Pods which will run this container. description: |-
ImagePullSecrets contains the names of the Kubernetes Secrets containing login
information used by the Pods which will run this container.
type: array type: array
items: items:
description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
type: object type: object
properties: properties:
name: name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
type: string type: string
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
serviceAccountName: serviceAccountName:
description: 'ServiceAccountName is the name of the Kubernetes ServiceAccount as which the Pods will run this container. This is potentially used to authenticate the image pull if the service account has attached pull secrets. For more information: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account' description: |-
ServiceAccountName is the name of the Kubernetes ServiceAccount as which the Pods
will run this container. This is potentially used to authenticate the image pull
if the service account has attached pull secrets. For more information:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
type: string type: string
status: status:
description: Status communicates the observed state of the Image (from the controller). description: Status communicates the observed state of the Image (from the controller).
type: object type: object
properties: properties:
annotations: annotations:
description: Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. description: |-
Annotations is additional Status fields for the Resource to save some
additional State as well as convey more information to the user. This is
roughly akin to Annotations on any k8s resource, just the reconciler conveying
richer information outwards.
type: object type: object
additionalProperties: additionalProperties:
type: string type: string
@ -85,14 +111,19 @@ spec:
description: Conditions the latest available observations of a resource's current state. description: Conditions the latest available observations of a resource's current state.
type: array type: array
items: items:
description: 'Condition defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties' description: |-
Condition defines a readiness condition for a Knative resource.
See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
type: object type: object
required: required:
- status - status
- type - type
properties: properties:
lastTransitionTime: lastTransitionTime:
description: LastTransitionTime is the last time the condition transitioned from one status to another. We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic differences (all other things held constant). description: |-
LastTransitionTime is the last time the condition transitioned from one status to another.
We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string type: string
message: message:
description: A human readable message indicating details about the transition. description: A human readable message indicating details about the transition.
@ -101,7 +132,9 @@ spec:
description: The reason for the condition's last transition. description: The reason for the condition's last transition.
type: string type: string
severity: severity:
description: Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error. description: |-
Severity with which to treat failures of this type of condition.
When this is not specified, it defaults to Error.
type: string type: string
status: status:
description: Status of the condition, one of True, False, Unknown. description: Status of the condition, one of True, False, Unknown.
@ -110,7 +143,9 @@ spec:
description: Type of condition. description: Type of condition.
type: string type: string
observedGeneration: observedGeneration:
description: ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. description: |-
ObservedGeneration is the 'Generation' of the Service that
was last processed by the controller.
type: integer type: integer
format: int64 format: int64
additionalPrinterColumns: additionalPrinterColumns:

View File

@ -20,7 +20,7 @@ set -o pipefail
REPO_ROOT="$(git rev-parse --show-toplevel)" REPO_ROOT="$(git rev-parse --show-toplevel)"
go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2 \ go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 \
schemapatch:manifests=config/,generateEmbeddedObjectMeta=false \ schemapatch:manifests=config/,generateEmbeddedObjectMeta=false \
output:dir=config \ output:dir=config \
paths=./pkg/apis/... paths=./pkg/apis/...