Use controller-gen and code-generator latest version (#3133)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2025-01-06 23:27:26 +05:30
committed by GitHub
parent 96b07bf9a8
commit 54b67b5171
64 changed files with 1782 additions and 2205 deletions
+8 -14
View File
@@ -59,22 +59,19 @@ install-fission-cli:
mv dist/fission-cli_$(GOOS)_$(GOARCH)_v1/fission$(FISSION-CLI-SUFFIX) /usr/local/bin/fission mv dist/fission-cli_$(GOOS)_$(GOARCH)_v1/fission$(FISSION-CLI-SUFFIX) /usr/local/bin/fission
### Codegen ### Codegen
codegen: controller-gen-install codegen:
@./hack/update-codegen.sh @./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 ### CRDs
controller-gen-install: generate-crds:
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.3 go run sigs.k8s.io/controller-tools/cmd/controller-gen crd \
generate-crds: controller-gen-install
$(GOPATH)/bin/controller-gen crd \
paths=./pkg/apis/core/v1 \ paths=./pkg/apis/core/v1 \
output:crd:artifacts:config=crds/v1 output:crd:artifacts:config=crds/v1
### Webhook generation: it generates webhook configs with help of kubebuilder:webhook tag ### Webhook generation: it generates webhook configs with help of kubebuilder:webhook tag
generate-webhooks: controller-gen-install generate-webhooks:
$(GOPATH)/bin/controller-gen webhook \ go run sigs.k8s.io/controller-tools/cmd/controller-gen webhook \
paths=./pkg/apis/core/v1 \ paths=./pkg/apis/core/v1 \
output:dir=charts/fission-all/templates/webhook-server output:dir=charts/fission-all/templates/webhook-server
@@ -99,12 +96,9 @@ generate-swagger-doc:
generate-cli-docs: generate-cli-docs:
go run tools/cmd-docs/main.go -o "../fission.io/content/en/docs/reference/fission-cli" go run tools/cmd-docs/main.go -o "../fission.io/content/en/docs/reference/fission-cli"
install-crd-ref-docs: generate-crd-ref-docs:
go install github.com/elastic/crd-ref-docs@v0.1.0
generate-crd-ref-docs: install-crd-ref-docs
# crd-ref-docs: https://github.com/elastic/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 cp tools/crd-ref-docs/header.md crd_docs.md
cat out.md >> crd_docs.md && rm out.md cat out.md >> crd_docs.md && rm out.md
mv crd_docs.md ../fission.io/content/en/docs/reference/crd-reference.md mv crd_docs.md ../fission.io/content/en/docs/reference/crd-reference.md
+1 -1
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: canaryconfigs.fission.io name: canaryconfigs.fission.io
spec: spec:
group: fission.io group: fission.io
File diff suppressed because it is too large Load Diff
+250 -119
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: functions.fission.io name: functions.fission.io
spec: spec:
group: fission.io group: fission.io
@@ -210,7 +210,6 @@ spec:
each pod of the current scale target (e.g. CPU or memory). Such metrics are 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 built in to Kubernetes, and have special scaling options on top of those
available to normal per-pod metrics using the "pods" source. 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: properties:
container: container:
description: container is the name of the container description: container is the name of the container
@@ -657,8 +656,6 @@ spec:
description: |- description: |-
type is the type of metric source. It should be one of "ContainerResource", "External", 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. "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 type: string
required: required:
- type - type
@@ -1941,7 +1938,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -1956,7 +1954,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -2006,8 +2004,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -2020,8 +2018,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -2053,7 +2051,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2068,7 +2067,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -2118,8 +2117,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -2132,8 +2131,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -2161,7 +2160,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2182,8 +2182,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -2202,7 +2201,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -2269,8 +2269,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2396,8 +2397,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -2416,7 +2416,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -2483,8 +2484,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2854,8 +2856,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -2874,7 +2875,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -2941,8 +2943,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -3155,9 +3157,12 @@ spec:
of a pod. of a pod.
properties: properties:
name: name:
description: Required. description: |-
Name is this DNS resolver option's name.
Required.
type: string type: string
value: value:
description: Value is this DNS resolver option's value.
type: string type: string
type: object type: object
type: array type: array
@@ -3436,7 +3441,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3451,7 +3457,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -3501,8 +3507,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -3515,8 +3521,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -3548,7 +3554,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3563,7 +3570,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -3613,8 +3620,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -3627,8 +3634,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -3652,7 +3659,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3673,8 +3681,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3693,7 +3700,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -3760,8 +3768,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -3854,7 +3862,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3875,8 +3884,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3895,7 +3903,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -3962,8 +3971,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -4292,7 +4301,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4313,8 +4323,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -4333,7 +4342,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -4400,8 +4410,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4950,7 +4961,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -5000,8 +5011,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -5014,8 +5025,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -5047,7 +5058,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -5062,7 +5074,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -5112,8 +5124,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -5126,8 +5138,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -5155,7 +5167,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -5176,8 +5189,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -5196,7 +5208,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -5263,8 +5276,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -5390,8 +5404,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -5410,7 +5423,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -5477,8 +5491,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -5848,8 +5863,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -5868,7 +5882,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -5935,8 +5950,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -6301,6 +6316,74 @@ spec:
x-kubernetes-list-map-keys: x-kubernetes-list-map-keys:
- name - name
x-kubernetes-list-type: map 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: restartPolicy:
description: |- description: |-
Restart policy for all containers within the pod. 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. Note that this field cannot be set when spec.os.name is windows.
format: int64 format: int64
type: integer 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: seLinuxOptions:
description: |- description: |-
The SELinux context to be applied to all containers. The SELinux context to be applied to all containers.
@@ -6830,6 +6939,8 @@ spec:
description: |- description: |-
awsElasticBlockStore represents an AWS Disk resource that is attached to a awsElasticBlockStore represents an AWS Disk resource that is attached to a
kubelet's host machine and then exposed to the pod. 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 More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
properties: properties:
fsType: fsType:
@@ -6861,8 +6972,10 @@ spec:
- volumeID - volumeID
type: object type: object
azureDisk: azureDisk:
description: azureDisk represents an Azure Data Disk mount description: |-
on the host and bind mount to the pod. 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: properties:
cachingMode: cachingMode:
description: 'cachingMode is the Host Caching mode: description: 'cachingMode is the Host Caching mode:
@@ -6901,8 +7014,10 @@ spec:
- diskURI - diskURI
type: object type: object
azureFile: azureFile:
description: azureFile represents an Azure File Service description: |-
mount on the host and bind mount to the pod. 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: properties:
readOnly: readOnly:
description: |- description: |-
@@ -6921,8 +7036,9 @@ spec:
- shareName - shareName
type: object type: object
cephfs: cephfs:
description: cephFS represents a Ceph FS mount on the host description: |-
that shares a pod's lifetime 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: properties:
monitors: monitors:
description: |- description: |-
@@ -6974,6 +7090,8 @@ spec:
cinder: cinder:
description: |- description: |-
cinder represents a cinder volume attached and mounted on kubelets host machine. 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 More info: https://examples.k8s.io/mysql-cinder-pd/README.md
properties: properties:
fsType: fsType:
@@ -7085,7 +7203,7 @@ spec:
csi: csi:
description: csi (Container Storage Interface) represents description: csi (Container Storage Interface) represents
ephemeral storage that is handled by certain external ephemeral storage that is handled by certain external
CSI drivers (Beta feature). CSI drivers.
properties: properties:
driver: driver:
description: |- description: |-
@@ -7552,6 +7670,7 @@ spec:
description: |- description: |-
flexVolume represents a generic volume resource that is flexVolume represents a generic volume resource that is
provisioned/attached using an exec based plugin. provisioned/attached using an exec based plugin.
Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
properties: properties:
driver: driver:
description: driver is the name of the driver to use description: driver is the name of the driver to use
@@ -7597,9 +7716,9 @@ spec:
- driver - driver
type: object type: object
flocker: flocker:
description: flocker represents a Flocker volume attached description: |-
to a kubelet's host machine. This depends on the Flocker flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
control service being running Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
properties: properties:
datasetName: datasetName:
description: |- description: |-
@@ -7615,6 +7734,8 @@ spec:
description: |- description: |-
gcePersistentDisk represents a GCE Disk resource that is attached to a gcePersistentDisk represents a GCE Disk resource that is attached to a
kubelet's host machine and then exposed to the pod. 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 More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
properties: properties:
fsType: fsType:
@@ -7650,7 +7771,7 @@ spec:
gitRepo: gitRepo:
description: |- description: |-
gitRepo represents a git repository at a particular revision. 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 EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
into the Pod's container. into the Pod's container.
properties: properties:
@@ -7674,6 +7795,7 @@ spec:
glusterfs: glusterfs:
description: |- description: |-
glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. 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 More info: https://examples.k8s.io/volumes/glusterfs/README.md
properties: properties:
endpoints: endpoints:
@@ -7883,9 +8005,9 @@ spec:
- claimName - claimName
type: object type: object
photonPersistentDisk: photonPersistentDisk:
description: photonPersistentDisk represents a PhotonController description: |-
persistent disk attached and mounted on kubelets host photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
machine Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
properties: properties:
fsType: fsType:
description: |- description: |-
@@ -7901,8 +8023,11 @@ spec:
- pdID - pdID
type: object type: object
portworxVolume: portworxVolume:
description: portworxVolume represents a portworx volume description: |-
attached and mounted on kubelets host machine 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: properties:
fsType: fsType:
description: |- description: |-
@@ -8269,8 +8394,9 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
quobyte: quobyte:
description: quobyte represents a Quobyte mount on the host description: |-
that shares a pod's lifetime 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: properties:
group: group:
description: |- description: |-
@@ -8309,6 +8435,7 @@ spec:
rbd: rbd:
description: |- description: |-
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. 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 More info: https://examples.k8s.io/volumes/rbd/README.md
properties: properties:
fsType: fsType:
@@ -8381,8 +8508,9 @@ spec:
- monitors - monitors
type: object type: object
scaleIO: scaleIO:
description: scaleIO represents a ScaleIO persistent volume description: |-
attached and mounted on Kubernetes nodes. 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: properties:
fsType: fsType:
default: xfs default: xfs
@@ -8515,8 +8643,9 @@ spec:
type: string type: string
type: object type: object
storageos: storageos:
description: storageOS represents a StorageOS volume attached description: |-
and mounted on Kubernetes nodes. 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: properties:
fsType: fsType:
description: |- description: |-
@@ -8561,8 +8690,10 @@ spec:
type: string type: string
type: object type: object
vsphereVolume: vsphereVolume:
description: vsphereVolume represents a vSphere volume attached description: |-
and mounted on kubelets host machine 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: properties:
fsType: fsType:
description: |- description: |-
+1 -1
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: httptriggers.fission.io name: httptriggers.fission.io
spec: spec:
group: fission.io group: fission.io
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: kuberneteswatchtriggers.fission.io name: kuberneteswatchtriggers.fission.io
spec: spec:
group: fission.io group: fission.io
+250 -116
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: messagequeuetriggers.fission.io name: messagequeuetriggers.fission.io
spec: spec:
group: fission.io group: fission.io
@@ -1303,7 +1303,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -1318,7 +1319,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -1368,8 +1369,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -1382,8 +1383,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -1415,7 +1416,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -1430,7 +1432,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -1480,8 +1482,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -1494,8 +1496,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -1523,7 +1525,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -1544,8 +1547,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -1564,7 +1566,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -1631,8 +1634,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -1758,8 +1762,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -1778,7 +1781,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -1845,8 +1849,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2216,8 +2221,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -2236,7 +2240,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -2303,8 +2308,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -2517,9 +2522,12 @@ spec:
of a pod. of a pod.
properties: properties:
name: name:
description: Required. description: |-
Name is this DNS resolver option's name.
Required.
type: string type: string
value: value:
description: Value is this DNS resolver option's value.
type: string type: string
type: object type: object
type: array type: array
@@ -2798,7 +2806,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2813,7 +2822,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -2863,8 +2872,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -2877,8 +2886,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -2910,7 +2919,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -2925,7 +2935,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -2975,8 +2985,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -2989,8 +2999,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -3014,7 +3024,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3035,8 +3046,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3055,7 +3065,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -3122,8 +3133,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -3216,7 +3227,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3237,8 +3249,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3257,7 +3268,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -3324,8 +3336,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -3654,7 +3666,8 @@ spec:
description: Probes are not allowed for ephemeral containers. description: Probes are not allowed for ephemeral containers.
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -3675,8 +3688,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3695,7 +3707,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -3762,8 +3775,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4312,7 +4326,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -4362,8 +4376,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -4376,8 +4390,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -4409,7 +4423,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute
in the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4424,7 +4439,7 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request description: HTTPGet specifies an HTTP GET request
to perform. to perform.
properties: properties:
host: host:
@@ -4474,8 +4489,8 @@ spec:
- port - port
type: object type: object
sleep: sleep:
description: Sleep represents the duration that description: Sleep represents a duration that the
the container should sleep before being terminated. container should sleep.
properties: properties:
seconds: seconds:
description: Seconds is the number of seconds description: Seconds is the number of seconds
@@ -4488,8 +4503,8 @@ spec:
tcpSocket: tcpSocket:
description: |- description: |-
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
for the backward compatibility. There are no validation of this field and for backward compatibility. There is no validation of this field and
lifecycle hooks will fail in runtime when tcp handler is specified. lifecycle hooks will fail at runtime when it is specified.
properties: properties:
host: host:
description: 'Optional: Host name to connect description: 'Optional: Host name to connect
@@ -4517,7 +4532,8 @@ spec:
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4538,8 +4554,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -4558,7 +4573,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -4625,8 +4641,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -4752,8 +4769,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -4772,7 +4788,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -4839,8 +4856,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, 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 More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
properties: properties:
exec: exec:
description: Exec specifies the action to take. description: Exec specifies a command to execute in
the container.
properties: properties:
command: command:
description: |- description: |-
@@ -5210,8 +5228,7 @@ spec:
format: int32 format: int32
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC description: GRPC specifies a GRPC HealthCheckRequest.
port.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -5230,7 +5247,8 @@ spec:
- port - port
type: object type: object
httpGet: httpGet:
description: HTTPGet specifies the http request to perform. description: HTTPGet specifies an HTTP GET request to
perform.
properties: properties:
host: host:
description: |- description: |-
@@ -5297,8 +5315,8 @@ spec:
format: int32 format: int32
type: integer type: integer
tcpSocket: tcpSocket:
description: TCPSocket specifies an action involving description: TCPSocket specifies a connection to a TCP
a TCP port. port.
properties: properties:
host: host:
description: 'Optional: Host name to connect to, description: 'Optional: Host name to connect to,
@@ -5663,6 +5681,74 @@ spec:
x-kubernetes-list-map-keys: x-kubernetes-list-map-keys:
- name - name
x-kubernetes-list-type: map 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: restartPolicy:
description: |- description: |-
Restart policy for all containers within the pod. 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. Note that this field cannot be set when spec.os.name is windows.
format: int64 format: int64
type: integer 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: seLinuxOptions:
description: |- description: |-
The SELinux context to be applied to all containers. The SELinux context to be applied to all containers.
@@ -6192,6 +6304,8 @@ spec:
description: |- description: |-
awsElasticBlockStore represents an AWS Disk resource that is attached to a awsElasticBlockStore represents an AWS Disk resource that is attached to a
kubelet's host machine and then exposed to the pod. 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 More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
properties: properties:
fsType: fsType:
@@ -6223,8 +6337,10 @@ spec:
- volumeID - volumeID
type: object type: object
azureDisk: azureDisk:
description: azureDisk represents an Azure Data Disk mount description: |-
on the host and bind mount to the pod. 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: properties:
cachingMode: cachingMode:
description: 'cachingMode is the Host Caching mode: description: 'cachingMode is the Host Caching mode:
@@ -6263,8 +6379,10 @@ spec:
- diskURI - diskURI
type: object type: object
azureFile: azureFile:
description: azureFile represents an Azure File Service description: |-
mount on the host and bind mount to the pod. 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: properties:
readOnly: readOnly:
description: |- description: |-
@@ -6283,8 +6401,9 @@ spec:
- shareName - shareName
type: object type: object
cephfs: cephfs:
description: cephFS represents a Ceph FS mount on the host description: |-
that shares a pod's lifetime 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: properties:
monitors: monitors:
description: |- description: |-
@@ -6336,6 +6455,8 @@ spec:
cinder: cinder:
description: |- description: |-
cinder represents a cinder volume attached and mounted on kubelets host machine. 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 More info: https://examples.k8s.io/mysql-cinder-pd/README.md
properties: properties:
fsType: fsType:
@@ -6447,7 +6568,7 @@ spec:
csi: csi:
description: csi (Container Storage Interface) represents description: csi (Container Storage Interface) represents
ephemeral storage that is handled by certain external ephemeral storage that is handled by certain external
CSI drivers (Beta feature). CSI drivers.
properties: properties:
driver: driver:
description: |- description: |-
@@ -6914,6 +7035,7 @@ spec:
description: |- description: |-
flexVolume represents a generic volume resource that is flexVolume represents a generic volume resource that is
provisioned/attached using an exec based plugin. provisioned/attached using an exec based plugin.
Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
properties: properties:
driver: driver:
description: driver is the name of the driver to use description: driver is the name of the driver to use
@@ -6959,9 +7081,9 @@ spec:
- driver - driver
type: object type: object
flocker: flocker:
description: flocker represents a Flocker volume attached description: |-
to a kubelet's host machine. This depends on the Flocker flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
control service being running Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
properties: properties:
datasetName: datasetName:
description: |- description: |-
@@ -6977,6 +7099,8 @@ spec:
description: |- description: |-
gcePersistentDisk represents a GCE Disk resource that is attached to a gcePersistentDisk represents a GCE Disk resource that is attached to a
kubelet's host machine and then exposed to the pod. 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 More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
properties: properties:
fsType: fsType:
@@ -7012,7 +7136,7 @@ spec:
gitRepo: gitRepo:
description: |- description: |-
gitRepo represents a git repository at a particular revision. 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 EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
into the Pod's container. into the Pod's container.
properties: properties:
@@ -7036,6 +7160,7 @@ spec:
glusterfs: glusterfs:
description: |- description: |-
glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. 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 More info: https://examples.k8s.io/volumes/glusterfs/README.md
properties: properties:
endpoints: endpoints:
@@ -7245,9 +7370,9 @@ spec:
- claimName - claimName
type: object type: object
photonPersistentDisk: photonPersistentDisk:
description: photonPersistentDisk represents a PhotonController description: |-
persistent disk attached and mounted on kubelets host photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
machine Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
properties: properties:
fsType: fsType:
description: |- description: |-
@@ -7263,8 +7388,11 @@ spec:
- pdID - pdID
type: object type: object
portworxVolume: portworxVolume:
description: portworxVolume represents a portworx volume description: |-
attached and mounted on kubelets host machine 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: properties:
fsType: fsType:
description: |- description: |-
@@ -7631,8 +7759,9 @@ spec:
x-kubernetes-list-type: atomic x-kubernetes-list-type: atomic
type: object type: object
quobyte: quobyte:
description: quobyte represents a Quobyte mount on the host description: |-
that shares a pod's lifetime 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: properties:
group: group:
description: |- description: |-
@@ -7671,6 +7800,7 @@ spec:
rbd: rbd:
description: |- description: |-
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. 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 More info: https://examples.k8s.io/volumes/rbd/README.md
properties: properties:
fsType: fsType:
@@ -7743,8 +7873,9 @@ spec:
- monitors - monitors
type: object type: object
scaleIO: scaleIO:
description: scaleIO represents a ScaleIO persistent volume description: |-
attached and mounted on Kubernetes nodes. 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: properties:
fsType: fsType:
default: xfs default: xfs
@@ -7877,8 +8008,9 @@ spec:
type: string type: string
type: object type: object
storageos: storageos:
description: storageOS represents a StorageOS volume attached description: |-
and mounted on Kubernetes nodes. 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: properties:
fsType: fsType:
description: |- description: |-
@@ -7923,8 +8055,10 @@ spec:
type: string type: string
type: object type: object
vsphereVolume: vsphereVolume:
description: vsphereVolume represents a vSphere volume attached description: |-
and mounted on kubelets host machine 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: properties:
fsType: fsType:
description: |- description: |-
+1 -1
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: packages.fission.io name: packages.fission.io
spec: spec:
group: fission.io group: fission.io
+1 -1
View File
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.16.3 controller-gen.kubebuilder.io/version: v0.17.0
name: timetriggers.fission.io name: timetriggers.fission.io
spec: spec:
group: fission.io group: fission.io
+1 -1
View File
@@ -7,7 +7,7 @@ GOPATH=$(go env GOPATH)
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
CODEGEN_PKG=${CODEGEN_PKG:-$( CODEGEN_PKG=${CODEGEN_PKG:-$(
cd "${SCRIPT_ROOT}" 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" OUTDIR="${SCRIPT_ROOT}/pkg/generated"
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( 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 // ArchiveApplyConfiguration represents a declarative configuration of the Archive type for use
// with apply. // with apply.
type ArchiveApplyConfiguration struct { type ArchiveApplyConfiguration struct {
Type *v1.ArchiveType `json:"type,omitempty"` Type *corev1.ArchiveType `json:"type,omitempty"`
Literal []byte `json:"literal,omitempty"` Literal []byte `json:"literal,omitempty"`
URL *string `json:"url,omitempty"` URL *string `json:"url,omitempty"`
Checksum *ChecksumApplyConfiguration `json:"checksum,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 // 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. // 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. // 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 b.Type = &value
return b return b
} }
@@ -19,16 +19,16 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
) )
// BuilderApplyConfiguration represents a declarative configuration of the Builder type for use // BuilderApplyConfiguration represents a declarative configuration of the Builder type for use
// with apply. // with apply.
type BuilderApplyConfiguration struct { type BuilderApplyConfiguration struct {
Image *string `json:"image,omitempty"` Image *string `json:"image,omitempty"`
Command *string `json:"command,omitempty"` Command *string `json:"command,omitempty"`
Container *v1.Container `json:"container,omitempty"` Container *corev1.Container `json:"container,omitempty"`
PodSpec *v1.PodSpec `json:"podspec,omitempty"` PodSpec *corev1.PodSpec `json:"podspec,omitempty"`
} }
// BuilderApplyConfiguration constructs a declarative configuration of the Builder type for use with // 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 // 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. // 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. // 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 b.Container = &value
return b 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 // 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. // 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. // 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 b.PodSpec = &value
return b return b
} }
@@ -19,18 +19,18 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // CanaryConfigApplyConfiguration represents a declarative configuration of the CanaryConfig type for use
// with apply. // with apply.
type CanaryConfigApplyConfiguration struct { type CanaryConfigApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"` Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"`
Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"` Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"`
} }
// CanaryConfig constructs a declarative configuration of the CanaryConfig type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryConfigApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithGeneration(value int64) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithGeneration(value int64) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -147,11 +147,11 @@ func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value in
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -191,14 +191,14 @@ func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
func (b *CanaryConfigApplyConfiguration) WithFinalizers(values ...string) *CanaryConfigApplyConfiguration { func (b *CanaryConfigApplyConfiguration) WithFinalizers(values ...string) *CanaryConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *CanaryConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *CanaryConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *CanaryConfigApplyConfiguration) GetName() *string { func (b *CanaryConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,19 +19,19 @@ limitations under the License.
package v1 package v1
import ( 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 // CanaryConfigSpecApplyConfiguration represents a declarative configuration of the CanaryConfigSpec type for use
// with apply. // with apply.
type CanaryConfigSpecApplyConfiguration struct { type CanaryConfigSpecApplyConfiguration struct {
Trigger *string `json:"trigger,omitempty"` Trigger *string `json:"trigger,omitempty"`
NewFunction *string `json:"newfunction,omitempty"` NewFunction *string `json:"newfunction,omitempty"`
OldFunction *string `json:"oldfunction,omitempty"` OldFunction *string `json:"oldfunction,omitempty"`
WeightIncrement *int `json:"weightincrement,omitempty"` WeightIncrement *int `json:"weightincrement,omitempty"`
WeightIncrementDuration *string `json:"duration,omitempty"` WeightIncrementDuration *string `json:"duration,omitempty"`
FailureThreshold *int `json:"failurethreshold,omitempty"` FailureThreshold *int `json:"failurethreshold,omitempty"`
FailureType *v1.FailureType `json:"failureType,omitempty"` FailureType *corev1.FailureType `json:"failureType,omitempty"`
} }
// CanaryConfigSpecApplyConfiguration constructs a declarative configuration of the CanaryConfigSpec type for use with // 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 // 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. // 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. // 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 b.FailureType = &value
return b return b
} }
@@ -19,14 +19,14 @@ limitations under the License.
package v1 package v1
import ( 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 // ChecksumApplyConfiguration represents a declarative configuration of the Checksum type for use
// with apply. // with apply.
type ChecksumApplyConfiguration struct { type ChecksumApplyConfiguration struct {
Type *v1.ChecksumType `json:"type,omitempty"` Type *corev1.ChecksumType `json:"type,omitempty"`
Sum *string `json:"sum,omitempty"` Sum *string `json:"sum,omitempty"`
} }
// ChecksumApplyConfiguration constructs a declarative configuration of the Checksum type for use with // 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 // 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. // 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. // 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 b.Type = &value
return b return b
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // EnvironmentApplyConfiguration represents a declarative configuration of the Environment type for use
// with apply. // with apply.
type EnvironmentApplyConfiguration struct { type EnvironmentApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"` Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"`
} }
// Environment constructs a declarative configuration of the Environment type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *EnvironmentApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithGeneration(value int64) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithGeneration(value int64) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *EnvironmentApplyConfiguration) WithFinalizers(values ...string) *EnvironmentApplyConfiguration { func (b *EnvironmentApplyConfiguration) WithFinalizers(values ...string) *EnvironmentApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *EnvironmentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *EnvironmentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *EnvironmentApplyConfiguration) GetName() *string { func (b *EnvironmentApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,14 +19,14 @@ limitations under the License.
package v1 package v1
import ( 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" v2 "k8s.io/api/autoscaling/v2"
) )
// ExecutionStrategyApplyConfiguration represents a declarative configuration of the ExecutionStrategy type for use // ExecutionStrategyApplyConfiguration represents a declarative configuration of the ExecutionStrategy type for use
// with apply. // with apply.
type ExecutionStrategyApplyConfiguration struct { type ExecutionStrategyApplyConfiguration struct {
ExecutorType *v1.ExecutorType `json:"ExecutorType,omitempty"` ExecutorType *corev1.ExecutorType `json:"ExecutorType,omitempty"`
MinScale *int `json:"MinScale,omitempty"` MinScale *int `json:"MinScale,omitempty"`
MaxScale *int `json:"MaxScale,omitempty"` MaxScale *int `json:"MaxScale,omitempty"`
TargetCPUPercent *int `json:"TargetCPUPercent,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 // 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. // 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. // 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 b.ExecutorType = &value
return b return b
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // FunctionApplyConfiguration represents a declarative configuration of the Function type for use
// with apply. // with apply.
type FunctionApplyConfiguration struct { type FunctionApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"` Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"`
} }
// Function constructs a declarative configuration of the Function type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithGeneration(value int64) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithGeneration(value int64) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe
func (b *FunctionApplyConfiguration) WithFinalizers(values ...string) *FunctionApplyConfiguration { func (b *FunctionApplyConfiguration) WithFinalizers(values ...string) *FunctionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *FunctionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *FunctionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *FunctionApplyConfiguration) GetName() *string { func (b *FunctionApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,15 +19,15 @@ limitations under the License.
package v1 package v1
import ( 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 // FunctionReferenceApplyConfiguration represents a declarative configuration of the FunctionReference type for use
// with apply. // with apply.
type FunctionReferenceApplyConfiguration struct { type FunctionReferenceApplyConfiguration struct {
Type *v1.FunctionReferenceType `json:"type,omitempty"` Type *corev1.FunctionReferenceType `json:"type,omitempty"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
FunctionWeights map[string]int `json:"functionweights,omitempty"` FunctionWeights map[string]int `json:"functionweights,omitempty"`
} }
// FunctionReferenceApplyConfiguration constructs a declarative configuration of the FunctionReference type for use with // 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 // 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. // 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. // 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 b.Type = &value
return b return b
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // HTTPTriggerApplyConfiguration represents a declarative configuration of the HTTPTrigger type for use
// with apply. // with apply.
type HTTPTriggerApplyConfiguration struct { type HTTPTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"` Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"`
} }
// HTTPTrigger constructs a declarative configuration of the HTTPTrigger type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTriggerApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithGeneration(value int64) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithGeneration(value int64) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *HTTPTriggerApplyConfiguration) WithFinalizers(values ...string) *HTTPTriggerApplyConfiguration { func (b *HTTPTriggerApplyConfiguration) WithFinalizers(values ...string) *HTTPTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *HTTPTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *HTTPTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *HTTPTriggerApplyConfiguration) GetName() *string { func (b *HTTPTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // KubernetesWatchTriggerApplyConfiguration represents a declarative configuration of the KubernetesWatchTrigger type for use
// with apply. // with apply.
type KubernetesWatchTriggerApplyConfiguration struct { type KubernetesWatchTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"` Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"`
} }
// KubernetesWatchTrigger constructs a declarative configuration of the KubernetesWatchTrigger type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *KubernetesWatchTriggerApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string) *KubernetesWatchTriggerApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithGeneration(value int64) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithGeneration(value int64) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ..
func (b *KubernetesWatchTriggerApplyConfiguration) WithFinalizers(values ...string) *KubernetesWatchTriggerApplyConfiguration { func (b *KubernetesWatchTriggerApplyConfiguration) WithFinalizers(values ...string) *KubernetesWatchTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *KubernetesWatchTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *KubernetesWatchTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubernetesWatchTriggerApplyConfiguration) GetName() *string { func (b *KubernetesWatchTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // MessageQueueTriggerApplyConfiguration represents a declarative configuration of the MessageQueueTrigger type for use
// with apply. // with apply.
type MessageQueueTriggerApplyConfiguration struct { type MessageQueueTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"` Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"`
} }
// MessageQueueTrigger constructs a declarative configuration of the MessageQueueTrigger type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQueueTriggerApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *MessageQueueTriggerApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithGeneration(value int64) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithGeneration(value int64) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(v
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*v
func (b *MessageQueueTriggerApplyConfiguration) WithFinalizers(values ...string) *MessageQueueTriggerApplyConfiguration { func (b *MessageQueueTriggerApplyConfiguration) WithFinalizers(values ...string) *MessageQueueTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *MessageQueueTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *MessageQueueTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *MessageQueueTriggerApplyConfiguration) GetName() *string { func (b *MessageQueueTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,18 +19,18 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // PackageApplyConfiguration represents a declarative configuration of the Package type for use
// with apply. // with apply.
type PackageApplyConfiguration struct { type PackageApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"` Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"`
Status *PackageStatusApplyConfiguration `json:"status,omitempty"` Status *PackageStatusApplyConfiguration `json:"status,omitempty"`
} }
// Package constructs a declarative configuration of the Package type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithGeneration(value int64) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithGeneration(value int64) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -147,11 +147,11 @@ func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -191,14 +191,14 @@ func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *PackageApplyConfiguration) WithFinalizers(values ...string) *PackageApplyConfiguration { func (b *PackageApplyConfiguration) WithFinalizers(values ...string) *PackageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *PackageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *PackageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *PackageApplyConfiguration) GetName() *string { func (b *PackageApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -19,16 +19,16 @@ limitations under the License.
package v1 package v1
import ( 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// PackageStatusApplyConfiguration represents a declarative configuration of the PackageStatus type for use // PackageStatusApplyConfiguration represents a declarative configuration of the PackageStatus type for use
// with apply. // with apply.
type PackageStatusApplyConfiguration struct { type PackageStatusApplyConfiguration struct {
BuildStatus *v1.BuildStatus `json:"buildstatus,omitempty"` BuildStatus *corev1.BuildStatus `json:"buildstatus,omitempty"`
BuildLog *string `json:"buildlog,omitempty"` BuildLog *string `json:"buildlog,omitempty"`
LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"` LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"`
} }
// PackageStatusApplyConfiguration constructs a declarative configuration of the PackageStatus type for use with // 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 // 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. // 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. // 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 b.BuildStatus = &value
return b return b
} }
@@ -19,15 +19,15 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
) )
// RuntimeApplyConfiguration represents a declarative configuration of the Runtime type for use // RuntimeApplyConfiguration represents a declarative configuration of the Runtime type for use
// with apply. // with apply.
type RuntimeApplyConfiguration struct { type RuntimeApplyConfiguration struct {
Image *string `json:"image,omitempty"` Image *string `json:"image,omitempty"`
Container *v1.Container `json:"container,omitempty"` Container *corev1.Container `json:"container,omitempty"`
PodSpec *v1.PodSpec `json:"podspec,omitempty"` PodSpec *corev1.PodSpec `json:"podspec,omitempty"`
} }
// RuntimeApplyConfiguration constructs a declarative configuration of the Runtime type for use with // 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 // 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. // 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. // 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 b.Container = &value
return b 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 // 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. // 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. // 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 b.PodSpec = &value
return b return b
} }
@@ -19,17 +19,17 @@ limitations under the License.
package v1 package v1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" 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 // TimeTriggerApplyConfiguration represents a declarative configuration of the TimeTrigger type for use
// with apply. // with apply.
type TimeTriggerApplyConfiguration struct { type TimeTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"` metav1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"` Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"`
} }
// TimeTrigger constructs a declarative configuration of the TimeTrigger type for use with // 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. // 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. // If called multiple times, the Kind field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApplyConfiguration {
b.Kind = &value b.TypeMetaApplyConfiguration.Kind = &value
return b 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. // 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. // If called multiple times, the APIVersion field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTriggerApplyConfiguration {
b.APIVersion = &value b.TypeMetaApplyConfiguration.APIVersion = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value b.ObjectMetaApplyConfiguration.Name = &value
return b 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. // If called multiple times, the GenerateName field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value b.ObjectMetaApplyConfiguration.GenerateName = &value
return b 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. // If called multiple times, the Namespace field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value b.ObjectMetaApplyConfiguration.Namespace = &value
return b 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. // If called multiple times, the UID field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value b.ObjectMetaApplyConfiguration.UID = &value
return b 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. // If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b 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. // If called multiple times, the Generation field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithGeneration(value int64) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithGeneration(value int64) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value b.ObjectMetaApplyConfiguration.Generation = &value
return b return b
} }
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b return b
} }
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // 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. // 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. // 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.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b 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. // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b return b
} }
@@ -146,11 +146,11 @@ func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key. // overwriting an existing map entries in Labels field with the same key.
func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Labels[k] = v b.ObjectMetaApplyConfiguration.Labels[k] = v
} }
return b 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. // overwriting an existing map entries in Annotations field with the same key.
func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 { if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries)) b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.Annotations[k] = v b.ObjectMetaApplyConfiguration.Annotations[k] = v
} }
return b 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 // 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. // 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. // 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() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
if values[i] == nil { if values[i] == nil {
panic("nil value passed to WithOwnerReferences") panic("nil value passed to WithOwnerReferences")
} }
b.OwnerReferences = append(b.OwnerReferences, *values[i]) b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
} }
return b return b
} }
@@ -190,14 +190,14 @@ func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *TimeTriggerApplyConfiguration) WithFinalizers(values ...string) *TimeTriggerApplyConfiguration { func (b *TimeTriggerApplyConfiguration) WithFinalizers(values ...string) *TimeTriggerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
for i := range values { for i := range values {
b.Finalizers = append(b.Finalizers, values[i]) b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
} }
return b return b
} }
func (b *TimeTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { func (b *TimeTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil { 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. // GetName retrieves the value of the Name field in the declarative configuration.
func (b *TimeTriggerApplyConfiguration) GetName() *string { func (b *TimeTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists() b.ensureObjectMetaApplyConfigurationExists()
return b.Name return b.ObjectMetaApplyConfiguration.Name
} }
@@ -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. // If called multiple times, the Type field is set to the value of the last call.
func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionReferenceType) *TimeTriggerSpecApplyConfiguration { func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionReferenceType) *TimeTriggerSpecApplyConfiguration {
b.ensureFunctionReferenceApplyConfigurationExists() b.ensureFunctionReferenceApplyConfigurationExists()
b.Type = &value b.FunctionReferenceApplyConfiguration.Type = &value
return b 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. // If called multiple times, the Name field is set to the value of the last call.
func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerSpecApplyConfiguration { func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerSpecApplyConfiguration {
b.ensureFunctionReferenceApplyConfigurationExists() b.ensureFunctionReferenceApplyConfigurationExists()
b.Name = &value b.FunctionReferenceApplyConfiguration.Name = &value
return b 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. // overwriting an existing map entries in FunctionWeights field with the same key.
func (b *TimeTriggerSpecApplyConfiguration) WithFunctionWeights(entries map[string]int) *TimeTriggerSpecApplyConfiguration { func (b *TimeTriggerSpecApplyConfiguration) WithFunctionWeights(entries map[string]int) *TimeTriggerSpecApplyConfiguration {
b.ensureFunctionReferenceApplyConfigurationExists() b.ensureFunctionReferenceApplyConfigurationExists()
if b.FunctionWeights == nil && len(entries) > 0 { if b.FunctionReferenceApplyConfiguration.FunctionWeights == nil && len(entries) > 0 {
b.FunctionWeights = make(map[string]int, len(entries)) b.FunctionReferenceApplyConfiguration.FunctionWeights = make(map[string]int, len(entries))
} }
for k, v := range entries { for k, v := range entries {
b.FunctionWeights[k] = v b.FunctionReferenceApplyConfiguration.FunctionWeights[k] = v
} }
return b return b
} }
@@ -19,8 +19,8 @@ limitations under the License.
package internal package internal
import ( import (
"fmt" fmt "fmt"
"sync" sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed" typed "sigs.k8s.io/structured-merge-diff/v4/typed"
) )
@@ -19,8 +19,8 @@ limitations under the License.
package versioned package versioned
import ( import (
"fmt" fmt "fmt"
"net/http" http "net/http"
corev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1" corev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
discovery "k8s.io/client-go/discovery" discovery "k8s.io/client-go/discovery"
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,36 +38,37 @@ type CanaryConfigsGetter interface {
// CanaryConfigInterface has methods to work with CanaryConfig resources. // CanaryConfigInterface has methods to work with CanaryConfig resources.
type CanaryConfigInterface interface { type CanaryConfigInterface interface {
Create(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.CreateOptions) (*v1.CanaryConfig, error) Create(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.CreateOptions) (*corev1.CanaryConfig, error)
Update(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (*v1.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(). // 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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CanaryConfig, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.CanaryConfig, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CanaryConfigList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.CanaryConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.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(). // 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 CanaryConfigExpansion
} }
// canaryConfigs implements CanaryConfigInterface // canaryConfigs implements CanaryConfigInterface
type canaryConfigs struct { type canaryConfigs struct {
*gentype.ClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration]
} }
// newCanaryConfigs returns a CanaryConfigs // newCanaryConfigs returns a CanaryConfigs
func newCanaryConfigs(c *CoreV1Client, namespace string) *canaryConfigs { func newCanaryConfigs(c *CoreV1Client, namespace string) *canaryConfigs {
return &canaryConfigs{ return &canaryConfigs{
gentype.NewClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration](
"canaryconfigs", "canaryconfigs",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.CanaryConfig { return &v1.CanaryConfig{} }, func() *corev1.CanaryConfig { return &corev1.CanaryConfig{} },
func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} }), func() *corev1.CanaryConfigList { return &corev1.CanaryConfigList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"net/http" http "net/http"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
) )
@@ -120,10 +120,10 @@ func New(c rest.Interface) *CoreV1Client {
} }
func setConfigDefaults(config *rest.Config) error { func setConfigDefaults(config *rest.Config) error {
gv := v1.SchemeGroupVersion gv := corev1.SchemeGroupVersion
config.GroupVersion = &gv config.GroupVersion = &gv
config.APIPath = "/apis" config.APIPath = "/apis"
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" { if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent() config.UserAgent = rest.DefaultKubernetesUserAgent()
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type EnvironmentsGetter interface {
// EnvironmentInterface has methods to work with Environment resources. // EnvironmentInterface has methods to work with Environment resources.
type EnvironmentInterface interface { type EnvironmentInterface interface {
Create(ctx context.Context, _environment *v1.Environment, opts metav1.CreateOptions) (*v1.Environment, error) Create(ctx context.Context, _environment *corev1.Environment, opts metav1.CreateOptions) (*corev1.Environment, error)
Update(ctx context.Context, _environment *v1.Environment, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Environment, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Environment, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.EnvironmentList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.EnvironmentList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Environment, err error) Apply(ctx context.Context, _environment *applyconfigurationcorev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Environment, err error)
EnvironmentExpansion EnvironmentExpansion
} }
// environments implements EnvironmentInterface // environments implements EnvironmentInterface
type environments struct { type environments struct {
*gentype.ClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration]
} }
// newEnvironments returns a Environments // newEnvironments returns a Environments
func newEnvironments(c *CoreV1Client, namespace string) *environments { func newEnvironments(c *CoreV1Client, namespace string) *environments {
return &environments{ return &environments{
gentype.NewClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration](
"environments", "environments",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.Environment { return &v1.Environment{} }, func() *corev1.Environment { return &corev1.Environment{} },
func() *v1.EnvironmentList { return &v1.EnvironmentList{} }), func() *corev1.EnvironmentList { return &corev1.EnvironmentList{} },
),
} }
} }
@@ -19,179 +19,33 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeCanaryConfigs implements CanaryConfigInterface // fakeCanaryConfigs implements CanaryConfigInterface
type FakeCanaryConfigs struct { type fakeCanaryConfigs struct {
*gentype.FakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var canaryconfigsResource = v1.SchemeGroupVersion.WithResource("canaryconfigs") func newFakeCanaryConfigs(fake *FakeCoreV1, namespace string) typedcorev1.CanaryConfigInterface {
return &fakeCanaryConfigs{
var canaryconfigsKind = v1.SchemeGroupVersion.WithKind("CanaryConfig") gentype.NewFakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration](
fake.Fake,
// Get takes name of the _canaryConfig, and returns the corresponding canaryConfig object, and an error if there is any. namespace,
func (c *FakeCanaryConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CanaryConfig, err error) { v1.SchemeGroupVersion.WithResource("canaryconfigs"),
emptyResult := &v1.CanaryConfig{} v1.SchemeGroupVersion.WithKind("CanaryConfig"),
obj, err := c.Fake. func() *v1.CanaryConfig { return &v1.CanaryConfig{} },
Invokes(testing.NewGetActionWithOptions(canaryconfigsResource, c.ns, name, options), emptyResult) func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} },
func(dst, src *v1.CanaryConfigList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.CanaryConfigList) []*v1.CanaryConfig { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -29,35 +29,35 @@ type FakeCoreV1 struct {
} }
func (c *FakeCoreV1) CanaryConfigs(namespace string) v1.CanaryConfigInterface { func (c *FakeCoreV1) CanaryConfigs(namespace string) v1.CanaryConfigInterface {
return &FakeCanaryConfigs{c, namespace} return newFakeCanaryConfigs(c, namespace)
} }
func (c *FakeCoreV1) Environments(namespace string) v1.EnvironmentInterface { func (c *FakeCoreV1) Environments(namespace string) v1.EnvironmentInterface {
return &FakeEnvironments{c, namespace} return newFakeEnvironments(c, namespace)
} }
func (c *FakeCoreV1) Functions(namespace string) v1.FunctionInterface { func (c *FakeCoreV1) Functions(namespace string) v1.FunctionInterface {
return &FakeFunctions{c, namespace} return newFakeFunctions(c, namespace)
} }
func (c *FakeCoreV1) HTTPTriggers(namespace string) v1.HTTPTriggerInterface { func (c *FakeCoreV1) HTTPTriggers(namespace string) v1.HTTPTriggerInterface {
return &FakeHTTPTriggers{c, namespace} return newFakeHTTPTriggers(c, namespace)
} }
func (c *FakeCoreV1) KubernetesWatchTriggers(namespace string) v1.KubernetesWatchTriggerInterface { func (c *FakeCoreV1) KubernetesWatchTriggers(namespace string) v1.KubernetesWatchTriggerInterface {
return &FakeKubernetesWatchTriggers{c, namespace} return newFakeKubernetesWatchTriggers(c, namespace)
} }
func (c *FakeCoreV1) MessageQueueTriggers(namespace string) v1.MessageQueueTriggerInterface { func (c *FakeCoreV1) MessageQueueTriggers(namespace string) v1.MessageQueueTriggerInterface {
return &FakeMessageQueueTriggers{c, namespace} return newFakeMessageQueueTriggers(c, namespace)
} }
func (c *FakeCoreV1) Packages(namespace string) v1.PackageInterface { func (c *FakeCoreV1) Packages(namespace string) v1.PackageInterface {
return &FakePackages{c, namespace} return newFakePackages(c, namespace)
} }
func (c *FakeCoreV1) TimeTriggers(namespace string) v1.TimeTriggerInterface { 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 // RESTClient returns a RESTClient that is used to communicate
@@ -19,142 +19,31 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeEnvironments implements EnvironmentInterface // fakeEnvironments implements EnvironmentInterface
type FakeEnvironments struct { type fakeEnvironments struct {
*gentype.FakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var environmentsResource = v1.SchemeGroupVersion.WithResource("environments") func newFakeEnvironments(fake *FakeCoreV1, namespace string) typedcorev1.EnvironmentInterface {
return &fakeEnvironments{
var environmentsKind = v1.SchemeGroupVersion.WithKind("Environment") gentype.NewFakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration](
fake.Fake,
// Get takes name of the _environment, and returns the corresponding environment object, and an error if there is any. namespace,
func (c *FakeEnvironments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Environment, err error) { v1.SchemeGroupVersion.WithResource("environments"),
emptyResult := &v1.Environment{} v1.SchemeGroupVersion.WithKind("Environment"),
obj, err := c.Fake. func() *v1.Environment { return &v1.Environment{} },
Invokes(testing.NewGetActionWithOptions(environmentsResource, c.ns, name, options), emptyResult) func() *v1.EnvironmentList { return &v1.EnvironmentList{} },
func(dst, src *v1.EnvironmentList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.EnvironmentList) []*v1.Environment { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -19,142 +19,31 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeFunctions implements FunctionInterface // fakeFunctions implements FunctionInterface
type FakeFunctions struct { type fakeFunctions struct {
*gentype.FakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var functionsResource = v1.SchemeGroupVersion.WithResource("functions") func newFakeFunctions(fake *FakeCoreV1, namespace string) typedcorev1.FunctionInterface {
return &fakeFunctions{
var functionsKind = v1.SchemeGroupVersion.WithKind("Function") gentype.NewFakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration](
fake.Fake,
// Get takes name of the _function, and returns the corresponding function object, and an error if there is any. namespace,
func (c *FakeFunctions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Function, err error) { v1.SchemeGroupVersion.WithResource("functions"),
emptyResult := &v1.Function{} v1.SchemeGroupVersion.WithKind("Function"),
obj, err := c.Fake. func() *v1.Function { return &v1.Function{} },
Invokes(testing.NewGetActionWithOptions(functionsResource, c.ns, name, options), emptyResult) func() *v1.FunctionList { return &v1.FunctionList{} },
func(dst, src *v1.FunctionList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.FunctionList) []*v1.Function { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -19,142 +19,31 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeHTTPTriggers implements HTTPTriggerInterface // fakeHTTPTriggers implements HTTPTriggerInterface
type FakeHTTPTriggers struct { type fakeHTTPTriggers struct {
*gentype.FakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var httptriggersResource = v1.SchemeGroupVersion.WithResource("httptriggers") func newFakeHTTPTriggers(fake *FakeCoreV1, namespace string) typedcorev1.HTTPTriggerInterface {
return &fakeHTTPTriggers{
var httptriggersKind = v1.SchemeGroupVersion.WithKind("HTTPTrigger") gentype.NewFakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration](
fake.Fake,
// Get takes name of the _hTTPTrigger, and returns the corresponding hTTPTrigger object, and an error if there is any. namespace,
func (c *FakeHTTPTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HTTPTrigger, err error) { v1.SchemeGroupVersion.WithResource("httptriggers"),
emptyResult := &v1.HTTPTrigger{} v1.SchemeGroupVersion.WithKind("HTTPTrigger"),
obj, err := c.Fake. func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} },
Invokes(testing.NewGetActionWithOptions(httptriggersResource, c.ns, name, options), emptyResult) func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} },
func(dst, src *v1.HTTPTriggerList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.HTTPTriggerList) []*v1.HTTPTrigger { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -19,142 +19,35 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface // fakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface
type FakeKubernetesWatchTriggers struct { type fakeKubernetesWatchTriggers struct {
*gentype.FakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var kuberneteswatchtriggersResource = v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers") func newFakeKubernetesWatchTriggers(fake *FakeCoreV1, namespace string) typedcorev1.KubernetesWatchTriggerInterface {
return &fakeKubernetesWatchTriggers{
var kuberneteswatchtriggersKind = v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger") gentype.NewFakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration](
fake.Fake,
// Get takes name of the _kubernetesWatchTrigger, and returns the corresponding kubernetesWatchTrigger object, and an error if there is any. namespace,
func (c *FakeKubernetesWatchTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubernetesWatchTrigger, err error) { v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers"),
emptyResult := &v1.KubernetesWatchTrigger{} v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger"),
obj, err := c.Fake. func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} },
Invokes(testing.NewGetActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, options), emptyResult) func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} },
func(dst, src *v1.KubernetesWatchTriggerList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.KubernetesWatchTriggerList) []*v1.KubernetesWatchTrigger {
return emptyResult, err 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
} }
@@ -19,142 +19,35 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeMessageQueueTriggers implements MessageQueueTriggerInterface // fakeMessageQueueTriggers implements MessageQueueTriggerInterface
type FakeMessageQueueTriggers struct { type fakeMessageQueueTriggers struct {
*gentype.FakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var messagequeuetriggersResource = v1.SchemeGroupVersion.WithResource("messagequeuetriggers") func newFakeMessageQueueTriggers(fake *FakeCoreV1, namespace string) typedcorev1.MessageQueueTriggerInterface {
return &fakeMessageQueueTriggers{
var messagequeuetriggersKind = v1.SchemeGroupVersion.WithKind("MessageQueueTrigger") gentype.NewFakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration](
fake.Fake,
// Get takes name of the _messageQueueTrigger, and returns the corresponding messageQueueTrigger object, and an error if there is any. namespace,
func (c *FakeMessageQueueTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MessageQueueTrigger, err error) { v1.SchemeGroupVersion.WithResource("messagequeuetriggers"),
emptyResult := &v1.MessageQueueTrigger{} v1.SchemeGroupVersion.WithKind("MessageQueueTrigger"),
obj, err := c.Fake. func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} },
Invokes(testing.NewGetActionWithOptions(messagequeuetriggersResource, c.ns, name, options), emptyResult) func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} },
func(dst, src *v1.MessageQueueTriggerList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.MessageQueueTriggerList) []*v1.MessageQueueTrigger {
return emptyResult, err 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
} }
@@ -19,179 +19,31 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakePackages implements PackageInterface // fakePackages implements PackageInterface
type FakePackages struct { type fakePackages struct {
*gentype.FakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var packagesResource = v1.SchemeGroupVersion.WithResource("packages") func newFakePackages(fake *FakeCoreV1, namespace string) typedcorev1.PackageInterface {
return &fakePackages{
var packagesKind = v1.SchemeGroupVersion.WithKind("Package") gentype.NewFakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration](
fake.Fake,
// Get takes name of the _package, and returns the corresponding package object, and an error if there is any. namespace,
func (c *FakePackages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Package, err error) { v1.SchemeGroupVersion.WithResource("packages"),
emptyResult := &v1.Package{} v1.SchemeGroupVersion.WithKind("Package"),
obj, err := c.Fake. func() *v1.Package { return &v1.Package{} },
Invokes(testing.NewGetActionWithOptions(packagesResource, c.ns, name, options), emptyResult) func() *v1.PackageList { return &v1.PackageList{} },
func(dst, src *v1.PackageList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.PackageList) []*v1.Package { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -19,142 +19,31 @@ limitations under the License.
package fake package fake
import ( import (
"context"
json "encoding/json"
"fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" 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/generated/applyconfiguration/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
labels "k8s.io/apimachinery/pkg/labels" gentype "k8s.io/client-go/gentype"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
) )
// FakeTimeTriggers implements TimeTriggerInterface // fakeTimeTriggers implements TimeTriggerInterface
type FakeTimeTriggers struct { type fakeTimeTriggers struct {
*gentype.FakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]
Fake *FakeCoreV1 Fake *FakeCoreV1
ns string
} }
var timetriggersResource = v1.SchemeGroupVersion.WithResource("timetriggers") func newFakeTimeTriggers(fake *FakeCoreV1, namespace string) typedcorev1.TimeTriggerInterface {
return &fakeTimeTriggers{
var timetriggersKind = v1.SchemeGroupVersion.WithKind("TimeTrigger") gentype.NewFakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration](
fake.Fake,
// Get takes name of the _timeTrigger, and returns the corresponding timeTrigger object, and an error if there is any. namespace,
func (c *FakeTimeTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TimeTrigger, err error) { v1.SchemeGroupVersion.WithResource("timetriggers"),
emptyResult := &v1.TimeTrigger{} v1.SchemeGroupVersion.WithKind("TimeTrigger"),
obj, err := c.Fake. func() *v1.TimeTrigger { return &v1.TimeTrigger{} },
Invokes(testing.NewGetActionWithOptions(timetriggersResource, c.ns, name, options), emptyResult) func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} },
func(dst, src *v1.TimeTriggerList) { dst.ListMeta = src.ListMeta },
if obj == nil { func(list *v1.TimeTriggerList) []*v1.TimeTrigger { return gentype.ToPointerSlice(list.Items) },
return emptyResult, err 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
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type FunctionsGetter interface {
// FunctionInterface has methods to work with Function resources. // FunctionInterface has methods to work with Function resources.
type FunctionInterface interface { type FunctionInterface interface {
Create(ctx context.Context, _function *v1.Function, opts metav1.CreateOptions) (*v1.Function, error) Create(ctx context.Context, _function *corev1.Function, opts metav1.CreateOptions) (*corev1.Function, error)
Update(ctx context.Context, _function *v1.Function, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Function, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Function, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.FunctionList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.FunctionList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error) Apply(ctx context.Context, _function *applyconfigurationcorev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Function, err error)
FunctionExpansion FunctionExpansion
} }
// functions implements FunctionInterface // functions implements FunctionInterface
type functions struct { type functions struct {
*gentype.ClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration]
} }
// newFunctions returns a Functions // newFunctions returns a Functions
func newFunctions(c *CoreV1Client, namespace string) *functions { func newFunctions(c *CoreV1Client, namespace string) *functions {
return &functions{ return &functions{
gentype.NewClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration](
"functions", "functions",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.Function { return &v1.Function{} }, func() *corev1.Function { return &corev1.Function{} },
func() *v1.FunctionList { return &v1.FunctionList{} }), func() *corev1.FunctionList { return &corev1.FunctionList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type HTTPTriggersGetter interface {
// HTTPTriggerInterface has methods to work with HTTPTrigger resources. // HTTPTriggerInterface has methods to work with HTTPTrigger resources.
type HTTPTriggerInterface interface { type HTTPTriggerInterface interface {
Create(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.CreateOptions) (*v1.HTTPTrigger, error) Create(ctx context.Context, _hTTPTrigger *corev1.HTTPTrigger, opts metav1.CreateOptions) (*corev1.HTTPTrigger, error)
Update(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.HTTPTrigger, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.HTTPTrigger, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.HTTPTriggerList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.HTTPTriggerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HTTPTrigger, err error) Apply(ctx context.Context, _hTTPTrigger *applyconfigurationcorev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.HTTPTrigger, err error)
HTTPTriggerExpansion HTTPTriggerExpansion
} }
// hTTPTriggers implements HTTPTriggerInterface // hTTPTriggers implements HTTPTriggerInterface
type hTTPTriggers struct { type hTTPTriggers struct {
*gentype.ClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration]
} }
// newHTTPTriggers returns a HTTPTriggers // newHTTPTriggers returns a HTTPTriggers
func newHTTPTriggers(c *CoreV1Client, namespace string) *hTTPTriggers { func newHTTPTriggers(c *CoreV1Client, namespace string) *hTTPTriggers {
return &hTTPTriggers{ return &hTTPTriggers{
gentype.NewClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration](
"httptriggers", "httptriggers",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} }, func() *corev1.HTTPTrigger { return &corev1.HTTPTrigger{} },
func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} }), func() *corev1.HTTPTriggerList { return &corev1.HTTPTriggerList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type KubernetesWatchTriggersGetter interface {
// KubernetesWatchTriggerInterface has methods to work with KubernetesWatchTrigger resources. // KubernetesWatchTriggerInterface has methods to work with KubernetesWatchTrigger resources.
type KubernetesWatchTriggerInterface interface { type KubernetesWatchTriggerInterface interface {
Create(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*v1.KubernetesWatchTrigger, error) Create(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*corev1.KubernetesWatchTrigger, error)
Update(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubernetesWatchTrigger, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.KubernetesWatchTrigger, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.KubernetesWatchTriggerList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.KubernetesWatchTriggerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubernetesWatchTrigger, err error) Apply(ctx context.Context, _kubernetesWatchTrigger *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.KubernetesWatchTrigger, err error)
KubernetesWatchTriggerExpansion KubernetesWatchTriggerExpansion
} }
// kubernetesWatchTriggers implements KubernetesWatchTriggerInterface // kubernetesWatchTriggers implements KubernetesWatchTriggerInterface
type kubernetesWatchTriggers struct { type kubernetesWatchTriggers struct {
*gentype.ClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration]
} }
// newKubernetesWatchTriggers returns a KubernetesWatchTriggers // newKubernetesWatchTriggers returns a KubernetesWatchTriggers
func newKubernetesWatchTriggers(c *CoreV1Client, namespace string) *kubernetesWatchTriggers { func newKubernetesWatchTriggers(c *CoreV1Client, namespace string) *kubernetesWatchTriggers {
return &kubernetesWatchTriggers{ return &kubernetesWatchTriggers{
gentype.NewClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration](
"kuberneteswatchtriggers", "kuberneteswatchtriggers",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} }, func() *corev1.KubernetesWatchTrigger { return &corev1.KubernetesWatchTrigger{} },
func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} }), func() *corev1.KubernetesWatchTriggerList { return &corev1.KubernetesWatchTriggerList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type MessageQueueTriggersGetter interface {
// MessageQueueTriggerInterface has methods to work with MessageQueueTrigger resources. // MessageQueueTriggerInterface has methods to work with MessageQueueTrigger resources.
type MessageQueueTriggerInterface interface { type MessageQueueTriggerInterface interface {
Create(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.CreateOptions) (*v1.MessageQueueTrigger, error) Create(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTrigger, opts metav1.CreateOptions) (*corev1.MessageQueueTrigger, error)
Update(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MessageQueueTrigger, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.MessageQueueTrigger, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.MessageQueueTriggerList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.MessageQueueTriggerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MessageQueueTrigger, err error) Apply(ctx context.Context, _messageQueueTrigger *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.MessageQueueTrigger, err error)
MessageQueueTriggerExpansion MessageQueueTriggerExpansion
} }
// messageQueueTriggers implements MessageQueueTriggerInterface // messageQueueTriggers implements MessageQueueTriggerInterface
type messageQueueTriggers struct { type messageQueueTriggers struct {
*gentype.ClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration]
} }
// newMessageQueueTriggers returns a MessageQueueTriggers // newMessageQueueTriggers returns a MessageQueueTriggers
func newMessageQueueTriggers(c *CoreV1Client, namespace string) *messageQueueTriggers { func newMessageQueueTriggers(c *CoreV1Client, namespace string) *messageQueueTriggers {
return &messageQueueTriggers{ return &messageQueueTriggers{
gentype.NewClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration](
"messagequeuetriggers", "messagequeuetriggers",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} }, func() *corev1.MessageQueueTrigger { return &corev1.MessageQueueTrigger{} },
func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} }), func() *corev1.MessageQueueTriggerList { return &corev1.MessageQueueTriggerList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,36 +38,37 @@ type PackagesGetter interface {
// PackageInterface has methods to work with Package resources. // PackageInterface has methods to work with Package resources.
type PackageInterface interface { type PackageInterface interface {
Create(ctx context.Context, _package *v1.Package, opts metav1.CreateOptions) (*v1.Package, error) Create(ctx context.Context, _package *corev1.Package, opts metav1.CreateOptions) (*corev1.Package, error)
Update(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (*v1.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(). // 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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Package, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Package, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.PackageList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.PackageList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.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(). // 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 PackageExpansion
} }
// packages implements PackageInterface // packages implements PackageInterface
type packages struct { type packages struct {
*gentype.ClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration]
} }
// newPackages returns a Packages // newPackages returns a Packages
func newPackages(c *CoreV1Client, namespace string) *packages { func newPackages(c *CoreV1Client, namespace string) *packages {
return &packages{ return &packages{
gentype.NewClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration](
"packages", "packages",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.Package { return &v1.Package{} }, func() *corev1.Package { return &corev1.Package{} },
func() *v1.PackageList { return &v1.PackageList{} }), func() *corev1.PackageList { return &corev1.PackageList{} },
),
} }
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1" applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme" scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
@@ -38,32 +38,33 @@ type TimeTriggersGetter interface {
// TimeTriggerInterface has methods to work with TimeTrigger resources. // TimeTriggerInterface has methods to work with TimeTrigger resources.
type TimeTriggerInterface interface { type TimeTriggerInterface interface {
Create(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.CreateOptions) (*v1.TimeTrigger, error) Create(ctx context.Context, _timeTrigger *corev1.TimeTrigger, opts metav1.CreateOptions) (*corev1.TimeTrigger, error)
Update(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.UpdateOptions) (*v1.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 Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TimeTrigger, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.TimeTrigger, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.TimeTriggerList, error) List(ctx context.Context, opts metav1.ListOptions) (*corev1.TimeTriggerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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) 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 *corev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TimeTrigger, err error) Apply(ctx context.Context, _timeTrigger *applyconfigurationcorev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.TimeTrigger, err error)
TimeTriggerExpansion TimeTriggerExpansion
} }
// timeTriggers implements TimeTriggerInterface // timeTriggers implements TimeTriggerInterface
type timeTriggers struct { type timeTriggers struct {
*gentype.ClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration] *gentype.ClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration]
} }
// newTimeTriggers returns a TimeTriggers // newTimeTriggers returns a TimeTriggers
func newTimeTriggers(c *CoreV1Client, namespace string) *timeTriggers { func newTimeTriggers(c *CoreV1Client, namespace string) *timeTriggers {
return &timeTriggers{ return &timeTriggers{
gentype.NewClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]( gentype.NewClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration](
"timetriggers", "timetriggers",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1.TimeTrigger { return &v1.TimeTrigger{} }, func() *corev1.TimeTrigger { return &corev1.TimeTrigger{} },
func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} }), func() *corev1.TimeTriggerList { return &corev1.TimeTriggerList{} },
),
} }
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CanaryConfigs. // CanaryConfigs.
type CanaryConfigInformer interface { type CanaryConfigInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.CanaryConfigLister Lister() corev1.CanaryConfigLister
} }
type canaryConfigInformer struct { type canaryConfigInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredCanaryConfigInformer(client versioned.Interface, namespace strin
return client.CoreV1().CanaryConfigs(namespace).Watch(context.TODO(), options) return client.CoreV1().CanaryConfigs(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.CanaryConfig{}, &apiscorev1.CanaryConfig{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *canaryConfigInformer) defaultInformer(client versioned.Interface, resyn
} }
func (f *canaryConfigInformer) Informer() cache.SharedIndexInformer { 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 { func (f *canaryConfigInformer) Lister() corev1.CanaryConfigLister {
return v1.NewCanaryConfigLister(f.Informer().GetIndexer()) return corev1.NewCanaryConfigLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// Environments. // Environments.
type EnvironmentInformer interface { type EnvironmentInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.EnvironmentLister Lister() corev1.EnvironmentLister
} }
type environmentInformer struct { type environmentInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredEnvironmentInformer(client versioned.Interface, namespace string
return client.CoreV1().Environments(namespace).Watch(context.TODO(), options) return client.CoreV1().Environments(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.Environment{}, &apiscorev1.Environment{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *environmentInformer) defaultInformer(client versioned.Interface, resync
} }
func (f *environmentInformer) Informer() cache.SharedIndexInformer { 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 { func (f *environmentInformer) Lister() corev1.EnvironmentLister {
return v1.NewEnvironmentLister(f.Informer().GetIndexer()) return corev1.NewEnvironmentLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// Functions. // Functions.
type FunctionInformer interface { type FunctionInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.FunctionLister Lister() corev1.FunctionLister
} }
type functionInformer struct { type functionInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredFunctionInformer(client versioned.Interface, namespace string, r
return client.CoreV1().Functions(namespace).Watch(context.TODO(), options) return client.CoreV1().Functions(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.Function{}, &apiscorev1.Function{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *functionInformer) defaultInformer(client versioned.Interface, resyncPer
} }
func (f *functionInformer) Informer() cache.SharedIndexInformer { 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 { func (f *functionInformer) Lister() corev1.FunctionLister {
return v1.NewFunctionLister(f.Informer().GetIndexer()) return corev1.NewFunctionLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// HTTPTriggers. // HTTPTriggers.
type HTTPTriggerInformer interface { type HTTPTriggerInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.HTTPTriggerLister Lister() corev1.HTTPTriggerLister
} }
type hTTPTriggerInformer struct { type hTTPTriggerInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredHTTPTriggerInformer(client versioned.Interface, namespace string
return client.CoreV1().HTTPTriggers(namespace).Watch(context.TODO(), options) return client.CoreV1().HTTPTriggers(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.HTTPTrigger{}, &apiscorev1.HTTPTrigger{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *hTTPTriggerInformer) defaultInformer(client versioned.Interface, resync
} }
func (f *hTTPTriggerInformer) Informer() cache.SharedIndexInformer { 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 { func (f *hTTPTriggerInformer) Lister() corev1.HTTPTriggerLister {
return v1.NewHTTPTriggerLister(f.Informer().GetIndexer()) return corev1.NewHTTPTriggerLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// KubernetesWatchTriggers. // KubernetesWatchTriggers.
type KubernetesWatchTriggerInformer interface { type KubernetesWatchTriggerInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.KubernetesWatchTriggerLister Lister() corev1.KubernetesWatchTriggerLister
} }
type kubernetesWatchTriggerInformer struct { type kubernetesWatchTriggerInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredKubernetesWatchTriggerInformer(client versioned.Interface, names
return client.CoreV1().KubernetesWatchTriggers(namespace).Watch(context.TODO(), options) return client.CoreV1().KubernetesWatchTriggers(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.KubernetesWatchTrigger{}, &apiscorev1.KubernetesWatchTrigger{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *kubernetesWatchTriggerInformer) defaultInformer(client versioned.Interf
} }
func (f *kubernetesWatchTriggerInformer) Informer() cache.SharedIndexInformer { 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 { func (f *kubernetesWatchTriggerInformer) Lister() corev1.KubernetesWatchTriggerLister {
return v1.NewKubernetesWatchTriggerLister(f.Informer().GetIndexer()) return corev1.NewKubernetesWatchTriggerLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// MessageQueueTriggers. // MessageQueueTriggers.
type MessageQueueTriggerInformer interface { type MessageQueueTriggerInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.MessageQueueTriggerLister Lister() corev1.MessageQueueTriggerLister
} }
type messageQueueTriggerInformer struct { type messageQueueTriggerInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredMessageQueueTriggerInformer(client versioned.Interface, namespac
return client.CoreV1().MessageQueueTriggers(namespace).Watch(context.TODO(), options) return client.CoreV1().MessageQueueTriggers(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.MessageQueueTrigger{}, &apiscorev1.MessageQueueTrigger{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *messageQueueTriggerInformer) defaultInformer(client versioned.Interface
} }
func (f *messageQueueTriggerInformer) Informer() cache.SharedIndexInformer { 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 { func (f *messageQueueTriggerInformer) Lister() corev1.MessageQueueTriggerLister {
return v1.NewMessageQueueTriggerLister(f.Informer().GetIndexer()) return corev1.NewMessageQueueTriggerLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// Packages. // Packages.
type PackageInformer interface { type PackageInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.PackageLister Lister() corev1.PackageLister
} }
type packageInformer struct { type packageInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredPackageInformer(client versioned.Interface, namespace string, re
return client.CoreV1().Packages(namespace).Watch(context.TODO(), options) return client.CoreV1().Packages(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.Package{}, &apiscorev1.Package{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *packageInformer) defaultInformer(client versioned.Interface, resyncPeri
} }
func (f *packageInformer) Informer() cache.SharedIndexInformer { 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 { func (f *packageInformer) Lister() corev1.PackageLister {
return v1.NewPackageLister(f.Informer().GetIndexer()) return corev1.NewPackageLister(f.Informer().GetIndexer())
} }
@@ -19,13 +19,13 @@ limitations under the License.
package v1 package v1
import ( import (
"context" context "context"
time "time" 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" versioned "github.com/fission/fission/pkg/generated/clientset/versioned"
internalinterfaces "github.com/fission/fission/pkg/generated/informers/externalversions/internalinterfaces" 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// TimeTriggers. // TimeTriggers.
type TimeTriggerInformer interface { type TimeTriggerInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1.TimeTriggerLister Lister() corev1.TimeTriggerLister
} }
type timeTriggerInformer struct { type timeTriggerInformer struct {
@@ -71,7 +71,7 @@ func NewFilteredTimeTriggerInformer(client versioned.Interface, namespace string
return client.CoreV1().TimeTriggers(namespace).Watch(context.TODO(), options) return client.CoreV1().TimeTriggers(namespace).Watch(context.TODO(), options)
}, },
}, },
&corev1.TimeTrigger{}, &apiscorev1.TimeTrigger{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@@ -82,9 +82,9 @@ func (f *timeTriggerInformer) defaultInformer(client versioned.Interface, resync
} }
func (f *timeTriggerInformer) Informer() cache.SharedIndexInformer { 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 { func (f *timeTriggerInformer) Lister() corev1.TimeTriggerLister {
return v1.NewTimeTriggerLister(f.Informer().GetIndexer()) return corev1.NewTimeTriggerLister(f.Informer().GetIndexer())
} }
@@ -19,7 +19,7 @@ limitations under the License.
package externalversions package externalversions
import ( import (
"fmt" fmt "fmt"
v1 "github.com/fission/fission/pkg/apis/core/v1" v1 "github.com/fission/fission/pkg/apis/core/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// CanaryConfigLister helps list CanaryConfigs. // CanaryConfigLister helps list CanaryConfigs.
@@ -30,7 +30,7 @@ import (
type CanaryConfigLister interface { type CanaryConfigLister interface {
// List lists all CanaryConfigs in the indexer. // List lists all CanaryConfigs in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get CanaryConfigs.
CanaryConfigs(namespace string) CanaryConfigNamespaceLister CanaryConfigs(namespace string) CanaryConfigNamespaceLister
CanaryConfigListerExpansion CanaryConfigListerExpansion
@@ -38,17 +38,17 @@ type CanaryConfigLister interface {
// canaryConfigLister implements the CanaryConfigLister interface. // canaryConfigLister implements the CanaryConfigLister interface.
type canaryConfigLister struct { type canaryConfigLister struct {
listers.ResourceIndexer[*v1.CanaryConfig] listers.ResourceIndexer[*corev1.CanaryConfig]
} }
// NewCanaryConfigLister returns a new CanaryConfigLister. // NewCanaryConfigLister returns a new CanaryConfigLister.
func NewCanaryConfigLister(indexer cache.Indexer) 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. // CanaryConfigs returns an object that can list and get CanaryConfigs.
func (s *canaryConfigLister) CanaryConfigs(namespace string) CanaryConfigNamespaceLister { 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. // CanaryConfigNamespaceLister helps list and get CanaryConfigs.
@@ -56,15 +56,15 @@ func (s *canaryConfigLister) CanaryConfigs(namespace string) CanaryConfigNamespa
type CanaryConfigNamespaceLister interface { type CanaryConfigNamespaceLister interface {
// List lists all CanaryConfigs in the indexer for a given namespace. // List lists all CanaryConfigs in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the CanaryConfig from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.CanaryConfig, error) Get(name string) (*corev1.CanaryConfig, error)
CanaryConfigNamespaceListerExpansion CanaryConfigNamespaceListerExpansion
} }
// canaryConfigNamespaceLister implements the CanaryConfigNamespaceLister // canaryConfigNamespaceLister implements the CanaryConfigNamespaceLister
// interface. // interface.
type canaryConfigNamespaceLister struct { type canaryConfigNamespaceLister struct {
listers.ResourceIndexer[*v1.CanaryConfig] listers.ResourceIndexer[*corev1.CanaryConfig]
} }
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// EnvironmentLister helps list Environments. // EnvironmentLister helps list Environments.
@@ -30,7 +30,7 @@ import (
type EnvironmentLister interface { type EnvironmentLister interface {
// List lists all Environments in the indexer. // List lists all Environments in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get Environments.
Environments(namespace string) EnvironmentNamespaceLister Environments(namespace string) EnvironmentNamespaceLister
EnvironmentListerExpansion EnvironmentListerExpansion
@@ -38,17 +38,17 @@ type EnvironmentLister interface {
// environmentLister implements the EnvironmentLister interface. // environmentLister implements the EnvironmentLister interface.
type environmentLister struct { type environmentLister struct {
listers.ResourceIndexer[*v1.Environment] listers.ResourceIndexer[*corev1.Environment]
} }
// NewEnvironmentLister returns a new EnvironmentLister. // NewEnvironmentLister returns a new EnvironmentLister.
func NewEnvironmentLister(indexer cache.Indexer) 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. // Environments returns an object that can list and get Environments.
func (s *environmentLister) Environments(namespace string) EnvironmentNamespaceLister { 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. // EnvironmentNamespaceLister helps list and get Environments.
@@ -56,15 +56,15 @@ func (s *environmentLister) Environments(namespace string) EnvironmentNamespaceL
type EnvironmentNamespaceLister interface { type EnvironmentNamespaceLister interface {
// List lists all Environments in the indexer for a given namespace. // List lists all Environments in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the Environment from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.Environment, error) Get(name string) (*corev1.Environment, error)
EnvironmentNamespaceListerExpansion EnvironmentNamespaceListerExpansion
} }
// environmentNamespaceLister implements the EnvironmentNamespaceLister // environmentNamespaceLister implements the EnvironmentNamespaceLister
// interface. // interface.
type environmentNamespaceLister struct { type environmentNamespaceLister struct {
listers.ResourceIndexer[*v1.Environment] listers.ResourceIndexer[*corev1.Environment]
} }
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// FunctionLister helps list Functions. // FunctionLister helps list Functions.
@@ -30,7 +30,7 @@ import (
type FunctionLister interface { type FunctionLister interface {
// List lists all Functions in the indexer. // List lists all Functions in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get Functions.
Functions(namespace string) FunctionNamespaceLister Functions(namespace string) FunctionNamespaceLister
FunctionListerExpansion FunctionListerExpansion
@@ -38,17 +38,17 @@ type FunctionLister interface {
// functionLister implements the FunctionLister interface. // functionLister implements the FunctionLister interface.
type functionLister struct { type functionLister struct {
listers.ResourceIndexer[*v1.Function] listers.ResourceIndexer[*corev1.Function]
} }
// NewFunctionLister returns a new FunctionLister. // NewFunctionLister returns a new FunctionLister.
func NewFunctionLister(indexer cache.Indexer) 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. // Functions returns an object that can list and get Functions.
func (s *functionLister) Functions(namespace string) FunctionNamespaceLister { 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. // FunctionNamespaceLister helps list and get Functions.
@@ -56,15 +56,15 @@ func (s *functionLister) Functions(namespace string) FunctionNamespaceLister {
type FunctionNamespaceLister interface { type FunctionNamespaceLister interface {
// List lists all Functions in the indexer for a given namespace. // List lists all Functions in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the Function from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.Function, error) Get(name string) (*corev1.Function, error)
FunctionNamespaceListerExpansion FunctionNamespaceListerExpansion
} }
// functionNamespaceLister implements the FunctionNamespaceLister // functionNamespaceLister implements the FunctionNamespaceLister
// interface. // interface.
type functionNamespaceLister struct { type functionNamespaceLister struct {
listers.ResourceIndexer[*v1.Function] listers.ResourceIndexer[*corev1.Function]
} }
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// HTTPTriggerLister helps list HTTPTriggers. // HTTPTriggerLister helps list HTTPTriggers.
@@ -30,7 +30,7 @@ import (
type HTTPTriggerLister interface { type HTTPTriggerLister interface {
// List lists all HTTPTriggers in the indexer. // List lists all HTTPTriggers in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get HTTPTriggers.
HTTPTriggers(namespace string) HTTPTriggerNamespaceLister HTTPTriggers(namespace string) HTTPTriggerNamespaceLister
HTTPTriggerListerExpansion HTTPTriggerListerExpansion
@@ -38,17 +38,17 @@ type HTTPTriggerLister interface {
// hTTPTriggerLister implements the HTTPTriggerLister interface. // hTTPTriggerLister implements the HTTPTriggerLister interface.
type hTTPTriggerLister struct { type hTTPTriggerLister struct {
listers.ResourceIndexer[*v1.HTTPTrigger] listers.ResourceIndexer[*corev1.HTTPTrigger]
} }
// NewHTTPTriggerLister returns a new HTTPTriggerLister. // NewHTTPTriggerLister returns a new HTTPTriggerLister.
func NewHTTPTriggerLister(indexer cache.Indexer) 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. // HTTPTriggers returns an object that can list and get HTTPTriggers.
func (s *hTTPTriggerLister) HTTPTriggers(namespace string) HTTPTriggerNamespaceLister { 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. // HTTPTriggerNamespaceLister helps list and get HTTPTriggers.
@@ -56,15 +56,15 @@ func (s *hTTPTriggerLister) HTTPTriggers(namespace string) HTTPTriggerNamespaceL
type HTTPTriggerNamespaceLister interface { type HTTPTriggerNamespaceLister interface {
// List lists all HTTPTriggers in the indexer for a given namespace. // List lists all HTTPTriggers in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the HTTPTrigger from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.HTTPTrigger, error) Get(name string) (*corev1.HTTPTrigger, error)
HTTPTriggerNamespaceListerExpansion HTTPTriggerNamespaceListerExpansion
} }
// hTTPTriggerNamespaceLister implements the HTTPTriggerNamespaceLister // hTTPTriggerNamespaceLister implements the HTTPTriggerNamespaceLister
// interface. // interface.
type hTTPTriggerNamespaceLister struct { type hTTPTriggerNamespaceLister struct {
listers.ResourceIndexer[*v1.HTTPTrigger] listers.ResourceIndexer[*corev1.HTTPTrigger]
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// KubernetesWatchTriggerLister helps list KubernetesWatchTriggers. // KubernetesWatchTriggerLister helps list KubernetesWatchTriggers.
@@ -30,7 +30,7 @@ import (
type KubernetesWatchTriggerLister interface { type KubernetesWatchTriggerLister interface {
// List lists all KubernetesWatchTriggers in the indexer. // List lists all KubernetesWatchTriggers in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get KubernetesWatchTriggers.
KubernetesWatchTriggers(namespace string) KubernetesWatchTriggerNamespaceLister KubernetesWatchTriggers(namespace string) KubernetesWatchTriggerNamespaceLister
KubernetesWatchTriggerListerExpansion KubernetesWatchTriggerListerExpansion
@@ -38,17 +38,17 @@ type KubernetesWatchTriggerLister interface {
// kubernetesWatchTriggerLister implements the KubernetesWatchTriggerLister interface. // kubernetesWatchTriggerLister implements the KubernetesWatchTriggerLister interface.
type kubernetesWatchTriggerLister struct { type kubernetesWatchTriggerLister struct {
listers.ResourceIndexer[*v1.KubernetesWatchTrigger] listers.ResourceIndexer[*corev1.KubernetesWatchTrigger]
} }
// NewKubernetesWatchTriggerLister returns a new KubernetesWatchTriggerLister. // NewKubernetesWatchTriggerLister returns a new KubernetesWatchTriggerLister.
func NewKubernetesWatchTriggerLister(indexer cache.Indexer) 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. // KubernetesWatchTriggers returns an object that can list and get KubernetesWatchTriggers.
func (s *kubernetesWatchTriggerLister) KubernetesWatchTriggers(namespace string) KubernetesWatchTriggerNamespaceLister { 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. // KubernetesWatchTriggerNamespaceLister helps list and get KubernetesWatchTriggers.
@@ -56,15 +56,15 @@ func (s *kubernetesWatchTriggerLister) KubernetesWatchTriggers(namespace string)
type KubernetesWatchTriggerNamespaceLister interface { type KubernetesWatchTriggerNamespaceLister interface {
// List lists all KubernetesWatchTriggers in the indexer for a given namespace. // List lists all KubernetesWatchTriggers in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the KubernetesWatchTrigger from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.KubernetesWatchTrigger, error) Get(name string) (*corev1.KubernetesWatchTrigger, error)
KubernetesWatchTriggerNamespaceListerExpansion KubernetesWatchTriggerNamespaceListerExpansion
} }
// kubernetesWatchTriggerNamespaceLister implements the KubernetesWatchTriggerNamespaceLister // kubernetesWatchTriggerNamespaceLister implements the KubernetesWatchTriggerNamespaceLister
// interface. // interface.
type kubernetesWatchTriggerNamespaceLister struct { type kubernetesWatchTriggerNamespaceLister struct {
listers.ResourceIndexer[*v1.KubernetesWatchTrigger] listers.ResourceIndexer[*corev1.KubernetesWatchTrigger]
} }
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// MessageQueueTriggerLister helps list MessageQueueTriggers. // MessageQueueTriggerLister helps list MessageQueueTriggers.
@@ -30,7 +30,7 @@ import (
type MessageQueueTriggerLister interface { type MessageQueueTriggerLister interface {
// List lists all MessageQueueTriggers in the indexer. // List lists all MessageQueueTriggers in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get MessageQueueTriggers.
MessageQueueTriggers(namespace string) MessageQueueTriggerNamespaceLister MessageQueueTriggers(namespace string) MessageQueueTriggerNamespaceLister
MessageQueueTriggerListerExpansion MessageQueueTriggerListerExpansion
@@ -38,17 +38,17 @@ type MessageQueueTriggerLister interface {
// messageQueueTriggerLister implements the MessageQueueTriggerLister interface. // messageQueueTriggerLister implements the MessageQueueTriggerLister interface.
type messageQueueTriggerLister struct { type messageQueueTriggerLister struct {
listers.ResourceIndexer[*v1.MessageQueueTrigger] listers.ResourceIndexer[*corev1.MessageQueueTrigger]
} }
// NewMessageQueueTriggerLister returns a new MessageQueueTriggerLister. // NewMessageQueueTriggerLister returns a new MessageQueueTriggerLister.
func NewMessageQueueTriggerLister(indexer cache.Indexer) 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. // MessageQueueTriggers returns an object that can list and get MessageQueueTriggers.
func (s *messageQueueTriggerLister) MessageQueueTriggers(namespace string) MessageQueueTriggerNamespaceLister { 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. // MessageQueueTriggerNamespaceLister helps list and get MessageQueueTriggers.
@@ -56,15 +56,15 @@ func (s *messageQueueTriggerLister) MessageQueueTriggers(namespace string) Messa
type MessageQueueTriggerNamespaceLister interface { type MessageQueueTriggerNamespaceLister interface {
// List lists all MessageQueueTriggers in the indexer for a given namespace. // List lists all MessageQueueTriggers in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the MessageQueueTrigger from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.MessageQueueTrigger, error) Get(name string) (*corev1.MessageQueueTrigger, error)
MessageQueueTriggerNamespaceListerExpansion MessageQueueTriggerNamespaceListerExpansion
} }
// messageQueueTriggerNamespaceLister implements the MessageQueueTriggerNamespaceLister // messageQueueTriggerNamespaceLister implements the MessageQueueTriggerNamespaceLister
// interface. // interface.
type messageQueueTriggerNamespaceLister struct { type messageQueueTriggerNamespaceLister struct {
listers.ResourceIndexer[*v1.MessageQueueTrigger] listers.ResourceIndexer[*corev1.MessageQueueTrigger]
} }
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// PackageLister helps list Packages. // PackageLister helps list Packages.
@@ -30,7 +30,7 @@ import (
type PackageLister interface { type PackageLister interface {
// List lists all Packages in the indexer. // List lists all Packages in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get Packages.
Packages(namespace string) PackageNamespaceLister Packages(namespace string) PackageNamespaceLister
PackageListerExpansion PackageListerExpansion
@@ -38,17 +38,17 @@ type PackageLister interface {
// packageLister implements the PackageLister interface. // packageLister implements the PackageLister interface.
type packageLister struct { type packageLister struct {
listers.ResourceIndexer[*v1.Package] listers.ResourceIndexer[*corev1.Package]
} }
// NewPackageLister returns a new PackageLister. // NewPackageLister returns a new PackageLister.
func NewPackageLister(indexer cache.Indexer) 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. // Packages returns an object that can list and get Packages.
func (s *packageLister) Packages(namespace string) PackageNamespaceLister { 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. // PackageNamespaceLister helps list and get Packages.
@@ -56,15 +56,15 @@ func (s *packageLister) Packages(namespace string) PackageNamespaceLister {
type PackageNamespaceLister interface { type PackageNamespaceLister interface {
// List lists all Packages in the indexer for a given namespace. // List lists all Packages in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the Package from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.Package, error) Get(name string) (*corev1.Package, error)
PackageNamespaceListerExpansion PackageNamespaceListerExpansion
} }
// packageNamespaceLister implements the PackageNamespaceLister // packageNamespaceLister implements the PackageNamespaceLister
// interface. // interface.
type packageNamespaceLister struct { type packageNamespaceLister struct {
listers.ResourceIndexer[*v1.Package] listers.ResourceIndexer[*corev1.Package]
} }
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/fission/fission/pkg/apis/core/v1" corev1 "github.com/fission/fission/pkg/apis/core/v1"
"k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" listers "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
// TimeTriggerLister helps list TimeTriggers. // TimeTriggerLister helps list TimeTriggers.
@@ -30,7 +30,7 @@ import (
type TimeTriggerLister interface { type TimeTriggerLister interface {
// List lists all TimeTriggers in the indexer. // List lists all TimeTriggers in the indexer.
// Objects returned here must be treated as read-only. // 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 returns an object that can list and get TimeTriggers.
TimeTriggers(namespace string) TimeTriggerNamespaceLister TimeTriggers(namespace string) TimeTriggerNamespaceLister
TimeTriggerListerExpansion TimeTriggerListerExpansion
@@ -38,17 +38,17 @@ type TimeTriggerLister interface {
// timeTriggerLister implements the TimeTriggerLister interface. // timeTriggerLister implements the TimeTriggerLister interface.
type timeTriggerLister struct { type timeTriggerLister struct {
listers.ResourceIndexer[*v1.TimeTrigger] listers.ResourceIndexer[*corev1.TimeTrigger]
} }
// NewTimeTriggerLister returns a new TimeTriggerLister. // NewTimeTriggerLister returns a new TimeTriggerLister.
func NewTimeTriggerLister(indexer cache.Indexer) 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. // TimeTriggers returns an object that can list and get TimeTriggers.
func (s *timeTriggerLister) TimeTriggers(namespace string) TimeTriggerNamespaceLister { 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. // TimeTriggerNamespaceLister helps list and get TimeTriggers.
@@ -56,15 +56,15 @@ func (s *timeTriggerLister) TimeTriggers(namespace string) TimeTriggerNamespaceL
type TimeTriggerNamespaceLister interface { type TimeTriggerNamespaceLister interface {
// List lists all TimeTriggers in the indexer for a given namespace. // List lists all TimeTriggers in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // 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. // Get retrieves the TimeTrigger from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1.TimeTrigger, error) Get(name string) (*corev1.TimeTrigger, error)
TimeTriggerNamespaceListerExpansion TimeTriggerNamespaceListerExpansion
} }
// timeTriggerNamespaceLister implements the TimeTriggerNamespaceLister // timeTriggerNamespaceLister implements the TimeTriggerNamespaceLister
// interface. // interface.
type timeTriggerNamespaceLister struct { type timeTriggerNamespaceLister struct {
listers.ResourceIndexer[*v1.TimeTrigger] listers.ResourceIndexer[*corev1.TimeTrigger]
} }