diff --git a/Makefile b/Makefile index 3e98f5817..5dd4ad527 100644 --- a/Makefile +++ b/Makefile @@ -59,22 +59,19 @@ install-fission-cli: mv dist/fission-cli_$(GOOS)_$(GOARCH)_v1/fission$(FISSION-CLI-SUFFIX) /usr/local/bin/fission ### Codegen -codegen: controller-gen-install +codegen: @./hack/update-codegen.sh - $(GOPATH)/bin/controller-gen object:headerFile="hack/boilerplate.txt" paths="./..." + go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.txt" paths="./..." ### CRDs -controller-gen-install: - go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.3 - -generate-crds: controller-gen-install - $(GOPATH)/bin/controller-gen crd \ +generate-crds: + go run sigs.k8s.io/controller-tools/cmd/controller-gen crd \ paths=./pkg/apis/core/v1 \ output:crd:artifacts:config=crds/v1 ### Webhook generation: it generates webhook configs with help of kubebuilder:webhook tag -generate-webhooks: controller-gen-install - $(GOPATH)/bin/controller-gen webhook \ +generate-webhooks: + go run sigs.k8s.io/controller-tools/cmd/controller-gen webhook \ paths=./pkg/apis/core/v1 \ output:dir=charts/fission-all/templates/webhook-server @@ -99,12 +96,9 @@ generate-swagger-doc: generate-cli-docs: go run tools/cmd-docs/main.go -o "../fission.io/content/en/docs/reference/fission-cli" -install-crd-ref-docs: - go install github.com/elastic/crd-ref-docs@v0.1.0 - -generate-crd-ref-docs: install-crd-ref-docs +generate-crd-ref-docs: # crd-ref-docs: https://github.com/elastic/crd-ref-docs - $(GOPATH)/bin/crd-ref-docs --source-path=pkg/apis/core/v1 --config=tools/crd-ref-docs/config.yaml --renderer markdown + go run github.com/elastic/crd-ref-docs --source-path=pkg/apis/core/v1 --config=tools/crd-ref-docs/config.yaml --renderer markdown cp tools/crd-ref-docs/header.md crd_docs.md cat out.md >> crd_docs.md && rm out.md mv crd_docs.md ../fission.io/content/en/docs/reference/crd-reference.md diff --git a/crds/v1/fission.io_canaryconfigs.yaml b/crds/v1/fission.io_canaryconfigs.yaml index 9d20e8d10..e9e0cd42e 100644 --- a/crds/v1/fission.io_canaryconfigs.yaml +++ b/crds/v1/fission.io_canaryconfigs.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: canaryconfigs.fission.io spec: group: fission.io diff --git a/crds/v1/fission.io_environments.yaml b/crds/v1/fission.io_environments.yaml index d4963c374..22c651406 100644 --- a/crds/v1/fission.io_environments.yaml +++ b/crds/v1/fission.io_environments.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: environments.fission.io spec: group: fission.io @@ -311,7 +311,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -326,8 +327,8 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies an HTTP GET request + to perform. properties: host: description: |- @@ -376,8 +377,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that the - container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -390,8 +391,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect to, @@ -423,7 +424,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -438,8 +440,8 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies an HTTP GET request + to perform. properties: host: description: |- @@ -488,8 +490,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that the - container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -502,8 +504,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect to, @@ -531,7 +533,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -552,8 +555,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -572,7 +574,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -639,8 +642,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -745,7 +748,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -766,8 +770,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -786,7 +789,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -853,8 +857,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -1202,7 +1206,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -1223,8 +1228,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -1243,7 +1247,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -1310,8 +1315,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -2693,7 +2698,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2708,7 +2714,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2759,8 +2765,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2773,8 +2779,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -2806,7 +2812,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2821,7 +2828,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2872,8 +2879,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2886,8 +2893,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -2915,7 +2922,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2936,8 +2944,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -2956,7 +2963,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -3024,7 +3031,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -3130,7 +3137,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -3151,8 +3159,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -3171,7 +3178,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -3239,7 +3246,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -3589,7 +3596,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -3610,8 +3618,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -3630,7 +3637,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -3698,7 +3705,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -3913,9 +3920,13 @@ spec: options of a pod. properties: name: - description: Required. + description: |- + Name is this DNS resolver option's name. + Required. type: string value: + description: Value is this DNS resolver option's + value. type: string type: object type: array @@ -4198,7 +4209,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4213,7 +4225,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4264,8 +4276,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -4278,8 +4290,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -4311,7 +4323,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4326,7 +4339,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4377,8 +4390,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -4391,8 +4404,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -4416,7 +4429,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4437,8 +4451,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -4457,7 +4470,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4525,7 +4538,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -4619,7 +4632,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4640,8 +4654,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -4660,7 +4673,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4728,7 +4741,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -5058,7 +5071,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -5079,8 +5093,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -5099,7 +5112,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -5167,7 +5180,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -5706,7 +5719,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -5721,7 +5735,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -5772,8 +5786,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -5786,8 +5800,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -5819,7 +5833,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -5834,7 +5849,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -5885,8 +5900,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -5899,8 +5914,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -5928,7 +5943,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -5949,8 +5965,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -5969,7 +5984,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -6037,7 +6052,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -6143,7 +6158,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -6164,8 +6180,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -6184,7 +6199,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -6252,7 +6267,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -6602,7 +6617,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -6623,8 +6639,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -6643,7 +6658,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -6711,7 +6726,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -7078,6 +7093,74 @@ spec: x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map + resources: + description: |- + Resources is the total amount of CPU and Memory resources required by all + containers in the pod. It supports specifying Requests and Limits for + "cpu" and "memory" resource names only. ResourceClaims are not supported. + + This field enables fine-grained control over resource allocation for the + entire pod, allowing resource sharing among containers in a pod. + + This is an alpha field and requires enabling the PodLevelResources feature + gate. + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + properties: + name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. + type: string + request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + type: object restartPolicy: description: |- Restart policy for all containers within the pod. @@ -7202,6 +7285,32 @@ spec: Note that this field cannot be set when spec.os.name is windows. format: int64 type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. + It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. + Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. + This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. + This requires all Pods that share the same volume to use the same SELinux label. + It is not possible to share the same volume among privileged and unprivileged Pods. + Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes + whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their + CSIDriver instance. Other volumes are always re-labelled recursively. + "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. + If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes + and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. + Note that this field cannot be set when spec.os.name is windows. + type: string seLinuxOptions: description: |- The SELinux context to be applied to all containers. @@ -7608,6 +7717,8 @@ spec: description: |- awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree + awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore properties: fsType: @@ -7639,8 +7750,10 @@ spec: - volumeID type: object azureDisk: - description: azureDisk represents an Azure Data Disk - mount on the host and bind mount to the pod. + description: |- + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type + are redirected to the disk.csi.azure.com CSI driver. properties: cachingMode: description: 'cachingMode is the Host Caching mode: @@ -7679,8 +7792,10 @@ spec: - diskURI type: object azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. + description: |- + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type + are redirected to the file.csi.azure.com CSI driver. properties: readOnly: description: |- @@ -7699,8 +7814,9 @@ spec: - shareName type: object cephfs: - description: cephFS represents a Ceph FS mount on the - host that shares a pod's lifetime + description: |- + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. + Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. properties: monitors: description: |- @@ -7753,6 +7869,8 @@ spec: cinder: description: |- cinder represents a cinder volume attached and mounted on kubelets host machine. + Deprecated: Cinder is deprecated. All operations for the in-tree cinder type + are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md properties: fsType: @@ -7864,7 +7982,7 @@ spec: csi: description: csi (Container Storage Interface) represents ephemeral storage that is handled by certain external - CSI drivers (Beta feature). + CSI drivers. properties: driver: description: |- @@ -8335,6 +8453,7 @@ spec: description: |- flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. properties: driver: description: driver is the name of the driver to @@ -8380,9 +8499,9 @@ spec: - driver type: object flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running + description: |- + flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. + Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. properties: datasetName: description: |- @@ -8398,6 +8517,8 @@ spec: description: |- gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree + gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk properties: fsType: @@ -8433,7 +8554,7 @@ spec: gitRepo: description: |- gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an + Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: @@ -8457,6 +8578,7 @@ spec: glusterfs: description: |- glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md properties: endpoints: @@ -8666,9 +8788,9 @@ spec: - claimName type: object photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine + description: |- + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. + Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported. properties: fsType: description: |- @@ -8684,8 +8806,11 @@ spec: - pdID type: object portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine + description: |- + portworxVolume represents a portworx volume attached and mounted on kubelets host machine. + Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type + are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate + is on. properties: fsType: description: |- @@ -9056,8 +9181,9 @@ spec: x-kubernetes-list-type: atomic type: object quobyte: - description: quobyte represents a Quobyte mount on the - host that shares a pod's lifetime + description: |- + quobyte represents a Quobyte mount on the host that shares a pod's lifetime. + Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported. properties: group: description: |- @@ -9096,6 +9222,7 @@ spec: rbd: description: |- rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. + Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md properties: fsType: @@ -9168,8 +9295,9 @@ spec: - monitors type: object scaleIO: - description: scaleIO represents a ScaleIO persistent - volume attached and mounted on Kubernetes nodes. + description: |- + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported. properties: fsType: default: xfs @@ -9302,8 +9430,9 @@ spec: type: string type: object storageos: - description: storageOS represents a StorageOS volume - attached and mounted on Kubernetes nodes. + description: |- + storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. properties: fsType: description: |- @@ -9348,8 +9477,10 @@ spec: type: string type: object vsphereVolume: - description: vsphereVolume represents a vSphere volume - attached and mounted on kubelets host machine + description: |- + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. + Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type + are redirected to the csi.vsphere.vmware.com CSI driver. properties: fsType: description: |- @@ -9712,7 +9843,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -9727,8 +9859,8 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies an HTTP GET request + to perform. properties: host: description: |- @@ -9777,8 +9909,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that the - container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -9791,8 +9923,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect to, @@ -9824,7 +9956,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -9839,8 +9972,8 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies an HTTP GET request + to perform. properties: host: description: |- @@ -9889,8 +10022,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that the - container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -9903,8 +10036,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect to, @@ -9932,7 +10065,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -9953,8 +10087,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -9973,7 +10106,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -10040,8 +10174,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -10146,7 +10280,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -10167,8 +10302,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -10187,7 +10321,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -10254,8 +10389,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -10603,7 +10738,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in the + container. properties: command: description: |- @@ -10624,8 +10760,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -10644,7 +10779,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -10711,8 +10847,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving a - TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, defaults @@ -12102,7 +12238,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -12117,7 +12254,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -12168,8 +12305,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -12182,8 +12319,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -12215,7 +12352,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -12230,7 +12368,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -12281,8 +12419,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -12295,8 +12433,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -12324,7 +12462,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -12345,8 +12484,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -12365,7 +12503,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -12433,7 +12571,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -12539,7 +12677,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -12560,8 +12699,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -12580,7 +12718,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -12648,7 +12786,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -12998,7 +13136,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -13019,8 +13158,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -13039,7 +13177,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -13107,7 +13245,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -13322,9 +13460,13 @@ spec: options of a pod. properties: name: - description: Required. + description: |- + Name is this DNS resolver option's name. + Required. type: string value: + description: Value is this DNS resolver option's + value. type: string type: object type: array @@ -13607,7 +13749,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -13622,7 +13765,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -13673,8 +13816,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -13687,8 +13830,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -13720,7 +13863,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -13735,7 +13879,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -13786,8 +13930,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -13800,8 +13944,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -13825,7 +13969,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -13846,8 +13991,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -13866,7 +14010,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -13934,7 +14078,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -14028,7 +14172,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -14049,8 +14194,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -14069,7 +14213,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -14137,7 +14281,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -14467,7 +14611,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -14488,8 +14633,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -14508,7 +14652,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -14576,7 +14720,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -15115,7 +15259,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -15130,7 +15275,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -15181,8 +15326,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -15195,8 +15340,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -15228,7 +15373,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -15243,7 +15389,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -15294,8 +15440,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that + the container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -15308,8 +15454,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -15337,7 +15483,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -15358,8 +15505,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -15378,7 +15524,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -15446,7 +15592,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -15552,7 +15698,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -15573,8 +15720,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -15593,7 +15739,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -15661,7 +15807,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -16011,7 +16157,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -16032,8 +16179,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving - a GRPC port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. @@ -16052,7 +16198,7 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -16120,7 +16266,7 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving + description: TCPSocket specifies a connection to a TCP port. properties: host: @@ -16487,6 +16633,74 @@ spec: x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map + resources: + description: |- + Resources is the total amount of CPU and Memory resources required by all + containers in the pod. It supports specifying Requests and Limits for + "cpu" and "memory" resource names only. ResourceClaims are not supported. + + This field enables fine-grained control over resource allocation for the + entire pod, allowing resource sharing among containers in a pod. + + This is an alpha field and requires enabling the PodLevelResources feature + gate. + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + properties: + name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. + type: string + request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + type: object restartPolicy: description: |- Restart policy for all containers within the pod. @@ -16611,6 +16825,32 @@ spec: Note that this field cannot be set when spec.os.name is windows. format: int64 type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. + It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. + Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. + This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. + This requires all Pods that share the same volume to use the same SELinux label. + It is not possible to share the same volume among privileged and unprivileged Pods. + Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes + whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their + CSIDriver instance. Other volumes are always re-labelled recursively. + "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. + If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes + and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. + Note that this field cannot be set when spec.os.name is windows. + type: string seLinuxOptions: description: |- The SELinux context to be applied to all containers. @@ -17017,6 +17257,8 @@ spec: description: |- awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree + awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore properties: fsType: @@ -17048,8 +17290,10 @@ spec: - volumeID type: object azureDisk: - description: azureDisk represents an Azure Data Disk - mount on the host and bind mount to the pod. + description: |- + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type + are redirected to the disk.csi.azure.com CSI driver. properties: cachingMode: description: 'cachingMode is the Host Caching mode: @@ -17088,8 +17332,10 @@ spec: - diskURI type: object azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. + description: |- + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type + are redirected to the file.csi.azure.com CSI driver. properties: readOnly: description: |- @@ -17108,8 +17354,9 @@ spec: - shareName type: object cephfs: - description: cephFS represents a Ceph FS mount on the - host that shares a pod's lifetime + description: |- + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. + Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. properties: monitors: description: |- @@ -17162,6 +17409,8 @@ spec: cinder: description: |- cinder represents a cinder volume attached and mounted on kubelets host machine. + Deprecated: Cinder is deprecated. All operations for the in-tree cinder type + are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md properties: fsType: @@ -17273,7 +17522,7 @@ spec: csi: description: csi (Container Storage Interface) represents ephemeral storage that is handled by certain external - CSI drivers (Beta feature). + CSI drivers. properties: driver: description: |- @@ -17744,6 +17993,7 @@ spec: description: |- flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. properties: driver: description: driver is the name of the driver to @@ -17789,9 +18039,9 @@ spec: - driver type: object flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running + description: |- + flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. + Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. properties: datasetName: description: |- @@ -17807,6 +18057,8 @@ spec: description: |- gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree + gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk properties: fsType: @@ -17842,7 +18094,7 @@ spec: gitRepo: description: |- gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an + Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: @@ -17866,6 +18118,7 @@ spec: glusterfs: description: |- glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md properties: endpoints: @@ -18075,9 +18328,9 @@ spec: - claimName type: object photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine + description: |- + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. + Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported. properties: fsType: description: |- @@ -18093,8 +18346,11 @@ spec: - pdID type: object portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine + description: |- + portworxVolume represents a portworx volume attached and mounted on kubelets host machine. + Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type + are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate + is on. properties: fsType: description: |- @@ -18465,8 +18721,9 @@ spec: x-kubernetes-list-type: atomic type: object quobyte: - description: quobyte represents a Quobyte mount on the - host that shares a pod's lifetime + description: |- + quobyte represents a Quobyte mount on the host that shares a pod's lifetime. + Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported. properties: group: description: |- @@ -18505,6 +18762,7 @@ spec: rbd: description: |- rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. + Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md properties: fsType: @@ -18577,8 +18835,9 @@ spec: - monitors type: object scaleIO: - description: scaleIO represents a ScaleIO persistent - volume attached and mounted on Kubernetes nodes. + description: |- + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported. properties: fsType: default: xfs @@ -18711,8 +18970,9 @@ spec: type: string type: object storageos: - description: storageOS represents a StorageOS volume - attached and mounted on Kubernetes nodes. + description: |- + storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. properties: fsType: description: |- @@ -18757,8 +19017,10 @@ spec: type: string type: object vsphereVolume: - description: vsphereVolume represents a vSphere volume - attached and mounted on kubelets host machine + description: |- + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. + Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type + are redirected to the csi.vsphere.vmware.com CSI driver. properties: fsType: description: |- diff --git a/crds/v1/fission.io_functions.yaml b/crds/v1/fission.io_functions.yaml index e19e0a893..b3c362332 100644 --- a/crds/v1/fission.io_functions.yaml +++ b/crds/v1/fission.io_functions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: functions.fission.io spec: group: fission.io @@ -210,7 +210,6 @@ spec: each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. - This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. properties: container: description: container is the name of the container @@ -657,8 +656,6 @@ spec: description: |- type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. - Note: "ContainerResource" type is available on when the feature-gate - HPAContainerMetrics is enabled type: string required: - type @@ -1941,7 +1938,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -1956,7 +1954,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2006,8 +2004,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2020,8 +2018,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -2053,7 +2051,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2068,7 +2067,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2118,8 +2117,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2132,8 +2131,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -2161,7 +2160,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -2182,8 +2182,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -2202,7 +2201,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -2269,8 +2269,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -2375,7 +2375,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -2396,8 +2397,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -2416,7 +2416,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -2483,8 +2484,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -2833,7 +2834,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -2854,8 +2856,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -2874,7 +2875,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -2941,8 +2943,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -3155,9 +3157,12 @@ spec: of a pod. properties: name: - description: Required. + description: |- + Name is this DNS resolver option's name. + Required. type: string value: + description: Value is this DNS resolver option's value. type: string type: object type: array @@ -3436,7 +3441,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -3451,7 +3457,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -3501,8 +3507,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -3515,8 +3521,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -3548,7 +3554,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -3563,7 +3570,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -3613,8 +3620,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -3627,8 +3634,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -3652,7 +3659,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -3673,8 +3681,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -3693,7 +3700,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -3760,8 +3768,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -3854,7 +3862,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -3875,8 +3884,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -3895,7 +3903,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -3962,8 +3971,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -4292,7 +4301,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -4313,8 +4323,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -4333,7 +4342,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -4400,8 +4410,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -4935,7 +4945,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4950,7 +4961,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -5000,8 +5011,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -5014,8 +5025,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -5047,7 +5058,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -5062,7 +5074,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -5112,8 +5124,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -5126,8 +5138,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -5155,7 +5167,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -5176,8 +5189,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -5196,7 +5208,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -5263,8 +5276,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -5369,7 +5382,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -5390,8 +5404,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -5410,7 +5423,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -5477,8 +5491,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -5827,7 +5841,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -5848,8 +5863,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -5868,7 +5882,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -5935,8 +5950,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -6301,6 +6316,74 @@ spec: x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map + resources: + description: |- + Resources is the total amount of CPU and Memory resources required by all + containers in the pod. It supports specifying Requests and Limits for + "cpu" and "memory" resource names only. ResourceClaims are not supported. + + This field enables fine-grained control over resource allocation for the + entire pod, allowing resource sharing among containers in a pod. + + This is an alpha field and requires enabling the PodLevelResources feature + gate. + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + properties: + name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. + type: string + request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + type: object restartPolicy: description: |- Restart policy for all containers within the pod. @@ -6425,6 +6508,32 @@ spec: Note that this field cannot be set when spec.os.name is windows. format: int64 type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. + It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. + Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. + This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. + This requires all Pods that share the same volume to use the same SELinux label. + It is not possible to share the same volume among privileged and unprivileged Pods. + Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes + whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their + CSIDriver instance. Other volumes are always re-labelled recursively. + "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. + If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes + and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. + Note that this field cannot be set when spec.os.name is windows. + type: string seLinuxOptions: description: |- The SELinux context to be applied to all containers. @@ -6830,6 +6939,8 @@ spec: description: |- awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree + awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore properties: fsType: @@ -6861,8 +6972,10 @@ spec: - volumeID type: object azureDisk: - description: azureDisk represents an Azure Data Disk mount - on the host and bind mount to the pod. + description: |- + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type + are redirected to the disk.csi.azure.com CSI driver. properties: cachingMode: description: 'cachingMode is the Host Caching mode: @@ -6901,8 +7014,10 @@ spec: - diskURI type: object azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. + description: |- + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type + are redirected to the file.csi.azure.com CSI driver. properties: readOnly: description: |- @@ -6921,8 +7036,9 @@ spec: - shareName type: object cephfs: - description: cephFS represents a Ceph FS mount on the host - that shares a pod's lifetime + description: |- + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. + Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. properties: monitors: description: |- @@ -6974,6 +7090,8 @@ spec: cinder: description: |- cinder represents a cinder volume attached and mounted on kubelets host machine. + Deprecated: Cinder is deprecated. All operations for the in-tree cinder type + are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md properties: fsType: @@ -7085,7 +7203,7 @@ spec: csi: description: csi (Container Storage Interface) represents ephemeral storage that is handled by certain external - CSI drivers (Beta feature). + CSI drivers. properties: driver: description: |- @@ -7552,6 +7670,7 @@ spec: description: |- flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. properties: driver: description: driver is the name of the driver to use @@ -7597,9 +7716,9 @@ spec: - driver type: object flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running + description: |- + flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. + Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. properties: datasetName: description: |- @@ -7615,6 +7734,8 @@ spec: description: |- gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree + gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk properties: fsType: @@ -7650,7 +7771,7 @@ spec: gitRepo: description: |- gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an + Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: @@ -7674,6 +7795,7 @@ spec: glusterfs: description: |- glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md properties: endpoints: @@ -7883,9 +8005,9 @@ spec: - claimName type: object photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine + description: |- + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. + Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported. properties: fsType: description: |- @@ -7901,8 +8023,11 @@ spec: - pdID type: object portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine + description: |- + portworxVolume represents a portworx volume attached and mounted on kubelets host machine. + Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type + are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate + is on. properties: fsType: description: |- @@ -8269,8 +8394,9 @@ spec: x-kubernetes-list-type: atomic type: object quobyte: - description: quobyte represents a Quobyte mount on the host - that shares a pod's lifetime + description: |- + quobyte represents a Quobyte mount on the host that shares a pod's lifetime. + Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported. properties: group: description: |- @@ -8309,6 +8435,7 @@ spec: rbd: description: |- rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. + Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md properties: fsType: @@ -8381,8 +8508,9 @@ spec: - monitors type: object scaleIO: - description: scaleIO represents a ScaleIO persistent volume - attached and mounted on Kubernetes nodes. + description: |- + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported. properties: fsType: default: xfs @@ -8515,8 +8643,9 @@ spec: type: string type: object storageos: - description: storageOS represents a StorageOS volume attached - and mounted on Kubernetes nodes. + description: |- + storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. properties: fsType: description: |- @@ -8561,8 +8690,10 @@ spec: type: string type: object vsphereVolume: - description: vsphereVolume represents a vSphere volume attached - and mounted on kubelets host machine + description: |- + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. + Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type + are redirected to the csi.vsphere.vmware.com CSI driver. properties: fsType: description: |- diff --git a/crds/v1/fission.io_httptriggers.yaml b/crds/v1/fission.io_httptriggers.yaml index b2dfcb675..1c4fa3465 100644 --- a/crds/v1/fission.io_httptriggers.yaml +++ b/crds/v1/fission.io_httptriggers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: httptriggers.fission.io spec: group: fission.io diff --git a/crds/v1/fission.io_kuberneteswatchtriggers.yaml b/crds/v1/fission.io_kuberneteswatchtriggers.yaml index 7c728d6c1..25d242aca 100644 --- a/crds/v1/fission.io_kuberneteswatchtriggers.yaml +++ b/crds/v1/fission.io_kuberneteswatchtriggers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: kuberneteswatchtriggers.fission.io spec: group: fission.io diff --git a/crds/v1/fission.io_messagequeuetriggers.yaml b/crds/v1/fission.io_messagequeuetriggers.yaml index 968366e75..1c4ba54ae 100644 --- a/crds/v1/fission.io_messagequeuetriggers.yaml +++ b/crds/v1/fission.io_messagequeuetriggers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: messagequeuetriggers.fission.io spec: group: fission.io @@ -1303,7 +1303,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -1318,7 +1319,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -1368,8 +1369,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -1382,8 +1383,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -1415,7 +1416,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -1430,7 +1432,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -1480,8 +1482,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -1494,8 +1496,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -1523,7 +1525,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -1544,8 +1547,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -1564,7 +1566,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -1631,8 +1634,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -1737,7 +1740,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -1758,8 +1762,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -1778,7 +1781,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -1845,8 +1849,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -2195,7 +2199,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -2216,8 +2221,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -2236,7 +2240,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -2303,8 +2308,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -2517,9 +2522,12 @@ spec: of a pod. properties: name: - description: Required. + description: |- + Name is this DNS resolver option's name. + Required. type: string value: + description: Value is this DNS resolver option's value. type: string type: object type: array @@ -2798,7 +2806,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2813,7 +2822,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2863,8 +2872,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2877,8 +2886,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -2910,7 +2919,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -2925,7 +2935,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -2975,8 +2985,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -2989,8 +2999,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -3014,7 +3024,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -3035,8 +3046,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -3055,7 +3065,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -3122,8 +3133,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -3216,7 +3227,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -3237,8 +3249,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -3257,7 +3268,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -3324,8 +3336,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -3654,7 +3666,8 @@ spec: description: Probes are not allowed for ephemeral containers. properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -3675,8 +3688,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -3695,7 +3707,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -3762,8 +3775,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -4297,7 +4310,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4312,7 +4326,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4362,8 +4376,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -4376,8 +4390,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -4409,7 +4423,8 @@ spec: More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute + in the container. properties: command: description: |- @@ -4424,7 +4439,7 @@ spec: x-kubernetes-list-type: atomic type: object httpGet: - description: HTTPGet specifies the http request + description: HTTPGet specifies an HTTP GET request to perform. properties: host: @@ -4474,8 +4489,8 @@ spec: - port type: object sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. + description: Sleep represents a duration that the + container should sleep. properties: seconds: description: Seconds is the number of seconds @@ -4488,8 +4503,8 @@ spec: tcpSocket: description: |- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. + for backward compatibility. There is no validation of this field and + lifecycle hooks will fail at runtime when it is specified. properties: host: description: 'Optional: Host name to connect @@ -4517,7 +4532,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -4538,8 +4554,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -4558,7 +4573,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -4625,8 +4641,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -4731,7 +4747,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -4752,8 +4769,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -4772,7 +4788,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -4839,8 +4856,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -5189,7 +5206,8 @@ spec: More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes properties: exec: - description: Exec specifies the action to take. + description: Exec specifies a command to execute in + the container. properties: command: description: |- @@ -5210,8 +5228,7 @@ spec: format: int32 type: integer grpc: - description: GRPC specifies an action involving a GRPC - port. + description: GRPC specifies a GRPC HealthCheckRequest. properties: port: description: Port number of the gRPC service. Number @@ -5230,7 +5247,8 @@ spec: - port type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies an HTTP GET request to + perform. properties: host: description: |- @@ -5297,8 +5315,8 @@ spec: format: int32 type: integer tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. + description: TCPSocket specifies a connection to a TCP + port. properties: host: description: 'Optional: Host name to connect to, @@ -5663,6 +5681,74 @@ spec: x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map + resources: + description: |- + Resources is the total amount of CPU and Memory resources required by all + containers in the pod. It supports specifying Requests and Limits for + "cpu" and "memory" resource names only. ResourceClaims are not supported. + + This field enables fine-grained control over resource allocation for the + entire pod, allowing resource sharing among containers in a pod. + + This is an alpha field and requires enabling the PodLevelResources feature + gate. + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + properties: + name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. + type: string + request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + type: object restartPolicy: description: |- Restart policy for all containers within the pod. @@ -5787,6 +5873,32 @@ spec: Note that this field cannot be set when spec.os.name is windows. format: int64 type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. + It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. + Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. + This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. + This requires all Pods that share the same volume to use the same SELinux label. + It is not possible to share the same volume among privileged and unprivileged Pods. + Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes + whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their + CSIDriver instance. Other volumes are always re-labelled recursively. + "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. + If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes + and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. + Note that this field cannot be set when spec.os.name is windows. + type: string seLinuxOptions: description: |- The SELinux context to be applied to all containers. @@ -6192,6 +6304,8 @@ spec: description: |- awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree + awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore properties: fsType: @@ -6223,8 +6337,10 @@ spec: - volumeID type: object azureDisk: - description: azureDisk represents an Azure Data Disk mount - on the host and bind mount to the pod. + description: |- + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type + are redirected to the disk.csi.azure.com CSI driver. properties: cachingMode: description: 'cachingMode is the Host Caching mode: @@ -6263,8 +6379,10 @@ spec: - diskURI type: object azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. + description: |- + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type + are redirected to the file.csi.azure.com CSI driver. properties: readOnly: description: |- @@ -6283,8 +6401,9 @@ spec: - shareName type: object cephfs: - description: cephFS represents a Ceph FS mount on the host - that shares a pod's lifetime + description: |- + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. + Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. properties: monitors: description: |- @@ -6336,6 +6455,8 @@ spec: cinder: description: |- cinder represents a cinder volume attached and mounted on kubelets host machine. + Deprecated: Cinder is deprecated. All operations for the in-tree cinder type + are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md properties: fsType: @@ -6447,7 +6568,7 @@ spec: csi: description: csi (Container Storage Interface) represents ephemeral storage that is handled by certain external - CSI drivers (Beta feature). + CSI drivers. properties: driver: description: |- @@ -6914,6 +7035,7 @@ spec: description: |- flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. properties: driver: description: driver is the name of the driver to use @@ -6959,9 +7081,9 @@ spec: - driver type: object flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running + description: |- + flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. + Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. properties: datasetName: description: |- @@ -6977,6 +7099,8 @@ spec: description: |- gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. + Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree + gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk properties: fsType: @@ -7012,7 +7136,7 @@ spec: gitRepo: description: |- gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an + Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: @@ -7036,6 +7160,7 @@ spec: glusterfs: description: |- glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md properties: endpoints: @@ -7245,9 +7370,9 @@ spec: - claimName type: object photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine + description: |- + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. + Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported. properties: fsType: description: |- @@ -7263,8 +7388,11 @@ spec: - pdID type: object portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine + description: |- + portworxVolume represents a portworx volume attached and mounted on kubelets host machine. + Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type + are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate + is on. properties: fsType: description: |- @@ -7631,8 +7759,9 @@ spec: x-kubernetes-list-type: atomic type: object quobyte: - description: quobyte represents a Quobyte mount on the host - that shares a pod's lifetime + description: |- + quobyte represents a Quobyte mount on the host that shares a pod's lifetime. + Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported. properties: group: description: |- @@ -7671,6 +7800,7 @@ spec: rbd: description: |- rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. + Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md properties: fsType: @@ -7743,8 +7873,9 @@ spec: - monitors type: object scaleIO: - description: scaleIO represents a ScaleIO persistent volume - attached and mounted on Kubernetes nodes. + description: |- + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported. properties: fsType: default: xfs @@ -7877,8 +8008,9 @@ spec: type: string type: object storageos: - description: storageOS represents a StorageOS volume attached - and mounted on Kubernetes nodes. + description: |- + storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. properties: fsType: description: |- @@ -7923,8 +8055,10 @@ spec: type: string type: object vsphereVolume: - description: vsphereVolume represents a vSphere volume attached - and mounted on kubelets host machine + description: |- + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. + Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type + are redirected to the csi.vsphere.vmware.com CSI driver. properties: fsType: description: |- diff --git a/crds/v1/fission.io_packages.yaml b/crds/v1/fission.io_packages.yaml index 27ef881cb..d152ae2fe 100644 --- a/crds/v1/fission.io_packages.yaml +++ b/crds/v1/fission.io_packages.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: packages.fission.io spec: group: fission.io diff --git a/crds/v1/fission.io_timetriggers.yaml b/crds/v1/fission.io_timetriggers.yaml index fe0c3266c..055769ae5 100644 --- a/crds/v1/fission.io_timetriggers.yaml +++ b/crds/v1/fission.io_timetriggers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.3 + controller-gen.kubebuilder.io/version: v0.17.0 name: timetriggers.fission.io spec: group: fission.io diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 2846e4d63..172b60694 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -7,7 +7,7 @@ GOPATH=$(go env GOPATH) SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. CODEGEN_PKG=${CODEGEN_PKG:-$( cd "${SCRIPT_ROOT}" - ls -d -1 ${SCRIPT_ROOT}/../code-generator 2>/dev/null || echo $GOPATH/pkg/mod/k8s.io/code-generator@v0.30.0 + ls -d -1 ${SCRIPT_ROOT}/../code-generator 2>/dev/null || echo $GOPATH/pkg/mod/k8s.io/code-generator@v0.32.0 )} OUTDIR="${SCRIPT_ROOT}/pkg/generated" diff --git a/pkg/generated/applyconfiguration/core/v1/archive.go b/pkg/generated/applyconfiguration/core/v1/archive.go index 85695280f..fbfd8139b 100644 --- a/pkg/generated/applyconfiguration/core/v1/archive.go +++ b/pkg/generated/applyconfiguration/core/v1/archive.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" ) // ArchiveApplyConfiguration represents a declarative configuration of the Archive type for use // with apply. type ArchiveApplyConfiguration struct { - Type *v1.ArchiveType `json:"type,omitempty"` + Type *corev1.ArchiveType `json:"type,omitempty"` Literal []byte `json:"literal,omitempty"` URL *string `json:"url,omitempty"` Checksum *ChecksumApplyConfiguration `json:"checksum,omitempty"` @@ -40,7 +40,7 @@ func Archive() *ArchiveApplyConfiguration { // WithType sets the Type field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Type field is set to the value of the last call. -func (b *ArchiveApplyConfiguration) WithType(value v1.ArchiveType) *ArchiveApplyConfiguration { +func (b *ArchiveApplyConfiguration) WithType(value corev1.ArchiveType) *ArchiveApplyConfiguration { b.Type = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/builder.go b/pkg/generated/applyconfiguration/core/v1/builder.go index 9d011c42f..ae09eb78c 100644 --- a/pkg/generated/applyconfiguration/core/v1/builder.go +++ b/pkg/generated/applyconfiguration/core/v1/builder.go @@ -19,16 +19,16 @@ limitations under the License. package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" ) // BuilderApplyConfiguration represents a declarative configuration of the Builder type for use // with apply. type BuilderApplyConfiguration struct { - Image *string `json:"image,omitempty"` - Command *string `json:"command,omitempty"` - Container *v1.Container `json:"container,omitempty"` - PodSpec *v1.PodSpec `json:"podspec,omitempty"` + Image *string `json:"image,omitempty"` + Command *string `json:"command,omitempty"` + Container *corev1.Container `json:"container,omitempty"` + PodSpec *corev1.PodSpec `json:"podspec,omitempty"` } // BuilderApplyConfiguration constructs a declarative configuration of the Builder type for use with @@ -56,7 +56,7 @@ func (b *BuilderApplyConfiguration) WithCommand(value string) *BuilderApplyConfi // WithContainer sets the Container field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Container field is set to the value of the last call. -func (b *BuilderApplyConfiguration) WithContainer(value v1.Container) *BuilderApplyConfiguration { +func (b *BuilderApplyConfiguration) WithContainer(value corev1.Container) *BuilderApplyConfiguration { b.Container = &value return b } @@ -64,7 +64,7 @@ func (b *BuilderApplyConfiguration) WithContainer(value v1.Container) *BuilderAp // WithPodSpec sets the PodSpec field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the PodSpec field is set to the value of the last call. -func (b *BuilderApplyConfiguration) WithPodSpec(value v1.PodSpec) *BuilderApplyConfiguration { +func (b *BuilderApplyConfiguration) WithPodSpec(value corev1.PodSpec) *BuilderApplyConfiguration { b.PodSpec = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/canaryconfig.go b/pkg/generated/applyconfiguration/core/v1/canaryconfig.go index c17cf3194..140352298 100644 --- a/pkg/generated/applyconfiguration/core/v1/canaryconfig.go +++ b/pkg/generated/applyconfiguration/core/v1/canaryconfig.go @@ -19,18 +19,18 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // CanaryConfigApplyConfiguration represents a declarative configuration of the CanaryConfig type for use // with apply. type CanaryConfigApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"` - Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"` + Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"` } // CanaryConfig constructs a declarative configuration of the CanaryConfig type for use with @@ -48,7 +48,7 @@ func CanaryConfig(name, namespace string) *CanaryConfigApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApp // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryConfigApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryCon // If called multiple times, the Name field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApp // If called multiple times, the GenerateName field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryC // If called multiple times, the Namespace field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConf // If called multiple times, the UID field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigA // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *Cana // If called multiple times, the Generation field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithGeneration(value int64) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *CanaryConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CanaryConfigApplyConfiguration { +func (b *CanaryConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CanaryConfigApplyConfiguration { +func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value in // overwriting an existing map entries in Labels field with the same key. func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -162,11 +162,11 @@ func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) * // overwriting an existing map entries in Annotations field with the same key. func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -174,13 +174,13 @@ func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]stri // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CanaryConfigApplyConfiguration { +func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -191,14 +191,14 @@ func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Owner func (b *CanaryConfigApplyConfiguration) WithFinalizers(values ...string) *CanaryConfigApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *CanaryConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -221,5 +221,5 @@ func (b *CanaryConfigApplyConfiguration) WithStatus(value *CanaryConfigStatusApp // GetName retrieves the value of the Name field in the declarative configuration. func (b *CanaryConfigApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/canaryconfigspec.go b/pkg/generated/applyconfiguration/core/v1/canaryconfigspec.go index 11859b82d..4e152cb26 100644 --- a/pkg/generated/applyconfiguration/core/v1/canaryconfigspec.go +++ b/pkg/generated/applyconfiguration/core/v1/canaryconfigspec.go @@ -19,19 +19,19 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" ) // CanaryConfigSpecApplyConfiguration represents a declarative configuration of the CanaryConfigSpec type for use // with apply. type CanaryConfigSpecApplyConfiguration struct { - Trigger *string `json:"trigger,omitempty"` - NewFunction *string `json:"newfunction,omitempty"` - OldFunction *string `json:"oldfunction,omitempty"` - WeightIncrement *int `json:"weightincrement,omitempty"` - WeightIncrementDuration *string `json:"duration,omitempty"` - FailureThreshold *int `json:"failurethreshold,omitempty"` - FailureType *v1.FailureType `json:"failureType,omitempty"` + Trigger *string `json:"trigger,omitempty"` + NewFunction *string `json:"newfunction,omitempty"` + OldFunction *string `json:"oldfunction,omitempty"` + WeightIncrement *int `json:"weightincrement,omitempty"` + WeightIncrementDuration *string `json:"duration,omitempty"` + FailureThreshold *int `json:"failurethreshold,omitempty"` + FailureType *corev1.FailureType `json:"failureType,omitempty"` } // CanaryConfigSpecApplyConfiguration constructs a declarative configuration of the CanaryConfigSpec type for use with @@ -91,7 +91,7 @@ func (b *CanaryConfigSpecApplyConfiguration) WithFailureThreshold(value int) *Ca // WithFailureType sets the FailureType field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the FailureType field is set to the value of the last call. -func (b *CanaryConfigSpecApplyConfiguration) WithFailureType(value v1.FailureType) *CanaryConfigSpecApplyConfiguration { +func (b *CanaryConfigSpecApplyConfiguration) WithFailureType(value corev1.FailureType) *CanaryConfigSpecApplyConfiguration { b.FailureType = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/checksum.go b/pkg/generated/applyconfiguration/core/v1/checksum.go index 45a71a817..b874b7961 100644 --- a/pkg/generated/applyconfiguration/core/v1/checksum.go +++ b/pkg/generated/applyconfiguration/core/v1/checksum.go @@ -19,14 +19,14 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" ) // ChecksumApplyConfiguration represents a declarative configuration of the Checksum type for use // with apply. type ChecksumApplyConfiguration struct { - Type *v1.ChecksumType `json:"type,omitempty"` - Sum *string `json:"sum,omitempty"` + Type *corev1.ChecksumType `json:"type,omitempty"` + Sum *string `json:"sum,omitempty"` } // ChecksumApplyConfiguration constructs a declarative configuration of the Checksum type for use with @@ -38,7 +38,7 @@ func Checksum() *ChecksumApplyConfiguration { // WithType sets the Type field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Type field is set to the value of the last call. -func (b *ChecksumApplyConfiguration) WithType(value v1.ChecksumType) *ChecksumApplyConfiguration { +func (b *ChecksumApplyConfiguration) WithType(value corev1.ChecksumType) *ChecksumApplyConfiguration { b.Type = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/environment.go b/pkg/generated/applyconfiguration/core/v1/environment.go index 756f499ea..8f4be9622 100644 --- a/pkg/generated/applyconfiguration/core/v1/environment.go +++ b/pkg/generated/applyconfiguration/core/v1/environment.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // EnvironmentApplyConfiguration represents a declarative configuration of the Environment type for use // with apply. type EnvironmentApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"` } // Environment constructs a declarative configuration of the Environment type for use with @@ -47,7 +47,7 @@ func Environment(name, namespace string) *EnvironmentApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApply // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *EnvironmentApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *Environmen // If called multiple times, the Name field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApply // If called multiple times, the GenerateName field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *Environm // If called multiple times, the Namespace field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *Environment // If called multiple times, the UID field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApp // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *Envir // If called multiple times, the Generation field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithGeneration(value int64) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *EnvironmentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EnvironmentApplyConfiguration { +func (b *EnvironmentApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EnvironmentApplyConfiguration { +func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int // overwriting an existing map entries in Labels field with the same key. func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *E // overwriting an existing map entries in Annotations field with the same key. func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]strin // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EnvironmentApplyConfiguration { +func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR func (b *EnvironmentApplyConfiguration) WithFinalizers(values ...string) *EnvironmentApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *EnvironmentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *EnvironmentApplyConfiguration) WithSpec(value *EnvironmentSpecApplyConf // GetName retrieves the value of the Name field in the declarative configuration. func (b *EnvironmentApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/executionstrategy.go b/pkg/generated/applyconfiguration/core/v1/executionstrategy.go index 8ba12929b..5f0f60b46 100644 --- a/pkg/generated/applyconfiguration/core/v1/executionstrategy.go +++ b/pkg/generated/applyconfiguration/core/v1/executionstrategy.go @@ -19,14 +19,14 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" v2 "k8s.io/api/autoscaling/v2" ) // ExecutionStrategyApplyConfiguration represents a declarative configuration of the ExecutionStrategy type for use // with apply. type ExecutionStrategyApplyConfiguration struct { - ExecutorType *v1.ExecutorType `json:"ExecutorType,omitempty"` + ExecutorType *corev1.ExecutorType `json:"ExecutorType,omitempty"` MinScale *int `json:"MinScale,omitempty"` MaxScale *int `json:"MaxScale,omitempty"` TargetCPUPercent *int `json:"TargetCPUPercent,omitempty"` @@ -44,7 +44,7 @@ func ExecutionStrategy() *ExecutionStrategyApplyConfiguration { // WithExecutorType sets the ExecutorType field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the ExecutorType field is set to the value of the last call. -func (b *ExecutionStrategyApplyConfiguration) WithExecutorType(value v1.ExecutorType) *ExecutionStrategyApplyConfiguration { +func (b *ExecutionStrategyApplyConfiguration) WithExecutorType(value corev1.ExecutorType) *ExecutionStrategyApplyConfiguration { b.ExecutorType = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/function.go b/pkg/generated/applyconfiguration/core/v1/function.go index f274e3ff8..ad5017fc2 100644 --- a/pkg/generated/applyconfiguration/core/v1/function.go +++ b/pkg/generated/applyconfiguration/core/v1/function.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // FunctionApplyConfiguration represents a declarative configuration of the Function type for use // with apply. type FunctionApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"` } // Function constructs a declarative configuration of the Function type for use with @@ -47,7 +47,7 @@ func Function(name, namespace string) *FunctionApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfig // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApply // If called multiple times, the Name field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *Function // If called multiple times, the Generation field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithGeneration(value int64) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *FunctionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FunctionApplyConfiguration { +func (b *FunctionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FunctionApplyConfiguration { +func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *F // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *Func // overwriting an existing map entries in Annotations field with the same key. func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *FunctionApplyConfiguration { +func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *FunctionApplyConfiguration) WithFinalizers(values ...string) *FunctionApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *FunctionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *FunctionApplyConfiguration) WithSpec(value *FunctionSpecApplyConfigurat // GetName retrieves the value of the Name field in the declarative configuration. func (b *FunctionApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/functionreference.go b/pkg/generated/applyconfiguration/core/v1/functionreference.go index 7c2ad847c..60e720873 100644 --- a/pkg/generated/applyconfiguration/core/v1/functionreference.go +++ b/pkg/generated/applyconfiguration/core/v1/functionreference.go @@ -19,15 +19,15 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" ) // FunctionReferenceApplyConfiguration represents a declarative configuration of the FunctionReference type for use // with apply. type FunctionReferenceApplyConfiguration struct { - Type *v1.FunctionReferenceType `json:"type,omitempty"` - Name *string `json:"name,omitempty"` - FunctionWeights map[string]int `json:"functionweights,omitempty"` + Type *corev1.FunctionReferenceType `json:"type,omitempty"` + Name *string `json:"name,omitempty"` + FunctionWeights map[string]int `json:"functionweights,omitempty"` } // FunctionReferenceApplyConfiguration constructs a declarative configuration of the FunctionReference type for use with @@ -39,7 +39,7 @@ func FunctionReference() *FunctionReferenceApplyConfiguration { // WithType sets the Type field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Type field is set to the value of the last call. -func (b *FunctionReferenceApplyConfiguration) WithType(value v1.FunctionReferenceType) *FunctionReferenceApplyConfiguration { +func (b *FunctionReferenceApplyConfiguration) WithType(value corev1.FunctionReferenceType) *FunctionReferenceApplyConfiguration { b.Type = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/httptrigger.go b/pkg/generated/applyconfiguration/core/v1/httptrigger.go index 8046bfe47..571304770 100644 --- a/pkg/generated/applyconfiguration/core/v1/httptrigger.go +++ b/pkg/generated/applyconfiguration/core/v1/httptrigger.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // HTTPTriggerApplyConfiguration represents a declarative configuration of the HTTPTrigger type for use // with apply. type HTTPTriggerApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"` } // HTTPTrigger constructs a declarative configuration of the HTTPTrigger type for use with @@ -47,7 +47,7 @@ func HTTPTrigger(name, namespace string) *HTTPTriggerApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApply // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTriggerApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTrigge // If called multiple times, the Name field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApply // If called multiple times, the GenerateName field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTrig // If called multiple times, the Namespace field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTrigger // If called multiple times, the UID field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApp // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPT // If called multiple times, the Generation field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithGeneration(value int64) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *HTTPTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HTTPTriggerApplyConfiguration { +func (b *HTTPTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HTTPTriggerApplyConfiguration { +func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int // overwriting an existing map entries in Labels field with the same key. func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *H // overwriting an existing map entries in Annotations field with the same key. func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]strin // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HTTPTriggerApplyConfiguration { +func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR func (b *HTTPTriggerApplyConfiguration) WithFinalizers(values ...string) *HTTPTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *HTTPTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *HTTPTriggerApplyConfiguration) WithSpec(value *HTTPTriggerSpecApplyConf // GetName retrieves the value of the Name field in the declarative configuration. func (b *HTTPTriggerApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/kuberneteswatchtrigger.go b/pkg/generated/applyconfiguration/core/v1/kuberneteswatchtrigger.go index 7f436ace4..035debe87 100644 --- a/pkg/generated/applyconfiguration/core/v1/kuberneteswatchtrigger.go +++ b/pkg/generated/applyconfiguration/core/v1/kuberneteswatchtrigger.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // KubernetesWatchTriggerApplyConfiguration represents a declarative configuration of the KubernetesWatchTrigger type for use // with apply. type KubernetesWatchTriggerApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"` } // KubernetesWatchTrigger constructs a declarative configuration of the KubernetesWatchTrigger type for use with @@ -47,7 +47,7 @@ func KubernetesWatchTrigger(name, namespace string) *KubernetesWatchTriggerApply // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *KubernetesWatchTriggerApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *Kuber // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string) *KubernetesWatchTriggerApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string) // If called multiple times, the Name field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *Kuber // If called multiple times, the GenerateName field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string // If called multiple times, the Namespace field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) * // If called multiple times, the UID field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *Kub // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value str // If called multiple times, the Generation field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithGeneration(value int64) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *KubernetesWatchTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubernetesWatchTriggerApplyConfiguration { +func (b *KubernetesWatchTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubernetesWatchTriggerApplyConfiguration { +func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value m // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSecond // overwriting an existing map entries in Labels field with the same key. func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string // overwriting an existing map entries in Annotations field with the same key. func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubernetesWatchTriggerApplyConfiguration { +func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values .. func (b *KubernetesWatchTriggerApplyConfiguration) WithFinalizers(values ...string) *KubernetesWatchTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *KubernetesWatchTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithSpec(value *KubernetesWat // GetName retrieves the value of the Name field in the declarative configuration. func (b *KubernetesWatchTriggerApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/messagequeuetrigger.go b/pkg/generated/applyconfiguration/core/v1/messagequeuetrigger.go index 77a033401..a56049378 100644 --- a/pkg/generated/applyconfiguration/core/v1/messagequeuetrigger.go +++ b/pkg/generated/applyconfiguration/core/v1/messagequeuetrigger.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // MessageQueueTriggerApplyConfiguration represents a declarative configuration of the MessageQueueTrigger type for use // with apply. type MessageQueueTriggerApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"` } // MessageQueueTrigger constructs a declarative configuration of the MessageQueueTrigger type for use with @@ -47,7 +47,7 @@ func MessageQueueTrigger(name, namespace string) *MessageQueueTriggerApplyConfig // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQueueTriggerApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQ // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *MessageQueueTriggerApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *Me // If called multiple times, the Name field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQ // If called multiple times, the GenerateName field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) * // If called multiple times, the Namespace field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *Mes // If called multiple times, the UID field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *Messag // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string // If called multiple times, the Generation field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithGeneration(value int64) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *MessageQueueTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MessageQueueTriggerApplyConfiguration { +func (b *MessageQueueTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MessageQueueTriggerApplyConfiguration { +func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value meta // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(v // overwriting an existing map entries in Labels field with the same key. func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]st // overwriting an existing map entries in Annotations field with the same key. func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[stri // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MessageQueueTriggerApplyConfiguration { +func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*v func (b *MessageQueueTriggerApplyConfiguration) WithFinalizers(values ...string) *MessageQueueTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *MessageQueueTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *MessageQueueTriggerApplyConfiguration) WithSpec(value *MessageQueueTrig // GetName retrieves the value of the Name field in the declarative configuration. func (b *MessageQueueTriggerApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/package.go b/pkg/generated/applyconfiguration/core/v1/package.go index c81050013..d25b70f3d 100644 --- a/pkg/generated/applyconfiguration/core/v1/package.go +++ b/pkg/generated/applyconfiguration/core/v1/package.go @@ -19,18 +19,18 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PackageApplyConfiguration represents a declarative configuration of the Package type for use // with apply. type PackageApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"` - Status *PackageStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"` + Status *PackageStatusApplyConfiguration `json:"status,omitempty"` } // Package constructs a declarative configuration of the Package type for use with @@ -48,7 +48,7 @@ func Package(name, namespace string) *PackageApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfigur // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyCo // If called multiple times, the Name field is set to the value of the last call. func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfigur // If called multiple times, the GenerateName field is set to the value of the last call. func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApply // If called multiple times, the Namespace field is set to the value of the last call. func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyCon // If called multiple times, the UID field is set to the value of the last call. func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfig // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageAp // If called multiple times, the Generation field is set to the value of the last call. func (b *PackageApplyConfiguration) WithGeneration(value int64) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *PackageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PackageApplyConfiguration { +func (b *PackageApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *PackageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PackageApplyConfiguration { +func (b *PackageApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *PackageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Pa // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -162,11 +162,11 @@ func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *Packa // overwriting an existing map entries in Annotations field with the same key. func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -174,13 +174,13 @@ func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) * // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PackageApplyConfiguration { +func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -191,14 +191,14 @@ func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer func (b *PackageApplyConfiguration) WithFinalizers(values ...string) *PackageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *PackageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -221,5 +221,5 @@ func (b *PackageApplyConfiguration) WithStatus(value *PackageStatusApplyConfigur // GetName retrieves the value of the Name field in the declarative configuration. func (b *PackageApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/packagestatus.go b/pkg/generated/applyconfiguration/core/v1/packagestatus.go index e1ebb2015..505f6f7cb 100644 --- a/pkg/generated/applyconfiguration/core/v1/packagestatus.go +++ b/pkg/generated/applyconfiguration/core/v1/packagestatus.go @@ -19,16 +19,16 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // PackageStatusApplyConfiguration represents a declarative configuration of the PackageStatus type for use // with apply. type PackageStatusApplyConfiguration struct { - BuildStatus *v1.BuildStatus `json:"buildstatus,omitempty"` - BuildLog *string `json:"buildlog,omitempty"` - LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"` + BuildStatus *corev1.BuildStatus `json:"buildstatus,omitempty"` + BuildLog *string `json:"buildlog,omitempty"` + LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"` } // PackageStatusApplyConfiguration constructs a declarative configuration of the PackageStatus type for use with @@ -40,7 +40,7 @@ func PackageStatus() *PackageStatusApplyConfiguration { // WithBuildStatus sets the BuildStatus field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the BuildStatus field is set to the value of the last call. -func (b *PackageStatusApplyConfiguration) WithBuildStatus(value v1.BuildStatus) *PackageStatusApplyConfiguration { +func (b *PackageStatusApplyConfiguration) WithBuildStatus(value corev1.BuildStatus) *PackageStatusApplyConfiguration { b.BuildStatus = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/runtime.go b/pkg/generated/applyconfiguration/core/v1/runtime.go index 34c638950..09f8ea4a5 100644 --- a/pkg/generated/applyconfiguration/core/v1/runtime.go +++ b/pkg/generated/applyconfiguration/core/v1/runtime.go @@ -19,15 +19,15 @@ limitations under the License. package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" ) // RuntimeApplyConfiguration represents a declarative configuration of the Runtime type for use // with apply. type RuntimeApplyConfiguration struct { - Image *string `json:"image,omitempty"` - Container *v1.Container `json:"container,omitempty"` - PodSpec *v1.PodSpec `json:"podspec,omitempty"` + Image *string `json:"image,omitempty"` + Container *corev1.Container `json:"container,omitempty"` + PodSpec *corev1.PodSpec `json:"podspec,omitempty"` } // RuntimeApplyConfiguration constructs a declarative configuration of the Runtime type for use with @@ -47,7 +47,7 @@ func (b *RuntimeApplyConfiguration) WithImage(value string) *RuntimeApplyConfigu // WithContainer sets the Container field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Container field is set to the value of the last call. -func (b *RuntimeApplyConfiguration) WithContainer(value v1.Container) *RuntimeApplyConfiguration { +func (b *RuntimeApplyConfiguration) WithContainer(value corev1.Container) *RuntimeApplyConfiguration { b.Container = &value return b } @@ -55,7 +55,7 @@ func (b *RuntimeApplyConfiguration) WithContainer(value v1.Container) *RuntimeAp // WithPodSpec sets the PodSpec field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the PodSpec field is set to the value of the last call. -func (b *RuntimeApplyConfiguration) WithPodSpec(value v1.PodSpec) *RuntimeApplyConfiguration { +func (b *RuntimeApplyConfiguration) WithPodSpec(value corev1.PodSpec) *RuntimeApplyConfiguration { b.PodSpec = &value return b } diff --git a/pkg/generated/applyconfiguration/core/v1/timetrigger.go b/pkg/generated/applyconfiguration/core/v1/timetrigger.go index 8c62acbd9..96d028692 100644 --- a/pkg/generated/applyconfiguration/core/v1/timetrigger.go +++ b/pkg/generated/applyconfiguration/core/v1/timetrigger.go @@ -19,17 +19,17 @@ limitations under the License. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TimeTriggerApplyConfiguration represents a declarative configuration of the TimeTrigger type for use // with apply. type TimeTriggerApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"` } // TimeTrigger constructs a declarative configuration of the TimeTrigger type for use with @@ -47,7 +47,7 @@ func TimeTrigger(name, namespace string) *TimeTriggerApplyConfiguration { // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApply // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTriggerApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTrigge // If called multiple times, the Name field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApply // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTrig // If called multiple times, the Namespace field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTrigger // If called multiple times, the UID field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApp // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeT // If called multiple times, the Generation field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithGeneration(value int64) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TimeTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TimeTriggerApplyConfiguration { +func (b *TimeTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TimeTriggerApplyConfiguration { +func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int // overwriting an existing map entries in Labels field with the same key. func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -161,11 +161,11 @@ func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *T // overwriting an existing map entries in Annotations field with the same key. func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -173,13 +173,13 @@ func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]strin // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TimeTriggerApplyConfiguration { +func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -190,14 +190,14 @@ func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR func (b *TimeTriggerApplyConfiguration) WithFinalizers(values ...string) *TimeTriggerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TimeTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -212,5 +212,5 @@ func (b *TimeTriggerApplyConfiguration) WithSpec(value *TimeTriggerSpecApplyConf // GetName retrieves the value of the Name field in the declarative configuration. func (b *TimeTriggerApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/generated/applyconfiguration/core/v1/timetriggerspec.go b/pkg/generated/applyconfiguration/core/v1/timetriggerspec.go index a4d695b5a..b90f0516b 100644 --- a/pkg/generated/applyconfiguration/core/v1/timetriggerspec.go +++ b/pkg/generated/applyconfiguration/core/v1/timetriggerspec.go @@ -50,7 +50,7 @@ func (b *TimeTriggerSpecApplyConfiguration) WithCron(value string) *TimeTriggerS // If called multiple times, the Type field is set to the value of the last call. func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionReferenceType) *TimeTriggerSpecApplyConfiguration { b.ensureFunctionReferenceApplyConfigurationExists() - b.Type = &value + b.FunctionReferenceApplyConfiguration.Type = &value return b } @@ -59,7 +59,7 @@ func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionRefere // If called multiple times, the Name field is set to the value of the last call. func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerSpecApplyConfiguration { b.ensureFunctionReferenceApplyConfigurationExists() - b.Name = &value + b.FunctionReferenceApplyConfiguration.Name = &value return b } @@ -69,11 +69,11 @@ func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerS // overwriting an existing map entries in FunctionWeights field with the same key. func (b *TimeTriggerSpecApplyConfiguration) WithFunctionWeights(entries map[string]int) *TimeTriggerSpecApplyConfiguration { b.ensureFunctionReferenceApplyConfigurationExists() - if b.FunctionWeights == nil && len(entries) > 0 { - b.FunctionWeights = make(map[string]int, len(entries)) + if b.FunctionReferenceApplyConfiguration.FunctionWeights == nil && len(entries) > 0 { + b.FunctionReferenceApplyConfiguration.FunctionWeights = make(map[string]int, len(entries)) } for k, v := range entries { - b.FunctionWeights[k] = v + b.FunctionReferenceApplyConfiguration.FunctionWeights[k] = v } return b } diff --git a/pkg/generated/applyconfiguration/internal/internal.go b/pkg/generated/applyconfiguration/internal/internal.go index 909c9f13b..b08d6de0b 100644 --- a/pkg/generated/applyconfiguration/internal/internal.go +++ b/pkg/generated/applyconfiguration/internal/internal.go @@ -19,8 +19,8 @@ limitations under the License. package internal import ( - "fmt" - "sync" + fmt "fmt" + sync "sync" typed "sigs.k8s.io/structured-merge-diff/v4/typed" ) diff --git a/pkg/generated/clientset/versioned/clientset.go b/pkg/generated/clientset/versioned/clientset.go index 6c2177431..3fa4cbbcf 100644 --- a/pkg/generated/clientset/versioned/clientset.go +++ b/pkg/generated/clientset/versioned/clientset.go @@ -19,8 +19,8 @@ limitations under the License. package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" corev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" discovery "k8s.io/client-go/discovery" diff --git a/pkg/generated/clientset/versioned/typed/core/v1/canaryconfig.go b/pkg/generated/clientset/versioned/typed/core/v1/canaryconfig.go index 5c8c185d4..8cd0cb418 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/canaryconfig.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/canaryconfig.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type CanaryConfigsGetter interface { // CanaryConfigInterface has methods to work with CanaryConfig resources. type CanaryConfigInterface interface { - Create(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.CreateOptions) (*v1.CanaryConfig, error) - Update(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (*v1.CanaryConfig, error) + Create(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.CreateOptions) (*corev1.CanaryConfig, error) + Update(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.UpdateOptions) (*corev1.CanaryConfig, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (*v1.CanaryConfig, error) + UpdateStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.UpdateOptions) (*corev1.CanaryConfig, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CanaryConfig, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.CanaryConfigList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.CanaryConfig, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.CanaryConfigList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CanaryConfig, err error) - Apply(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.CanaryConfig, err error) + Apply(ctx context.Context, _canaryConfig *applyconfigurationcorev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.CanaryConfig, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) + ApplyStatus(ctx context.Context, _canaryConfig *applyconfigurationcorev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.CanaryConfig, err error) CanaryConfigExpansion } // canaryConfigs implements CanaryConfigInterface type canaryConfigs struct { - *gentype.ClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration] } // newCanaryConfigs returns a CanaryConfigs func newCanaryConfigs(c *CoreV1Client, namespace string) *canaryConfigs { return &canaryConfigs{ - gentype.NewClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration]( "canaryconfigs", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.CanaryConfig { return &v1.CanaryConfig{} }, - func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} }), + func() *corev1.CanaryConfig { return &corev1.CanaryConfig{} }, + func() *corev1.CanaryConfigList { return &corev1.CanaryConfigList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/core_client.go b/pkg/generated/clientset/versioned/typed/core/v1/core_client.go index 3d84e6a0b..05b223792 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/core_client.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/core_client.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "net/http" + http "net/http" - v1 "github.com/fission/fission/pkg/apis/core/v1" - "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -120,10 +120,10 @@ func New(c rest.Interface) *CoreV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := corev1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/pkg/generated/clientset/versioned/typed/core/v1/environment.go b/pkg/generated/clientset/versioned/typed/core/v1/environment.go index 3186335ee..a9761b03e 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/environment.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/environment.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type EnvironmentsGetter interface { // EnvironmentInterface has methods to work with Environment resources. type EnvironmentInterface interface { - Create(ctx context.Context, _environment *v1.Environment, opts metav1.CreateOptions) (*v1.Environment, error) - Update(ctx context.Context, _environment *v1.Environment, opts metav1.UpdateOptions) (*v1.Environment, error) + Create(ctx context.Context, _environment *corev1.Environment, opts metav1.CreateOptions) (*corev1.Environment, error) + Update(ctx context.Context, _environment *corev1.Environment, opts metav1.UpdateOptions) (*corev1.Environment, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Environment, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.EnvironmentList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Environment, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.EnvironmentList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Environment, err error) - Apply(ctx context.Context, _environment *corev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Environment, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Environment, err error) + Apply(ctx context.Context, _environment *applyconfigurationcorev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Environment, err error) EnvironmentExpansion } // environments implements EnvironmentInterface type environments struct { - *gentype.ClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration] } // newEnvironments returns a Environments func newEnvironments(c *CoreV1Client, namespace string) *environments { return &environments{ - gentype.NewClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration]( "environments", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.Environment { return &v1.Environment{} }, - func() *v1.EnvironmentList { return &v1.EnvironmentList{} }), + func() *corev1.Environment { return &corev1.Environment{} }, + func() *corev1.EnvironmentList { return &corev1.EnvironmentList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_canaryconfig.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_canaryconfig.go index 3be9075da..868f9ef28 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_canaryconfig.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_canaryconfig.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeCanaryConfigs implements CanaryConfigInterface -type FakeCanaryConfigs struct { +// fakeCanaryConfigs implements CanaryConfigInterface +type fakeCanaryConfigs struct { + *gentype.FakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration] Fake *FakeCoreV1 - ns string } -var canaryconfigsResource = v1.SchemeGroupVersion.WithResource("canaryconfigs") - -var canaryconfigsKind = v1.SchemeGroupVersion.WithKind("CanaryConfig") - -// Get takes name of the _canaryConfig, and returns the corresponding canaryConfig object, and an error if there is any. -func (c *FakeCanaryConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CanaryConfig, err error) { - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(canaryconfigsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeCanaryConfigs(fake *FakeCoreV1, namespace string) typedcorev1.CanaryConfigInterface { + return &fakeCanaryConfigs{ + gentype.NewFakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("canaryconfigs"), + v1.SchemeGroupVersion.WithKind("CanaryConfig"), + func() *v1.CanaryConfig { return &v1.CanaryConfig{} }, + func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} }, + func(dst, src *v1.CanaryConfigList) { dst.ListMeta = src.ListMeta }, + func(list *v1.CanaryConfigList) []*v1.CanaryConfig { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.CanaryConfigList, items []*v1.CanaryConfig) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.CanaryConfig), err -} - -// List takes label and field selectors, and returns the list of CanaryConfigs that match those selectors. -func (c *FakeCanaryConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CanaryConfigList, err error) { - emptyResult := &v1.CanaryConfigList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(canaryconfigsResource, canaryconfigsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.CanaryConfigList{ListMeta: obj.(*v1.CanaryConfigList).ListMeta} - for _, item := range obj.(*v1.CanaryConfigList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested canaryConfigs. -func (c *FakeCanaryConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(canaryconfigsResource, c.ns, opts)) - -} - -// Create takes the representation of a _canaryConfig and creates it. Returns the server's representation of the canaryConfig, and an error, if there is any. -func (c *FakeCanaryConfigs) Create(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.CreateOptions) (result *v1.CanaryConfig, err error) { - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(canaryconfigsResource, c.ns, _canaryConfig, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err -} - -// Update takes the representation of a _canaryConfig and updates it. Returns the server's representation of the canaryConfig, and an error, if there is any. -func (c *FakeCanaryConfigs) Update(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (result *v1.CanaryConfig, err error) { - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(canaryconfigsResource, c.ns, _canaryConfig, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeCanaryConfigs) UpdateStatus(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (result *v1.CanaryConfig, err error) { - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(canaryconfigsResource, "status", c.ns, _canaryConfig, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err -} - -// Delete takes name of the _canaryConfig and deletes it. Returns an error if one occurs. -func (c *FakeCanaryConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(canaryconfigsResource, c.ns, name, opts), &v1.CanaryConfig{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeCanaryConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(canaryconfigsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.CanaryConfigList{}) - return err -} - -// Patch applies the patch and returns the patched canaryConfig. -func (c *FakeCanaryConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CanaryConfig, err error) { - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied canaryConfig. -func (c *FakeCanaryConfigs) Apply(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) { - if _canaryConfig == nil { - return nil, fmt.Errorf("_canaryConfig provided to Apply must not be nil") - } - data, err := json.Marshal(_canaryConfig) - if err != nil { - return nil, err - } - name := _canaryConfig.Name - if name == nil { - return nil, fmt.Errorf("_canaryConfig.Name must be provided to Apply") - } - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeCanaryConfigs) ApplyStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) { - if _canaryConfig == nil { - return nil, fmt.Errorf("_canaryConfig provided to Apply must not be nil") - } - data, err := json.Marshal(_canaryConfig) - if err != nil { - return nil, err - } - name := _canaryConfig.Name - if name == nil { - return nil, fmt.Errorf("_canaryConfig.Name must be provided to Apply") - } - emptyResult := &v1.CanaryConfig{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.CanaryConfig), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_core_client.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_core_client.go index 84433bc6b..d53345241 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_core_client.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_core_client.go @@ -29,35 +29,35 @@ type FakeCoreV1 struct { } func (c *FakeCoreV1) CanaryConfigs(namespace string) v1.CanaryConfigInterface { - return &FakeCanaryConfigs{c, namespace} + return newFakeCanaryConfigs(c, namespace) } func (c *FakeCoreV1) Environments(namespace string) v1.EnvironmentInterface { - return &FakeEnvironments{c, namespace} + return newFakeEnvironments(c, namespace) } func (c *FakeCoreV1) Functions(namespace string) v1.FunctionInterface { - return &FakeFunctions{c, namespace} + return newFakeFunctions(c, namespace) } func (c *FakeCoreV1) HTTPTriggers(namespace string) v1.HTTPTriggerInterface { - return &FakeHTTPTriggers{c, namespace} + return newFakeHTTPTriggers(c, namespace) } func (c *FakeCoreV1) KubernetesWatchTriggers(namespace string) v1.KubernetesWatchTriggerInterface { - return &FakeKubernetesWatchTriggers{c, namespace} + return newFakeKubernetesWatchTriggers(c, namespace) } func (c *FakeCoreV1) MessageQueueTriggers(namespace string) v1.MessageQueueTriggerInterface { - return &FakeMessageQueueTriggers{c, namespace} + return newFakeMessageQueueTriggers(c, namespace) } func (c *FakeCoreV1) Packages(namespace string) v1.PackageInterface { - return &FakePackages{c, namespace} + return newFakePackages(c, namespace) } func (c *FakeCoreV1) TimeTriggers(namespace string) v1.TimeTriggerInterface { - return &FakeTimeTriggers{c, namespace} + return newFakeTimeTriggers(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_environment.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_environment.go index b43243df4..284ae2467 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_environment.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_environment.go @@ -19,142 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeEnvironments implements EnvironmentInterface -type FakeEnvironments struct { +// fakeEnvironments implements EnvironmentInterface +type fakeEnvironments struct { + *gentype.FakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration] Fake *FakeCoreV1 - ns string } -var environmentsResource = v1.SchemeGroupVersion.WithResource("environments") - -var environmentsKind = v1.SchemeGroupVersion.WithKind("Environment") - -// Get takes name of the _environment, and returns the corresponding environment object, and an error if there is any. -func (c *FakeEnvironments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Environment, err error) { - emptyResult := &v1.Environment{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(environmentsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeEnvironments(fake *FakeCoreV1, namespace string) typedcorev1.EnvironmentInterface { + return &fakeEnvironments{ + gentype.NewFakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("environments"), + v1.SchemeGroupVersion.WithKind("Environment"), + func() *v1.Environment { return &v1.Environment{} }, + func() *v1.EnvironmentList { return &v1.EnvironmentList{} }, + func(dst, src *v1.EnvironmentList) { dst.ListMeta = src.ListMeta }, + func(list *v1.EnvironmentList) []*v1.Environment { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.EnvironmentList, items []*v1.Environment) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Environment), err -} - -// List takes label and field selectors, and returns the list of Environments that match those selectors. -func (c *FakeEnvironments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EnvironmentList, err error) { - emptyResult := &v1.EnvironmentList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(environmentsResource, environmentsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.EnvironmentList{ListMeta: obj.(*v1.EnvironmentList).ListMeta} - for _, item := range obj.(*v1.EnvironmentList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested environments. -func (c *FakeEnvironments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(environmentsResource, c.ns, opts)) - -} - -// Create takes the representation of a _environment and creates it. Returns the server's representation of the environment, and an error, if there is any. -func (c *FakeEnvironments) Create(ctx context.Context, _environment *v1.Environment, opts metav1.CreateOptions) (result *v1.Environment, err error) { - emptyResult := &v1.Environment{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(environmentsResource, c.ns, _environment, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Environment), err -} - -// Update takes the representation of a _environment and updates it. Returns the server's representation of the environment, and an error, if there is any. -func (c *FakeEnvironments) Update(ctx context.Context, _environment *v1.Environment, opts metav1.UpdateOptions) (result *v1.Environment, err error) { - emptyResult := &v1.Environment{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(environmentsResource, c.ns, _environment, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Environment), err -} - -// Delete takes name of the _environment and deletes it. Returns an error if one occurs. -func (c *FakeEnvironments) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(environmentsResource, c.ns, name, opts), &v1.Environment{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEnvironments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(environmentsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.EnvironmentList{}) - return err -} - -// Patch applies the patch and returns the patched environment. -func (c *FakeEnvironments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Environment, err error) { - emptyResult := &v1.Environment{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(environmentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Environment), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied environment. -func (c *FakeEnvironments) Apply(ctx context.Context, _environment *corev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Environment, err error) { - if _environment == nil { - return nil, fmt.Errorf("_environment provided to Apply must not be nil") - } - data, err := json.Marshal(_environment) - if err != nil { - return nil, err - } - name := _environment.Name - if name == nil { - return nil, fmt.Errorf("_environment.Name must be provided to Apply") - } - emptyResult := &v1.Environment{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(environmentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Environment), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_function.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_function.go index 36859fc15..3654b46d5 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_function.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_function.go @@ -19,142 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeFunctions implements FunctionInterface -type FakeFunctions struct { +// fakeFunctions implements FunctionInterface +type fakeFunctions struct { + *gentype.FakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration] Fake *FakeCoreV1 - ns string } -var functionsResource = v1.SchemeGroupVersion.WithResource("functions") - -var functionsKind = v1.SchemeGroupVersion.WithKind("Function") - -// Get takes name of the _function, and returns the corresponding function object, and an error if there is any. -func (c *FakeFunctions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Function, err error) { - emptyResult := &v1.Function{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(functionsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeFunctions(fake *FakeCoreV1, namespace string) typedcorev1.FunctionInterface { + return &fakeFunctions{ + gentype.NewFakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("functions"), + v1.SchemeGroupVersion.WithKind("Function"), + func() *v1.Function { return &v1.Function{} }, + func() *v1.FunctionList { return &v1.FunctionList{} }, + func(dst, src *v1.FunctionList) { dst.ListMeta = src.ListMeta }, + func(list *v1.FunctionList) []*v1.Function { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.FunctionList, items []*v1.Function) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Function), err -} - -// List takes label and field selectors, and returns the list of Functions that match those selectors. -func (c *FakeFunctions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FunctionList, err error) { - emptyResult := &v1.FunctionList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(functionsResource, functionsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.FunctionList{ListMeta: obj.(*v1.FunctionList).ListMeta} - for _, item := range obj.(*v1.FunctionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested functions. -func (c *FakeFunctions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(functionsResource, c.ns, opts)) - -} - -// Create takes the representation of a _function and creates it. Returns the server's representation of the function, and an error, if there is any. -func (c *FakeFunctions) Create(ctx context.Context, _function *v1.Function, opts metav1.CreateOptions) (result *v1.Function, err error) { - emptyResult := &v1.Function{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(functionsResource, c.ns, _function, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Function), err -} - -// Update takes the representation of a _function and updates it. Returns the server's representation of the function, and an error, if there is any. -func (c *FakeFunctions) Update(ctx context.Context, _function *v1.Function, opts metav1.UpdateOptions) (result *v1.Function, err error) { - emptyResult := &v1.Function{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(functionsResource, c.ns, _function, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Function), err -} - -// Delete takes name of the _function and deletes it. Returns an error if one occurs. -func (c *FakeFunctions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(functionsResource, c.ns, name, opts), &v1.Function{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeFunctions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(functionsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.FunctionList{}) - return err -} - -// Patch applies the patch and returns the patched function. -func (c *FakeFunctions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Function, err error) { - emptyResult := &v1.Function{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(functionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Function), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied function. -func (c *FakeFunctions) Apply(ctx context.Context, _function *corev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error) { - if _function == nil { - return nil, fmt.Errorf("_function provided to Apply must not be nil") - } - data, err := json.Marshal(_function) - if err != nil { - return nil, err - } - name := _function.Name - if name == nil { - return nil, fmt.Errorf("_function.Name must be provided to Apply") - } - emptyResult := &v1.Function{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(functionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Function), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_httptrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_httptrigger.go index 5e001ffd6..72637ac50 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_httptrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_httptrigger.go @@ -19,142 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeHTTPTriggers implements HTTPTriggerInterface -type FakeHTTPTriggers struct { +// fakeHTTPTriggers implements HTTPTriggerInterface +type fakeHTTPTriggers struct { + *gentype.FakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration] Fake *FakeCoreV1 - ns string } -var httptriggersResource = v1.SchemeGroupVersion.WithResource("httptriggers") - -var httptriggersKind = v1.SchemeGroupVersion.WithKind("HTTPTrigger") - -// Get takes name of the _hTTPTrigger, and returns the corresponding hTTPTrigger object, and an error if there is any. -func (c *FakeHTTPTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HTTPTrigger, err error) { - emptyResult := &v1.HTTPTrigger{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(httptriggersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeHTTPTriggers(fake *FakeCoreV1, namespace string) typedcorev1.HTTPTriggerInterface { + return &fakeHTTPTriggers{ + gentype.NewFakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("httptriggers"), + v1.SchemeGroupVersion.WithKind("HTTPTrigger"), + func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} }, + func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} }, + func(dst, src *v1.HTTPTriggerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.HTTPTriggerList) []*v1.HTTPTrigger { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.HTTPTriggerList, items []*v1.HTTPTrigger) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.HTTPTrigger), err -} - -// List takes label and field selectors, and returns the list of HTTPTriggers that match those selectors. -func (c *FakeHTTPTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HTTPTriggerList, err error) { - emptyResult := &v1.HTTPTriggerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(httptriggersResource, httptriggersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.HTTPTriggerList{ListMeta: obj.(*v1.HTTPTriggerList).ListMeta} - for _, item := range obj.(*v1.HTTPTriggerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested hTTPTriggers. -func (c *FakeHTTPTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(httptriggersResource, c.ns, opts)) - -} - -// Create takes the representation of a _hTTPTrigger and creates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any. -func (c *FakeHTTPTriggers) Create(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.CreateOptions) (result *v1.HTTPTrigger, err error) { - emptyResult := &v1.HTTPTrigger{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(httptriggersResource, c.ns, _hTTPTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HTTPTrigger), err -} - -// Update takes the representation of a _hTTPTrigger and updates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any. -func (c *FakeHTTPTriggers) Update(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.UpdateOptions) (result *v1.HTTPTrigger, err error) { - emptyResult := &v1.HTTPTrigger{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(httptriggersResource, c.ns, _hTTPTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HTTPTrigger), err -} - -// Delete takes name of the _hTTPTrigger and deletes it. Returns an error if one occurs. -func (c *FakeHTTPTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(httptriggersResource, c.ns, name, opts), &v1.HTTPTrigger{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeHTTPTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(httptriggersResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.HTTPTriggerList{}) - return err -} - -// Patch applies the patch and returns the patched hTTPTrigger. -func (c *FakeHTTPTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HTTPTrigger, err error) { - emptyResult := &v1.HTTPTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(httptriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HTTPTrigger), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied hTTPTrigger. -func (c *FakeHTTPTriggers) Apply(ctx context.Context, _hTTPTrigger *corev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HTTPTrigger, err error) { - if _hTTPTrigger == nil { - return nil, fmt.Errorf("_hTTPTrigger provided to Apply must not be nil") - } - data, err := json.Marshal(_hTTPTrigger) - if err != nil { - return nil, err - } - name := _hTTPTrigger.Name - if name == nil { - return nil, fmt.Errorf("_hTTPTrigger.Name must be provided to Apply") - } - emptyResult := &v1.HTTPTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(httptriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HTTPTrigger), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_kuberneteswatchtrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_kuberneteswatchtrigger.go index 753ed4828..c9c1322ea 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_kuberneteswatchtrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_kuberneteswatchtrigger.go @@ -19,142 +19,35 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface -type FakeKubernetesWatchTriggers struct { +// fakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface +type fakeKubernetesWatchTriggers struct { + *gentype.FakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration] Fake *FakeCoreV1 - ns string } -var kuberneteswatchtriggersResource = v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers") - -var kuberneteswatchtriggersKind = v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger") - -// Get takes name of the _kubernetesWatchTrigger, and returns the corresponding kubernetesWatchTrigger object, and an error if there is any. -func (c *FakeKubernetesWatchTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubernetesWatchTrigger, err error) { - emptyResult := &v1.KubernetesWatchTrigger{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeKubernetesWatchTriggers(fake *FakeCoreV1, namespace string) typedcorev1.KubernetesWatchTriggerInterface { + return &fakeKubernetesWatchTriggers{ + gentype.NewFakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers"), + v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger"), + func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} }, + func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} }, + func(dst, src *v1.KubernetesWatchTriggerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.KubernetesWatchTriggerList) []*v1.KubernetesWatchTrigger { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.KubernetesWatchTriggerList, items []*v1.KubernetesWatchTrigger) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.KubernetesWatchTrigger), err -} - -// List takes label and field selectors, and returns the list of KubernetesWatchTriggers that match those selectors. -func (c *FakeKubernetesWatchTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubernetesWatchTriggerList, err error) { - emptyResult := &v1.KubernetesWatchTriggerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(kuberneteswatchtriggersResource, kuberneteswatchtriggersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.KubernetesWatchTriggerList{ListMeta: obj.(*v1.KubernetesWatchTriggerList).ListMeta} - for _, item := range obj.(*v1.KubernetesWatchTriggerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested kubernetesWatchTriggers. -func (c *FakeKubernetesWatchTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(kuberneteswatchtriggersResource, c.ns, opts)) - -} - -// Create takes the representation of a _kubernetesWatchTrigger and creates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any. -func (c *FakeKubernetesWatchTriggers) Create(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.CreateOptions) (result *v1.KubernetesWatchTrigger, err error) { - emptyResult := &v1.KubernetesWatchTrigger{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(kuberneteswatchtriggersResource, c.ns, _kubernetesWatchTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.KubernetesWatchTrigger), err -} - -// Update takes the representation of a _kubernetesWatchTrigger and updates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any. -func (c *FakeKubernetesWatchTriggers) Update(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (result *v1.KubernetesWatchTrigger, err error) { - emptyResult := &v1.KubernetesWatchTrigger{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(kuberneteswatchtriggersResource, c.ns, _kubernetesWatchTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.KubernetesWatchTrigger), err -} - -// Delete takes name of the _kubernetesWatchTrigger and deletes it. Returns an error if one occurs. -func (c *FakeKubernetesWatchTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, opts), &v1.KubernetesWatchTrigger{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeKubernetesWatchTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(kuberneteswatchtriggersResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.KubernetesWatchTriggerList{}) - return err -} - -// Patch applies the patch and returns the patched kubernetesWatchTrigger. -func (c *FakeKubernetesWatchTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubernetesWatchTrigger, err error) { - emptyResult := &v1.KubernetesWatchTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.KubernetesWatchTrigger), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied kubernetesWatchTrigger. -func (c *FakeKubernetesWatchTriggers) Apply(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubernetesWatchTrigger, err error) { - if _kubernetesWatchTrigger == nil { - return nil, fmt.Errorf("_kubernetesWatchTrigger provided to Apply must not be nil") - } - data, err := json.Marshal(_kubernetesWatchTrigger) - if err != nil { - return nil, err - } - name := _kubernetesWatchTrigger.Name - if name == nil { - return nil, fmt.Errorf("_kubernetesWatchTrigger.Name must be provided to Apply") - } - emptyResult := &v1.KubernetesWatchTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(kuberneteswatchtriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.KubernetesWatchTrigger), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_messagequeuetrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_messagequeuetrigger.go index 72faa5aa3..562210545 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_messagequeuetrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_messagequeuetrigger.go @@ -19,142 +19,35 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeMessageQueueTriggers implements MessageQueueTriggerInterface -type FakeMessageQueueTriggers struct { +// fakeMessageQueueTriggers implements MessageQueueTriggerInterface +type fakeMessageQueueTriggers struct { + *gentype.FakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration] Fake *FakeCoreV1 - ns string } -var messagequeuetriggersResource = v1.SchemeGroupVersion.WithResource("messagequeuetriggers") - -var messagequeuetriggersKind = v1.SchemeGroupVersion.WithKind("MessageQueueTrigger") - -// Get takes name of the _messageQueueTrigger, and returns the corresponding messageQueueTrigger object, and an error if there is any. -func (c *FakeMessageQueueTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MessageQueueTrigger, err error) { - emptyResult := &v1.MessageQueueTrigger{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(messagequeuetriggersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeMessageQueueTriggers(fake *FakeCoreV1, namespace string) typedcorev1.MessageQueueTriggerInterface { + return &fakeMessageQueueTriggers{ + gentype.NewFakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("messagequeuetriggers"), + v1.SchemeGroupVersion.WithKind("MessageQueueTrigger"), + func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} }, + func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} }, + func(dst, src *v1.MessageQueueTriggerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.MessageQueueTriggerList) []*v1.MessageQueueTrigger { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.MessageQueueTriggerList, items []*v1.MessageQueueTrigger) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.MessageQueueTrigger), err -} - -// List takes label and field selectors, and returns the list of MessageQueueTriggers that match those selectors. -func (c *FakeMessageQueueTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MessageQueueTriggerList, err error) { - emptyResult := &v1.MessageQueueTriggerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(messagequeuetriggersResource, messagequeuetriggersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.MessageQueueTriggerList{ListMeta: obj.(*v1.MessageQueueTriggerList).ListMeta} - for _, item := range obj.(*v1.MessageQueueTriggerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested messageQueueTriggers. -func (c *FakeMessageQueueTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(messagequeuetriggersResource, c.ns, opts)) - -} - -// Create takes the representation of a _messageQueueTrigger and creates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any. -func (c *FakeMessageQueueTriggers) Create(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.CreateOptions) (result *v1.MessageQueueTrigger, err error) { - emptyResult := &v1.MessageQueueTrigger{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(messagequeuetriggersResource, c.ns, _messageQueueTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.MessageQueueTrigger), err -} - -// Update takes the representation of a _messageQueueTrigger and updates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any. -func (c *FakeMessageQueueTriggers) Update(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.UpdateOptions) (result *v1.MessageQueueTrigger, err error) { - emptyResult := &v1.MessageQueueTrigger{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(messagequeuetriggersResource, c.ns, _messageQueueTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.MessageQueueTrigger), err -} - -// Delete takes name of the _messageQueueTrigger and deletes it. Returns an error if one occurs. -func (c *FakeMessageQueueTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(messagequeuetriggersResource, c.ns, name, opts), &v1.MessageQueueTrigger{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMessageQueueTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(messagequeuetriggersResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.MessageQueueTriggerList{}) - return err -} - -// Patch applies the patch and returns the patched messageQueueTrigger. -func (c *FakeMessageQueueTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MessageQueueTrigger, err error) { - emptyResult := &v1.MessageQueueTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(messagequeuetriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.MessageQueueTrigger), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied messageQueueTrigger. -func (c *FakeMessageQueueTriggers) Apply(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MessageQueueTrigger, err error) { - if _messageQueueTrigger == nil { - return nil, fmt.Errorf("_messageQueueTrigger provided to Apply must not be nil") - } - data, err := json.Marshal(_messageQueueTrigger) - if err != nil { - return nil, err - } - name := _messageQueueTrigger.Name - if name == nil { - return nil, fmt.Errorf("_messageQueueTrigger.Name must be provided to Apply") - } - emptyResult := &v1.MessageQueueTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(messagequeuetriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.MessageQueueTrigger), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_package.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_package.go index 453742556..54959b375 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_package.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_package.go @@ -19,179 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakePackages implements PackageInterface -type FakePackages struct { +// fakePackages implements PackageInterface +type fakePackages struct { + *gentype.FakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration] Fake *FakeCoreV1 - ns string } -var packagesResource = v1.SchemeGroupVersion.WithResource("packages") - -var packagesKind = v1.SchemeGroupVersion.WithKind("Package") - -// Get takes name of the _package, and returns the corresponding package object, and an error if there is any. -func (c *FakePackages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Package, err error) { - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(packagesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakePackages(fake *FakeCoreV1, namespace string) typedcorev1.PackageInterface { + return &fakePackages{ + gentype.NewFakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("packages"), + v1.SchemeGroupVersion.WithKind("Package"), + func() *v1.Package { return &v1.Package{} }, + func() *v1.PackageList { return &v1.PackageList{} }, + func(dst, src *v1.PackageList) { dst.ListMeta = src.ListMeta }, + func(list *v1.PackageList) []*v1.Package { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.PackageList, items []*v1.Package) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Package), err -} - -// List takes label and field selectors, and returns the list of Packages that match those selectors. -func (c *FakePackages) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PackageList, err error) { - emptyResult := &v1.PackageList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(packagesResource, packagesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.PackageList{ListMeta: obj.(*v1.PackageList).ListMeta} - for _, item := range obj.(*v1.PackageList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested packages. -func (c *FakePackages) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(packagesResource, c.ns, opts)) - -} - -// Create takes the representation of a _package and creates it. Returns the server's representation of the package, and an error, if there is any. -func (c *FakePackages) Create(ctx context.Context, _package *v1.Package, opts metav1.CreateOptions) (result *v1.Package, err error) { - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(packagesResource, c.ns, _package, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err -} - -// Update takes the representation of a _package and updates it. Returns the server's representation of the package, and an error, if there is any. -func (c *FakePackages) Update(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (result *v1.Package, err error) { - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(packagesResource, c.ns, _package, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePackages) UpdateStatus(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (result *v1.Package, err error) { - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(packagesResource, "status", c.ns, _package, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err -} - -// Delete takes name of the _package and deletes it. Returns an error if one occurs. -func (c *FakePackages) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(packagesResource, c.ns, name, opts), &v1.Package{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePackages) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(packagesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.PackageList{}) - return err -} - -// Patch applies the patch and returns the patched package. -func (c *FakePackages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Package, err error) { - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied package. -func (c *FakePackages) Apply(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) { - if _package == nil { - return nil, fmt.Errorf("_package provided to Apply must not be nil") - } - data, err := json.Marshal(_package) - if err != nil { - return nil, err - } - name := _package.Name - if name == nil { - return nil, fmt.Errorf("_package.Name must be provided to Apply") - } - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakePackages) ApplyStatus(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) { - if _package == nil { - return nil, fmt.Errorf("_package provided to Apply must not be nil") - } - data, err := json.Marshal(_package) - if err != nil { - return nil, err - } - name := _package.Name - if name == nil { - return nil, fmt.Errorf("_package.Name must be provided to Apply") - } - emptyResult := &v1.Package{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Package), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_timetrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_timetrigger.go index 4a6d7c67f..e535e4265 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_timetrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/fake/fake_timetrigger.go @@ -19,142 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTimeTriggers implements TimeTriggerInterface -type FakeTimeTriggers struct { +// fakeTimeTriggers implements TimeTriggerInterface +type fakeTimeTriggers struct { + *gentype.FakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration] Fake *FakeCoreV1 - ns string } -var timetriggersResource = v1.SchemeGroupVersion.WithResource("timetriggers") - -var timetriggersKind = v1.SchemeGroupVersion.WithKind("TimeTrigger") - -// Get takes name of the _timeTrigger, and returns the corresponding timeTrigger object, and an error if there is any. -func (c *FakeTimeTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TimeTrigger, err error) { - emptyResult := &v1.TimeTrigger{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(timetriggersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTimeTriggers(fake *FakeCoreV1, namespace string) typedcorev1.TimeTriggerInterface { + return &fakeTimeTriggers{ + gentype.NewFakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("timetriggers"), + v1.SchemeGroupVersion.WithKind("TimeTrigger"), + func() *v1.TimeTrigger { return &v1.TimeTrigger{} }, + func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} }, + func(dst, src *v1.TimeTriggerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TimeTriggerList) []*v1.TimeTrigger { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TimeTriggerList, items []*v1.TimeTrigger) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TimeTrigger), err -} - -// List takes label and field selectors, and returns the list of TimeTriggers that match those selectors. -func (c *FakeTimeTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TimeTriggerList, err error) { - emptyResult := &v1.TimeTriggerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(timetriggersResource, timetriggersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TimeTriggerList{ListMeta: obj.(*v1.TimeTriggerList).ListMeta} - for _, item := range obj.(*v1.TimeTriggerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested timeTriggers. -func (c *FakeTimeTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(timetriggersResource, c.ns, opts)) - -} - -// Create takes the representation of a _timeTrigger and creates it. Returns the server's representation of the timeTrigger, and an error, if there is any. -func (c *FakeTimeTriggers) Create(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.CreateOptions) (result *v1.TimeTrigger, err error) { - emptyResult := &v1.TimeTrigger{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(timetriggersResource, c.ns, _timeTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TimeTrigger), err -} - -// Update takes the representation of a _timeTrigger and updates it. Returns the server's representation of the timeTrigger, and an error, if there is any. -func (c *FakeTimeTriggers) Update(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.UpdateOptions) (result *v1.TimeTrigger, err error) { - emptyResult := &v1.TimeTrigger{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(timetriggersResource, c.ns, _timeTrigger, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TimeTrigger), err -} - -// Delete takes name of the _timeTrigger and deletes it. Returns an error if one occurs. -func (c *FakeTimeTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(timetriggersResource, c.ns, name, opts), &v1.TimeTrigger{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTimeTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(timetriggersResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TimeTriggerList{}) - return err -} - -// Patch applies the patch and returns the patched timeTrigger. -func (c *FakeTimeTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TimeTrigger, err error) { - emptyResult := &v1.TimeTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(timetriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TimeTrigger), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied timeTrigger. -func (c *FakeTimeTriggers) Apply(ctx context.Context, _timeTrigger *corev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TimeTrigger, err error) { - if _timeTrigger == nil { - return nil, fmt.Errorf("_timeTrigger provided to Apply must not be nil") - } - data, err := json.Marshal(_timeTrigger) - if err != nil { - return nil, err - } - name := _timeTrigger.Name - if name == nil { - return nil, fmt.Errorf("_timeTrigger.Name must be provided to Apply") - } - emptyResult := &v1.TimeTrigger{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(timetriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TimeTrigger), err } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/function.go b/pkg/generated/clientset/versioned/typed/core/v1/function.go index 1c8f5cc89..527f0f752 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/function.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/function.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type FunctionsGetter interface { // FunctionInterface has methods to work with Function resources. type FunctionInterface interface { - Create(ctx context.Context, _function *v1.Function, opts metav1.CreateOptions) (*v1.Function, error) - Update(ctx context.Context, _function *v1.Function, opts metav1.UpdateOptions) (*v1.Function, error) + Create(ctx context.Context, _function *corev1.Function, opts metav1.CreateOptions) (*corev1.Function, error) + Update(ctx context.Context, _function *corev1.Function, opts metav1.UpdateOptions) (*corev1.Function, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Function, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.FunctionList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Function, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.FunctionList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Function, err error) - Apply(ctx context.Context, _function *corev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Function, err error) + Apply(ctx context.Context, _function *applyconfigurationcorev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Function, err error) FunctionExpansion } // functions implements FunctionInterface type functions struct { - *gentype.ClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration] } // newFunctions returns a Functions func newFunctions(c *CoreV1Client, namespace string) *functions { return &functions{ - gentype.NewClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration]( "functions", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.Function { return &v1.Function{} }, - func() *v1.FunctionList { return &v1.FunctionList{} }), + func() *corev1.Function { return &corev1.Function{} }, + func() *corev1.FunctionList { return &corev1.FunctionList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/httptrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/httptrigger.go index 977ba8208..06c23bbea 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/httptrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/httptrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type HTTPTriggersGetter interface { // HTTPTriggerInterface has methods to work with HTTPTrigger resources. type HTTPTriggerInterface interface { - Create(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.CreateOptions) (*v1.HTTPTrigger, error) - Update(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.UpdateOptions) (*v1.HTTPTrigger, error) + Create(ctx context.Context, _hTTPTrigger *corev1.HTTPTrigger, opts metav1.CreateOptions) (*corev1.HTTPTrigger, error) + Update(ctx context.Context, _hTTPTrigger *corev1.HTTPTrigger, opts metav1.UpdateOptions) (*corev1.HTTPTrigger, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.HTTPTrigger, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.HTTPTriggerList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.HTTPTrigger, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.HTTPTriggerList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HTTPTrigger, err error) - Apply(ctx context.Context, _hTTPTrigger *corev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HTTPTrigger, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.HTTPTrigger, err error) + Apply(ctx context.Context, _hTTPTrigger *applyconfigurationcorev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.HTTPTrigger, err error) HTTPTriggerExpansion } // hTTPTriggers implements HTTPTriggerInterface type hTTPTriggers struct { - *gentype.ClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration] } // newHTTPTriggers returns a HTTPTriggers func newHTTPTriggers(c *CoreV1Client, namespace string) *hTTPTriggers { return &hTTPTriggers{ - gentype.NewClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration]( "httptriggers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} }, - func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} }), + func() *corev1.HTTPTrigger { return &corev1.HTTPTrigger{} }, + func() *corev1.HTTPTriggerList { return &corev1.HTTPTriggerList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/kuberneteswatchtrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/kuberneteswatchtrigger.go index 4798c49b8..375c6fbf4 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/kuberneteswatchtrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/kuberneteswatchtrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type KubernetesWatchTriggersGetter interface { // KubernetesWatchTriggerInterface has methods to work with KubernetesWatchTrigger resources. type KubernetesWatchTriggerInterface interface { - Create(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*v1.KubernetesWatchTrigger, error) - Update(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (*v1.KubernetesWatchTrigger, error) + Create(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*corev1.KubernetesWatchTrigger, error) + Update(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (*corev1.KubernetesWatchTrigger, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubernetesWatchTrigger, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.KubernetesWatchTriggerList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.KubernetesWatchTrigger, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.KubernetesWatchTriggerList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubernetesWatchTrigger, err error) - Apply(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubernetesWatchTrigger, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.KubernetesWatchTrigger, err error) + Apply(ctx context.Context, _kubernetesWatchTrigger *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.KubernetesWatchTrigger, err error) KubernetesWatchTriggerExpansion } // kubernetesWatchTriggers implements KubernetesWatchTriggerInterface type kubernetesWatchTriggers struct { - *gentype.ClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration] } // newKubernetesWatchTriggers returns a KubernetesWatchTriggers func newKubernetesWatchTriggers(c *CoreV1Client, namespace string) *kubernetesWatchTriggers { return &kubernetesWatchTriggers{ - gentype.NewClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration]( "kuberneteswatchtriggers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} }, - func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} }), + func() *corev1.KubernetesWatchTrigger { return &corev1.KubernetesWatchTrigger{} }, + func() *corev1.KubernetesWatchTriggerList { return &corev1.KubernetesWatchTriggerList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/messagequeuetrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/messagequeuetrigger.go index facc7d008..f943a4848 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/messagequeuetrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/messagequeuetrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type MessageQueueTriggersGetter interface { // MessageQueueTriggerInterface has methods to work with MessageQueueTrigger resources. type MessageQueueTriggerInterface interface { - Create(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.CreateOptions) (*v1.MessageQueueTrigger, error) - Update(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.UpdateOptions) (*v1.MessageQueueTrigger, error) + Create(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTrigger, opts metav1.CreateOptions) (*corev1.MessageQueueTrigger, error) + Update(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTrigger, opts metav1.UpdateOptions) (*corev1.MessageQueueTrigger, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MessageQueueTrigger, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.MessageQueueTriggerList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.MessageQueueTrigger, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.MessageQueueTriggerList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MessageQueueTrigger, err error) - Apply(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MessageQueueTrigger, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.MessageQueueTrigger, err error) + Apply(ctx context.Context, _messageQueueTrigger *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.MessageQueueTrigger, err error) MessageQueueTriggerExpansion } // messageQueueTriggers implements MessageQueueTriggerInterface type messageQueueTriggers struct { - *gentype.ClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration] } // newMessageQueueTriggers returns a MessageQueueTriggers func newMessageQueueTriggers(c *CoreV1Client, namespace string) *messageQueueTriggers { return &messageQueueTriggers{ - gentype.NewClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration]( "messagequeuetriggers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} }, - func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} }), + func() *corev1.MessageQueueTrigger { return &corev1.MessageQueueTrigger{} }, + func() *corev1.MessageQueueTriggerList { return &corev1.MessageQueueTriggerList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/package.go b/pkg/generated/clientset/versioned/typed/core/v1/package.go index b5a8e0e46..2a8956a03 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/package.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/package.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type PackagesGetter interface { // PackageInterface has methods to work with Package resources. type PackageInterface interface { - Create(ctx context.Context, _package *v1.Package, opts metav1.CreateOptions) (*v1.Package, error) - Update(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (*v1.Package, error) + Create(ctx context.Context, _package *corev1.Package, opts metav1.CreateOptions) (*corev1.Package, error) + Update(ctx context.Context, _package *corev1.Package, opts metav1.UpdateOptions) (*corev1.Package, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (*v1.Package, error) + UpdateStatus(ctx context.Context, _package *corev1.Package, opts metav1.UpdateOptions) (*corev1.Package, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Package, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.PackageList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Package, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.PackageList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Package, err error) - Apply(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Package, err error) + Apply(ctx context.Context, _package *applyconfigurationcorev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Package, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) + ApplyStatus(ctx context.Context, _package *applyconfigurationcorev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Package, err error) PackageExpansion } // packages implements PackageInterface type packages struct { - *gentype.ClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration] } // newPackages returns a Packages func newPackages(c *CoreV1Client, namespace string) *packages { return &packages{ - gentype.NewClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration]( "packages", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.Package { return &v1.Package{} }, - func() *v1.PackageList { return &v1.PackageList{} }), + func() *corev1.Package { return &corev1.Package{} }, + func() *corev1.PackageList { return &corev1.PackageList{} }, + ), } } diff --git a/pkg/generated/clientset/versioned/typed/core/v1/timetrigger.go b/pkg/generated/clientset/versioned/typed/core/v1/timetrigger.go index be21d9007..ac83a1dec 100644 --- a/pkg/generated/clientset/versioned/typed/core/v1/timetrigger.go +++ b/pkg/generated/clientset/versioned/typed/core/v1/timetrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - "context" + context "context" - v1 "github.com/fission/fission/pkg/apis/core/v1" - corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,32 +38,33 @@ type TimeTriggersGetter interface { // TimeTriggerInterface has methods to work with TimeTrigger resources. type TimeTriggerInterface interface { - Create(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.CreateOptions) (*v1.TimeTrigger, error) - Update(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.UpdateOptions) (*v1.TimeTrigger, error) + Create(ctx context.Context, _timeTrigger *corev1.TimeTrigger, opts metav1.CreateOptions) (*corev1.TimeTrigger, error) + Update(ctx context.Context, _timeTrigger *corev1.TimeTrigger, opts metav1.UpdateOptions) (*corev1.TimeTrigger, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TimeTrigger, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TimeTriggerList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.TimeTrigger, error) + List(ctx context.Context, opts metav1.ListOptions) (*corev1.TimeTriggerList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TimeTrigger, err error) - Apply(ctx context.Context, _timeTrigger *corev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TimeTrigger, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.TimeTrigger, err error) + Apply(ctx context.Context, _timeTrigger *applyconfigurationcorev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.TimeTrigger, err error) TimeTriggerExpansion } // timeTriggers implements TimeTriggerInterface type timeTriggers struct { - *gentype.ClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration] + *gentype.ClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration] } // newTimeTriggers returns a TimeTriggers func newTimeTriggers(c *CoreV1Client, namespace string) *timeTriggers { return &timeTriggers{ - gentype.NewClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]( + gentype.NewClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration]( "timetriggers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TimeTrigger { return &v1.TimeTrigger{} }, - func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} }), + func() *corev1.TimeTrigger { return &corev1.TimeTrigger{} }, + func() *corev1.TimeTriggerList { return &corev1.TimeTriggerList{} }, + ), } } diff --git a/pkg/generated/informers/externalversions/core/v1/canaryconfig.go b/pkg/generated/informers/externalversions/core/v1/canaryconfig.go index 4dc780f3b..b1bd47af1 100644 --- a/pkg/generated/informers/externalversions/core/v1/canaryconfig.go +++ b/pkg/generated/informers/externalversions/core/v1/canaryconfig.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // CanaryConfigs. type CanaryConfigInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.CanaryConfigLister + Lister() corev1.CanaryConfigLister } type canaryConfigInformer struct { @@ -71,7 +71,7 @@ func NewFilteredCanaryConfigInformer(client versioned.Interface, namespace strin return client.CoreV1().CanaryConfigs(namespace).Watch(context.TODO(), options) }, }, - &corev1.CanaryConfig{}, + &apiscorev1.CanaryConfig{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *canaryConfigInformer) defaultInformer(client versioned.Interface, resyn } func (f *canaryConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.CanaryConfig{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.CanaryConfig{}, f.defaultInformer) } -func (f *canaryConfigInformer) Lister() v1.CanaryConfigLister { - return v1.NewCanaryConfigLister(f.Informer().GetIndexer()) +func (f *canaryConfigInformer) Lister() corev1.CanaryConfigLister { + return corev1.NewCanaryConfigLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/environment.go b/pkg/generated/informers/externalversions/core/v1/environment.go index d40c97ff0..7ff66266f 100644 --- a/pkg/generated/informers/externalversions/core/v1/environment.go +++ b/pkg/generated/informers/externalversions/core/v1/environment.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Environments. type EnvironmentInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.EnvironmentLister + Lister() corev1.EnvironmentLister } type environmentInformer struct { @@ -71,7 +71,7 @@ func NewFilteredEnvironmentInformer(client versioned.Interface, namespace string return client.CoreV1().Environments(namespace).Watch(context.TODO(), options) }, }, - &corev1.Environment{}, + &apiscorev1.Environment{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *environmentInformer) defaultInformer(client versioned.Interface, resync } func (f *environmentInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.Environment{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.Environment{}, f.defaultInformer) } -func (f *environmentInformer) Lister() v1.EnvironmentLister { - return v1.NewEnvironmentLister(f.Informer().GetIndexer()) +func (f *environmentInformer) Lister() corev1.EnvironmentLister { + return corev1.NewEnvironmentLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/function.go b/pkg/generated/informers/externalversions/core/v1/function.go index 301b42187..103aa077d 100644 --- a/pkg/generated/informers/externalversions/core/v1/function.go +++ b/pkg/generated/informers/externalversions/core/v1/function.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Functions. type FunctionInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.FunctionLister + Lister() corev1.FunctionLister } type functionInformer struct { @@ -71,7 +71,7 @@ func NewFilteredFunctionInformer(client versioned.Interface, namespace string, r return client.CoreV1().Functions(namespace).Watch(context.TODO(), options) }, }, - &corev1.Function{}, + &apiscorev1.Function{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *functionInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *functionInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.Function{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.Function{}, f.defaultInformer) } -func (f *functionInformer) Lister() v1.FunctionLister { - return v1.NewFunctionLister(f.Informer().GetIndexer()) +func (f *functionInformer) Lister() corev1.FunctionLister { + return corev1.NewFunctionLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/httptrigger.go b/pkg/generated/informers/externalversions/core/v1/httptrigger.go index db35a49d2..9069af0d1 100644 --- a/pkg/generated/informers/externalversions/core/v1/httptrigger.go +++ b/pkg/generated/informers/externalversions/core/v1/httptrigger.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // HTTPTriggers. type HTTPTriggerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.HTTPTriggerLister + Lister() corev1.HTTPTriggerLister } type hTTPTriggerInformer struct { @@ -71,7 +71,7 @@ func NewFilteredHTTPTriggerInformer(client versioned.Interface, namespace string return client.CoreV1().HTTPTriggers(namespace).Watch(context.TODO(), options) }, }, - &corev1.HTTPTrigger{}, + &apiscorev1.HTTPTrigger{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *hTTPTriggerInformer) defaultInformer(client versioned.Interface, resync } func (f *hTTPTriggerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.HTTPTrigger{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.HTTPTrigger{}, f.defaultInformer) } -func (f *hTTPTriggerInformer) Lister() v1.HTTPTriggerLister { - return v1.NewHTTPTriggerLister(f.Informer().GetIndexer()) +func (f *hTTPTriggerInformer) Lister() corev1.HTTPTriggerLister { + return corev1.NewHTTPTriggerLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/kuberneteswatchtrigger.go b/pkg/generated/informers/externalversions/core/v1/kuberneteswatchtrigger.go index 0791c5268..0363cbed1 100644 --- a/pkg/generated/informers/externalversions/core/v1/kuberneteswatchtrigger.go +++ b/pkg/generated/informers/externalversions/core/v1/kuberneteswatchtrigger.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // KubernetesWatchTriggers. type KubernetesWatchTriggerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.KubernetesWatchTriggerLister + Lister() corev1.KubernetesWatchTriggerLister } type kubernetesWatchTriggerInformer struct { @@ -71,7 +71,7 @@ func NewFilteredKubernetesWatchTriggerInformer(client versioned.Interface, names return client.CoreV1().KubernetesWatchTriggers(namespace).Watch(context.TODO(), options) }, }, - &corev1.KubernetesWatchTrigger{}, + &apiscorev1.KubernetesWatchTrigger{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *kubernetesWatchTriggerInformer) defaultInformer(client versioned.Interf } func (f *kubernetesWatchTriggerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.KubernetesWatchTrigger{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.KubernetesWatchTrigger{}, f.defaultInformer) } -func (f *kubernetesWatchTriggerInformer) Lister() v1.KubernetesWatchTriggerLister { - return v1.NewKubernetesWatchTriggerLister(f.Informer().GetIndexer()) +func (f *kubernetesWatchTriggerInformer) Lister() corev1.KubernetesWatchTriggerLister { + return corev1.NewKubernetesWatchTriggerLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/messagequeuetrigger.go b/pkg/generated/informers/externalversions/core/v1/messagequeuetrigger.go index 4afab3feb..37b7afdc2 100644 --- a/pkg/generated/informers/externalversions/core/v1/messagequeuetrigger.go +++ b/pkg/generated/informers/externalversions/core/v1/messagequeuetrigger.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // MessageQueueTriggers. type MessageQueueTriggerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.MessageQueueTriggerLister + Lister() corev1.MessageQueueTriggerLister } type messageQueueTriggerInformer struct { @@ -71,7 +71,7 @@ func NewFilteredMessageQueueTriggerInformer(client versioned.Interface, namespac return client.CoreV1().MessageQueueTriggers(namespace).Watch(context.TODO(), options) }, }, - &corev1.MessageQueueTrigger{}, + &apiscorev1.MessageQueueTrigger{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *messageQueueTriggerInformer) defaultInformer(client versioned.Interface } func (f *messageQueueTriggerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.MessageQueueTrigger{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.MessageQueueTrigger{}, f.defaultInformer) } -func (f *messageQueueTriggerInformer) Lister() v1.MessageQueueTriggerLister { - return v1.NewMessageQueueTriggerLister(f.Informer().GetIndexer()) +func (f *messageQueueTriggerInformer) Lister() corev1.MessageQueueTriggerLister { + return corev1.NewMessageQueueTriggerLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/package.go b/pkg/generated/informers/externalversions/core/v1/package.go index df85acbfa..525d72caa 100644 --- a/pkg/generated/informers/externalversions/core/v1/package.go +++ b/pkg/generated/informers/externalversions/core/v1/package.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Packages. type PackageInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.PackageLister + Lister() corev1.PackageLister } type packageInformer struct { @@ -71,7 +71,7 @@ func NewFilteredPackageInformer(client versioned.Interface, namespace string, re return client.CoreV1().Packages(namespace).Watch(context.TODO(), options) }, }, - &corev1.Package{}, + &apiscorev1.Package{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *packageInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *packageInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.Package{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.Package{}, f.defaultInformer) } -func (f *packageInformer) Lister() v1.PackageLister { - return v1.NewPackageLister(f.Informer().GetIndexer()) +func (f *packageInformer) Lister() corev1.PackageLister { + return corev1.NewPackageLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/core/v1/timetrigger.go b/pkg/generated/informers/externalversions/core/v1/timetrigger.go index cb4da6553..45f1a745c 100644 --- a/pkg/generated/informers/externalversions/core/v1/timetrigger.go +++ b/pkg/generated/informers/externalversions/core/v1/timetrigger.go @@ -19,13 +19,13 @@ limitations under the License. package v1 import ( - "context" + context "context" time "time" - corev1 "github.com/fission/fission/pkg/apis/core/v1" + apiscorev1 "github.com/fission/fission/pkg/apis/core/v1" versioned "github.com/fission/fission/pkg/generated/clientset/versioned" internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" - v1 "github.com/fission/fission/pkg/generated/listers/core/v1" + corev1 "github.com/fission/fission/pkg/generated/listers/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // TimeTriggers. type TimeTriggerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TimeTriggerLister + Lister() corev1.TimeTriggerLister } type timeTriggerInformer struct { @@ -71,7 +71,7 @@ func NewFilteredTimeTriggerInformer(client versioned.Interface, namespace string return client.CoreV1().TimeTriggers(namespace).Watch(context.TODO(), options) }, }, - &corev1.TimeTrigger{}, + &apiscorev1.TimeTrigger{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *timeTriggerInformer) defaultInformer(client versioned.Interface, resync } func (f *timeTriggerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&corev1.TimeTrigger{}, f.defaultInformer) + return f.factory.InformerFor(&apiscorev1.TimeTrigger{}, f.defaultInformer) } -func (f *timeTriggerInformer) Lister() v1.TimeTriggerLister { - return v1.NewTimeTriggerLister(f.Informer().GetIndexer()) +func (f *timeTriggerInformer) Lister() corev1.TimeTriggerLister { + return corev1.NewTimeTriggerLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/generic.go b/pkg/generated/informers/externalversions/generic.go index b587b4dca..b12d4a672 100644 --- a/pkg/generated/informers/externalversions/generic.go +++ b/pkg/generated/informers/externalversions/generic.go @@ -19,7 +19,7 @@ limitations under the License. package externalversions import ( - "fmt" + fmt "fmt" v1 "github.com/fission/fission/pkg/apis/core/v1" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/listers/core/v1/canaryconfig.go b/pkg/generated/listers/core/v1/canaryconfig.go index 08a92dd79..9d1dc462b 100644 --- a/pkg/generated/listers/core/v1/canaryconfig.go +++ b/pkg/generated/listers/core/v1/canaryconfig.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // CanaryConfigLister helps list CanaryConfigs. @@ -30,7 +30,7 @@ import ( type CanaryConfigLister interface { // List lists all CanaryConfigs in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.CanaryConfig, err error) + List(selector labels.Selector) (ret []*corev1.CanaryConfig, err error) // CanaryConfigs returns an object that can list and get CanaryConfigs. CanaryConfigs(namespace string) CanaryConfigNamespaceLister CanaryConfigListerExpansion @@ -38,17 +38,17 @@ type CanaryConfigLister interface { // canaryConfigLister implements the CanaryConfigLister interface. type canaryConfigLister struct { - listers.ResourceIndexer[*v1.CanaryConfig] + listers.ResourceIndexer[*corev1.CanaryConfig] } // NewCanaryConfigLister returns a new CanaryConfigLister. func NewCanaryConfigLister(indexer cache.Indexer) CanaryConfigLister { - return &canaryConfigLister{listers.New[*v1.CanaryConfig](indexer, v1.Resource("canaryconfig"))} + return &canaryConfigLister{listers.New[*corev1.CanaryConfig](indexer, corev1.Resource("canaryconfig"))} } // CanaryConfigs returns an object that can list and get CanaryConfigs. func (s *canaryConfigLister) CanaryConfigs(namespace string) CanaryConfigNamespaceLister { - return canaryConfigNamespaceLister{listers.NewNamespaced[*v1.CanaryConfig](s.ResourceIndexer, namespace)} + return canaryConfigNamespaceLister{listers.NewNamespaced[*corev1.CanaryConfig](s.ResourceIndexer, namespace)} } // CanaryConfigNamespaceLister helps list and get CanaryConfigs. @@ -56,15 +56,15 @@ func (s *canaryConfigLister) CanaryConfigs(namespace string) CanaryConfigNamespa type CanaryConfigNamespaceLister interface { // List lists all CanaryConfigs in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.CanaryConfig, err error) + List(selector labels.Selector) (ret []*corev1.CanaryConfig, err error) // Get retrieves the CanaryConfig from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.CanaryConfig, error) + Get(name string) (*corev1.CanaryConfig, error) CanaryConfigNamespaceListerExpansion } // canaryConfigNamespaceLister implements the CanaryConfigNamespaceLister // interface. type canaryConfigNamespaceLister struct { - listers.ResourceIndexer[*v1.CanaryConfig] + listers.ResourceIndexer[*corev1.CanaryConfig] } diff --git a/pkg/generated/listers/core/v1/environment.go b/pkg/generated/listers/core/v1/environment.go index 42d92329a..31e579eed 100644 --- a/pkg/generated/listers/core/v1/environment.go +++ b/pkg/generated/listers/core/v1/environment.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // EnvironmentLister helps list Environments. @@ -30,7 +30,7 @@ import ( type EnvironmentLister interface { // List lists all Environments in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Environment, err error) + List(selector labels.Selector) (ret []*corev1.Environment, err error) // Environments returns an object that can list and get Environments. Environments(namespace string) EnvironmentNamespaceLister EnvironmentListerExpansion @@ -38,17 +38,17 @@ type EnvironmentLister interface { // environmentLister implements the EnvironmentLister interface. type environmentLister struct { - listers.ResourceIndexer[*v1.Environment] + listers.ResourceIndexer[*corev1.Environment] } // NewEnvironmentLister returns a new EnvironmentLister. func NewEnvironmentLister(indexer cache.Indexer) EnvironmentLister { - return &environmentLister{listers.New[*v1.Environment](indexer, v1.Resource("environment"))} + return &environmentLister{listers.New[*corev1.Environment](indexer, corev1.Resource("environment"))} } // Environments returns an object that can list and get Environments. func (s *environmentLister) Environments(namespace string) EnvironmentNamespaceLister { - return environmentNamespaceLister{listers.NewNamespaced[*v1.Environment](s.ResourceIndexer, namespace)} + return environmentNamespaceLister{listers.NewNamespaced[*corev1.Environment](s.ResourceIndexer, namespace)} } // EnvironmentNamespaceLister helps list and get Environments. @@ -56,15 +56,15 @@ func (s *environmentLister) Environments(namespace string) EnvironmentNamespaceL type EnvironmentNamespaceLister interface { // List lists all Environments in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Environment, err error) + List(selector labels.Selector) (ret []*corev1.Environment, err error) // Get retrieves the Environment from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Environment, error) + Get(name string) (*corev1.Environment, error) EnvironmentNamespaceListerExpansion } // environmentNamespaceLister implements the EnvironmentNamespaceLister // interface. type environmentNamespaceLister struct { - listers.ResourceIndexer[*v1.Environment] + listers.ResourceIndexer[*corev1.Environment] } diff --git a/pkg/generated/listers/core/v1/function.go b/pkg/generated/listers/core/v1/function.go index b92970c62..2afa55372 100644 --- a/pkg/generated/listers/core/v1/function.go +++ b/pkg/generated/listers/core/v1/function.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // FunctionLister helps list Functions. @@ -30,7 +30,7 @@ import ( type FunctionLister interface { // List lists all Functions in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Function, err error) + List(selector labels.Selector) (ret []*corev1.Function, err error) // Functions returns an object that can list and get Functions. Functions(namespace string) FunctionNamespaceLister FunctionListerExpansion @@ -38,17 +38,17 @@ type FunctionLister interface { // functionLister implements the FunctionLister interface. type functionLister struct { - listers.ResourceIndexer[*v1.Function] + listers.ResourceIndexer[*corev1.Function] } // NewFunctionLister returns a new FunctionLister. func NewFunctionLister(indexer cache.Indexer) FunctionLister { - return &functionLister{listers.New[*v1.Function](indexer, v1.Resource("function"))} + return &functionLister{listers.New[*corev1.Function](indexer, corev1.Resource("function"))} } // Functions returns an object that can list and get Functions. func (s *functionLister) Functions(namespace string) FunctionNamespaceLister { - return functionNamespaceLister{listers.NewNamespaced[*v1.Function](s.ResourceIndexer, namespace)} + return functionNamespaceLister{listers.NewNamespaced[*corev1.Function](s.ResourceIndexer, namespace)} } // FunctionNamespaceLister helps list and get Functions. @@ -56,15 +56,15 @@ func (s *functionLister) Functions(namespace string) FunctionNamespaceLister { type FunctionNamespaceLister interface { // List lists all Functions in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Function, err error) + List(selector labels.Selector) (ret []*corev1.Function, err error) // Get retrieves the Function from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Function, error) + Get(name string) (*corev1.Function, error) FunctionNamespaceListerExpansion } // functionNamespaceLister implements the FunctionNamespaceLister // interface. type functionNamespaceLister struct { - listers.ResourceIndexer[*v1.Function] + listers.ResourceIndexer[*corev1.Function] } diff --git a/pkg/generated/listers/core/v1/httptrigger.go b/pkg/generated/listers/core/v1/httptrigger.go index e74961bf3..386ff3ef2 100644 --- a/pkg/generated/listers/core/v1/httptrigger.go +++ b/pkg/generated/listers/core/v1/httptrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // HTTPTriggerLister helps list HTTPTriggers. @@ -30,7 +30,7 @@ import ( type HTTPTriggerLister interface { // List lists all HTTPTriggers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HTTPTrigger, err error) + List(selector labels.Selector) (ret []*corev1.HTTPTrigger, err error) // HTTPTriggers returns an object that can list and get HTTPTriggers. HTTPTriggers(namespace string) HTTPTriggerNamespaceLister HTTPTriggerListerExpansion @@ -38,17 +38,17 @@ type HTTPTriggerLister interface { // hTTPTriggerLister implements the HTTPTriggerLister interface. type hTTPTriggerLister struct { - listers.ResourceIndexer[*v1.HTTPTrigger] + listers.ResourceIndexer[*corev1.HTTPTrigger] } // NewHTTPTriggerLister returns a new HTTPTriggerLister. func NewHTTPTriggerLister(indexer cache.Indexer) HTTPTriggerLister { - return &hTTPTriggerLister{listers.New[*v1.HTTPTrigger](indexer, v1.Resource("httptrigger"))} + return &hTTPTriggerLister{listers.New[*corev1.HTTPTrigger](indexer, corev1.Resource("httptrigger"))} } // HTTPTriggers returns an object that can list and get HTTPTriggers. func (s *hTTPTriggerLister) HTTPTriggers(namespace string) HTTPTriggerNamespaceLister { - return hTTPTriggerNamespaceLister{listers.NewNamespaced[*v1.HTTPTrigger](s.ResourceIndexer, namespace)} + return hTTPTriggerNamespaceLister{listers.NewNamespaced[*corev1.HTTPTrigger](s.ResourceIndexer, namespace)} } // HTTPTriggerNamespaceLister helps list and get HTTPTriggers. @@ -56,15 +56,15 @@ func (s *hTTPTriggerLister) HTTPTriggers(namespace string) HTTPTriggerNamespaceL type HTTPTriggerNamespaceLister interface { // List lists all HTTPTriggers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HTTPTrigger, err error) + List(selector labels.Selector) (ret []*corev1.HTTPTrigger, err error) // Get retrieves the HTTPTrigger from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.HTTPTrigger, error) + Get(name string) (*corev1.HTTPTrigger, error) HTTPTriggerNamespaceListerExpansion } // hTTPTriggerNamespaceLister implements the HTTPTriggerNamespaceLister // interface. type hTTPTriggerNamespaceLister struct { - listers.ResourceIndexer[*v1.HTTPTrigger] + listers.ResourceIndexer[*corev1.HTTPTrigger] } diff --git a/pkg/generated/listers/core/v1/kuberneteswatchtrigger.go b/pkg/generated/listers/core/v1/kuberneteswatchtrigger.go index 5f7f7dc7c..7facc3083 100644 --- a/pkg/generated/listers/core/v1/kuberneteswatchtrigger.go +++ b/pkg/generated/listers/core/v1/kuberneteswatchtrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // KubernetesWatchTriggerLister helps list KubernetesWatchTriggers. @@ -30,7 +30,7 @@ import ( type KubernetesWatchTriggerLister interface { // List lists all KubernetesWatchTriggers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.KubernetesWatchTrigger, err error) + List(selector labels.Selector) (ret []*corev1.KubernetesWatchTrigger, err error) // KubernetesWatchTriggers returns an object that can list and get KubernetesWatchTriggers. KubernetesWatchTriggers(namespace string) KubernetesWatchTriggerNamespaceLister KubernetesWatchTriggerListerExpansion @@ -38,17 +38,17 @@ type KubernetesWatchTriggerLister interface { // kubernetesWatchTriggerLister implements the KubernetesWatchTriggerLister interface. type kubernetesWatchTriggerLister struct { - listers.ResourceIndexer[*v1.KubernetesWatchTrigger] + listers.ResourceIndexer[*corev1.KubernetesWatchTrigger] } // NewKubernetesWatchTriggerLister returns a new KubernetesWatchTriggerLister. func NewKubernetesWatchTriggerLister(indexer cache.Indexer) KubernetesWatchTriggerLister { - return &kubernetesWatchTriggerLister{listers.New[*v1.KubernetesWatchTrigger](indexer, v1.Resource("kuberneteswatchtrigger"))} + return &kubernetesWatchTriggerLister{listers.New[*corev1.KubernetesWatchTrigger](indexer, corev1.Resource("kuberneteswatchtrigger"))} } // KubernetesWatchTriggers returns an object that can list and get KubernetesWatchTriggers. func (s *kubernetesWatchTriggerLister) KubernetesWatchTriggers(namespace string) KubernetesWatchTriggerNamespaceLister { - return kubernetesWatchTriggerNamespaceLister{listers.NewNamespaced[*v1.KubernetesWatchTrigger](s.ResourceIndexer, namespace)} + return kubernetesWatchTriggerNamespaceLister{listers.NewNamespaced[*corev1.KubernetesWatchTrigger](s.ResourceIndexer, namespace)} } // KubernetesWatchTriggerNamespaceLister helps list and get KubernetesWatchTriggers. @@ -56,15 +56,15 @@ func (s *kubernetesWatchTriggerLister) KubernetesWatchTriggers(namespace string) type KubernetesWatchTriggerNamespaceLister interface { // List lists all KubernetesWatchTriggers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.KubernetesWatchTrigger, err error) + List(selector labels.Selector) (ret []*corev1.KubernetesWatchTrigger, err error) // Get retrieves the KubernetesWatchTrigger from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.KubernetesWatchTrigger, error) + Get(name string) (*corev1.KubernetesWatchTrigger, error) KubernetesWatchTriggerNamespaceListerExpansion } // kubernetesWatchTriggerNamespaceLister implements the KubernetesWatchTriggerNamespaceLister // interface. type kubernetesWatchTriggerNamespaceLister struct { - listers.ResourceIndexer[*v1.KubernetesWatchTrigger] + listers.ResourceIndexer[*corev1.KubernetesWatchTrigger] } diff --git a/pkg/generated/listers/core/v1/messagequeuetrigger.go b/pkg/generated/listers/core/v1/messagequeuetrigger.go index 7bd9268df..af5914bd1 100644 --- a/pkg/generated/listers/core/v1/messagequeuetrigger.go +++ b/pkg/generated/listers/core/v1/messagequeuetrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // MessageQueueTriggerLister helps list MessageQueueTriggers. @@ -30,7 +30,7 @@ import ( type MessageQueueTriggerLister interface { // List lists all MessageQueueTriggers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.MessageQueueTrigger, err error) + List(selector labels.Selector) (ret []*corev1.MessageQueueTrigger, err error) // MessageQueueTriggers returns an object that can list and get MessageQueueTriggers. MessageQueueTriggers(namespace string) MessageQueueTriggerNamespaceLister MessageQueueTriggerListerExpansion @@ -38,17 +38,17 @@ type MessageQueueTriggerLister interface { // messageQueueTriggerLister implements the MessageQueueTriggerLister interface. type messageQueueTriggerLister struct { - listers.ResourceIndexer[*v1.MessageQueueTrigger] + listers.ResourceIndexer[*corev1.MessageQueueTrigger] } // NewMessageQueueTriggerLister returns a new MessageQueueTriggerLister. func NewMessageQueueTriggerLister(indexer cache.Indexer) MessageQueueTriggerLister { - return &messageQueueTriggerLister{listers.New[*v1.MessageQueueTrigger](indexer, v1.Resource("messagequeuetrigger"))} + return &messageQueueTriggerLister{listers.New[*corev1.MessageQueueTrigger](indexer, corev1.Resource("messagequeuetrigger"))} } // MessageQueueTriggers returns an object that can list and get MessageQueueTriggers. func (s *messageQueueTriggerLister) MessageQueueTriggers(namespace string) MessageQueueTriggerNamespaceLister { - return messageQueueTriggerNamespaceLister{listers.NewNamespaced[*v1.MessageQueueTrigger](s.ResourceIndexer, namespace)} + return messageQueueTriggerNamespaceLister{listers.NewNamespaced[*corev1.MessageQueueTrigger](s.ResourceIndexer, namespace)} } // MessageQueueTriggerNamespaceLister helps list and get MessageQueueTriggers. @@ -56,15 +56,15 @@ func (s *messageQueueTriggerLister) MessageQueueTriggers(namespace string) Messa type MessageQueueTriggerNamespaceLister interface { // List lists all MessageQueueTriggers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.MessageQueueTrigger, err error) + List(selector labels.Selector) (ret []*corev1.MessageQueueTrigger, err error) // Get retrieves the MessageQueueTrigger from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.MessageQueueTrigger, error) + Get(name string) (*corev1.MessageQueueTrigger, error) MessageQueueTriggerNamespaceListerExpansion } // messageQueueTriggerNamespaceLister implements the MessageQueueTriggerNamespaceLister // interface. type messageQueueTriggerNamespaceLister struct { - listers.ResourceIndexer[*v1.MessageQueueTrigger] + listers.ResourceIndexer[*corev1.MessageQueueTrigger] } diff --git a/pkg/generated/listers/core/v1/package.go b/pkg/generated/listers/core/v1/package.go index be48a65ad..45ae707a6 100644 --- a/pkg/generated/listers/core/v1/package.go +++ b/pkg/generated/listers/core/v1/package.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // PackageLister helps list Packages. @@ -30,7 +30,7 @@ import ( type PackageLister interface { // List lists all Packages in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Package, err error) + List(selector labels.Selector) (ret []*corev1.Package, err error) // Packages returns an object that can list and get Packages. Packages(namespace string) PackageNamespaceLister PackageListerExpansion @@ -38,17 +38,17 @@ type PackageLister interface { // packageLister implements the PackageLister interface. type packageLister struct { - listers.ResourceIndexer[*v1.Package] + listers.ResourceIndexer[*corev1.Package] } // NewPackageLister returns a new PackageLister. func NewPackageLister(indexer cache.Indexer) PackageLister { - return &packageLister{listers.New[*v1.Package](indexer, v1.Resource("package"))} + return &packageLister{listers.New[*corev1.Package](indexer, corev1.Resource("package"))} } // Packages returns an object that can list and get Packages. func (s *packageLister) Packages(namespace string) PackageNamespaceLister { - return packageNamespaceLister{listers.NewNamespaced[*v1.Package](s.ResourceIndexer, namespace)} + return packageNamespaceLister{listers.NewNamespaced[*corev1.Package](s.ResourceIndexer, namespace)} } // PackageNamespaceLister helps list and get Packages. @@ -56,15 +56,15 @@ func (s *packageLister) Packages(namespace string) PackageNamespaceLister { type PackageNamespaceLister interface { // List lists all Packages in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Package, err error) + List(selector labels.Selector) (ret []*corev1.Package, err error) // Get retrieves the Package from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Package, error) + Get(name string) (*corev1.Package, error) PackageNamespaceListerExpansion } // packageNamespaceLister implements the PackageNamespaceLister // interface. type packageNamespaceLister struct { - listers.ResourceIndexer[*v1.Package] + listers.ResourceIndexer[*corev1.Package] } diff --git a/pkg/generated/listers/core/v1/timetrigger.go b/pkg/generated/listers/core/v1/timetrigger.go index ad20ea3b0..a707b7e20 100644 --- a/pkg/generated/listers/core/v1/timetrigger.go +++ b/pkg/generated/listers/core/v1/timetrigger.go @@ -19,10 +19,10 @@ limitations under the License. package v1 import ( - v1 "github.com/fission/fission/pkg/apis/core/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + corev1 "github.com/fission/fission/pkg/apis/core/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TimeTriggerLister helps list TimeTriggers. @@ -30,7 +30,7 @@ import ( type TimeTriggerLister interface { // List lists all TimeTriggers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TimeTrigger, err error) + List(selector labels.Selector) (ret []*corev1.TimeTrigger, err error) // TimeTriggers returns an object that can list and get TimeTriggers. TimeTriggers(namespace string) TimeTriggerNamespaceLister TimeTriggerListerExpansion @@ -38,17 +38,17 @@ type TimeTriggerLister interface { // timeTriggerLister implements the TimeTriggerLister interface. type timeTriggerLister struct { - listers.ResourceIndexer[*v1.TimeTrigger] + listers.ResourceIndexer[*corev1.TimeTrigger] } // NewTimeTriggerLister returns a new TimeTriggerLister. func NewTimeTriggerLister(indexer cache.Indexer) TimeTriggerLister { - return &timeTriggerLister{listers.New[*v1.TimeTrigger](indexer, v1.Resource("timetrigger"))} + return &timeTriggerLister{listers.New[*corev1.TimeTrigger](indexer, corev1.Resource("timetrigger"))} } // TimeTriggers returns an object that can list and get TimeTriggers. func (s *timeTriggerLister) TimeTriggers(namespace string) TimeTriggerNamespaceLister { - return timeTriggerNamespaceLister{listers.NewNamespaced[*v1.TimeTrigger](s.ResourceIndexer, namespace)} + return timeTriggerNamespaceLister{listers.NewNamespaced[*corev1.TimeTrigger](s.ResourceIndexer, namespace)} } // TimeTriggerNamespaceLister helps list and get TimeTriggers. @@ -56,15 +56,15 @@ func (s *timeTriggerLister) TimeTriggers(namespace string) TimeTriggerNamespaceL type TimeTriggerNamespaceLister interface { // List lists all TimeTriggers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TimeTrigger, err error) + List(selector labels.Selector) (ret []*corev1.TimeTrigger, err error) // Get retrieves the TimeTrigger from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TimeTrigger, error) + Get(name string) (*corev1.TimeTrigger, error) TimeTriggerNamespaceListerExpansion } // timeTriggerNamespaceLister implements the TimeTriggerNamespaceLister // interface. type timeTriggerNamespaceLister struct { - listers.ResourceIndexer[*v1.TimeTrigger] + listers.ResourceIndexer[*corev1.TimeTrigger] }