Upgraded controller-gen to remove status from fission CRDs (#2454)

Updated controller-gen to 0.9.0 and regenerated CRDs to
remove status from all Fission CRDs.
This commit is contained in:
Sanket Sudake
2022-06-10 10:01:56 +05:30
committed by GitHub
parent 7be3e4f410
commit 979880ae2d
9 changed files with 16810 additions and 4135 deletions
+5 -2
View File
@@ -64,8 +64,11 @@ codegen:
@./hack/update-codegen.sh @./hack/update-codegen.sh
### CRDs ### CRDs
generate-crds: controller-gen-install:
controller-gen crd:trivialVersions=false,preserveUnknownFields=false \ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0
generate-crds: controller-gen-install
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
+11 -12
View File
@@ -1,10 +1,9 @@
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null creationTimestamp: null
name: canaryconfigs.fission.io name: canaryconfigs.fission.io
spec: spec:
@@ -22,10 +21,14 @@ spec:
description: CanaryConfig is for canary deployment of two functions. description: CanaryConfig is for canary deployment of two functions.
properties: properties:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
@@ -33,13 +36,15 @@ spec:
description: CanaryConfigSpec defines the canary configuration spec description: CanaryConfigSpec defines the canary configuration spec
properties: properties:
duration: duration:
description: 'Weight increment interval, string representation of time.Duration, ex : 1m, 2h, 2d (default: "2m")' description: 'Weight increment interval, string representation of
time.Duration, ex : 1m, 2h, 2d (default: "2m")'
type: string type: string
failureType: failureType:
description: FailureType refers to the type of failure description: FailureType refers to the type of failure
type: string type: string
failurethreshold: failurethreshold:
description: Threshold in percentage beyond which the new version of the function is considered unstable description: Threshold in percentage beyond which the new version
of the function is considered unstable
type: integer type: integer
newfunction: newfunction:
description: New version of the function description: New version of the function
@@ -73,9 +78,3 @@ spec:
type: object type: object
served: true served: true
storage: true storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+46 -25
View File
@@ -1,10 +1,9 @@
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null creationTimestamp: null
name: httptriggers.fission.io name: httptriggers.fission.io
spec: spec:
@@ -19,21 +18,28 @@ spec:
- name: v1 - name: v1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: HTTPTrigger is the trigger invokes user functions when receiving HTTP requests. description: HTTPTrigger is the trigger invokes user functions when receiving
HTTP requests.
properties: properties:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
spec: spec:
description: HTTPTriggerSpec is for router to expose user functions at the given URL path. description: HTTPTriggerSpec is for router to expose user functions at
the given URL path.
properties: properties:
createingress: createingress:
description: If CreateIngress is true, router will create an ingress definition. description: If CreateIngress is true, router will create an ingress
definition.
type: boolean type: boolean
functionref: functionref:
description: FunctionReference is a reference to the target function. description: FunctionReference is a reference to the target function.
@@ -41,46 +47,64 @@ spec:
functionweights: functionweights:
additionalProperties: additionalProperties:
type: integer type: integer
description: Function Reference by weight. this map contains function name as key and its weight as the value. This is for canary upgrade purpose. description: Function Reference by weight. this map contains function
name as key and its weight as the value. This is for canary
upgrade purpose.
nullable: true nullable: true
type: object type: object
name: name:
description: Name of the function. description: Name of the function.
type: string type: string
type: type:
description: 'Type indicates whether this function reference is by name or selector. For now, the only supported reference type is by "name". Future reference types: * Function by label or annotation * Branch or tag of a versioned function * A "rolling upgrade" from one version of a function to another Available value: - name - function-weights' description: 'Type indicates whether this function reference is
by name or selector. For now, the only supported reference type
is by "name". Future reference types: * Function by label or
annotation * Branch or tag of a versioned function * A "rolling
upgrade" from one version of a function to another Available
value: - name - function-weights'
type: string type: string
required: required:
- name - name
- type - type
type: object type: object
host: host:
description: 'TODO: remove this field since we have IngressConfig already Deprecated: the original idea of this field is not for setting Ingress. Since we have IngressConfig now, remove Host after couple releases.' description: 'TODO: remove this field since we have IngressConfig
already Deprecated: the original idea of this field is not for setting
Ingress. Since we have IngressConfig now, remove Host after couple
releases.'
type: string type: string
ingressconfig: ingressconfig:
description: 'TODO: make IngressConfig an independent Fission resource IngressConfig for router to set up Ingress.' description: 'TODO: make IngressConfig an independent Fission resource
IngressConfig for router to set up Ingress.'
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:
type: string type: string
description: Annotations will be added to metadata when creating Ingress. description: Annotations will be added to metadata when creating
Ingress.
nullable: true nullable: true
type: object type: object
host: host:
description: Host is for ingress controller to apply rules. If host is empty or "*", the rule applies to all inbound HTTP traffic. description: Host is for ingress controller to apply rules. If
host is empty or "*", the rule applies to all inbound HTTP traffic.
type: string type: string
path: path:
description: Path is for path matching. The format of path depends on what ingress controller you used. description: Path is for path matching. The format of path depends
on what ingress controller you used.
type: string type: string
tls: tls:
description: TLS is for user to specify a Secret that contains TLS key and certificate. The domain name in the key and crt must match the value of Host field. description: TLS is for user to specify a Secret that contains
TLS key and certificate. The domain name in the key and crt
must match the value of Host field.
type: string type: string
type: object type: object
keepPrefix: keepPrefix:
description: When function is exposed with Prefix based path, keepPrefix decides whether to keep or trim prefix in URL while invoking function. description: When function is exposed with Prefix based path, keepPrefix
decides whether to keep or trim prefix in URL while invoking function.
type: boolean type: boolean
method: method:
description: Use Methods instead of Method. This field is going to be deprecated in a future release HTTP method to access a function. description: Use Methods instead of Method. This field is going to
be deprecated in a future release HTTP method to access a function.
type: string type: string
methods: methods:
description: HTTP methods to access a function description: HTTP methods to access a function
@@ -88,10 +112,13 @@ spec:
type: string type: string
type: array type: array
prefix: prefix:
description: 'Prefix with which functions are exposed. NOTE: Prefix takes precedence over URL/RelativeURL. Note that it does not treat slashes specially ("/foobar/" will be matched by the prefix "/foobar").' description: 'Prefix with which functions are exposed. NOTE: Prefix
takes precedence over URL/RelativeURL. Note that it does not treat
slashes specially ("/foobar/" will be matched by the prefix "/foobar").'
type: string type: string
relativeurl: relativeurl:
description: RelativeURL is the exposed URL for external client to access a function with. description: RelativeURL is the exposed URL for external client to
access a function with.
type: string type: string
required: required:
- functionref - functionref
@@ -104,9 +131,3 @@ spec:
storage: true storage: true
subresources: subresources:
status: {} status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
+20 -14
View File
@@ -1,10 +1,9 @@
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null creationTimestamp: null
name: kuberneteswatchtriggers.fission.io name: kuberneteswatchtriggers.fission.io
spec: spec:
@@ -19,13 +18,18 @@ spec:
- name: v1 - name: v1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: KubernetesWatchTrigger watches kubernetes resource events and invokes functions. description: KubernetesWatchTrigger watches kubernetes resource events and
invokes functions.
properties: properties:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
@@ -33,19 +37,27 @@ spec:
description: KubernetesWatchTriggerSpec defines spec of KuberenetesWatchTrigger description: KubernetesWatchTriggerSpec defines spec of KuberenetesWatchTrigger
properties: properties:
functionref: functionref:
description: The reference to a function for kubewatcher to invoke with when receiving events. description: The reference to a function for kubewatcher to invoke
with when receiving events.
properties: properties:
functionweights: functionweights:
additionalProperties: additionalProperties:
type: integer type: integer
description: Function Reference by weight. this map contains function name as key and its weight as the value. This is for canary upgrade purpose. description: Function Reference by weight. this map contains function
name as key and its weight as the value. This is for canary
upgrade purpose.
nullable: true nullable: true
type: object type: object
name: name:
description: Name of the function. description: Name of the function.
type: string type: string
type: type:
description: 'Type indicates whether this function reference is by name or selector. For now, the only supported reference type is by "name". Future reference types: * Function by label or annotation * Branch or tag of a versioned function * A "rolling upgrade" from one version of a function to another Available value: - name - function-weights' description: 'Type indicates whether this function reference is
by name or selector. For now, the only supported reference type
is by "name". Future reference types: * Function by label or
annotation * Branch or tag of a versioned function * A "rolling
upgrade" from one version of a function to another Available
value: - name - function-weights'
type: string type: string
required: required:
- name - name
@@ -74,9 +86,3 @@ spec:
storage: true storage: true
subresources: subresources:
status: {} status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
File diff suppressed because it is too large Load Diff
+38 -24
View File
@@ -1,10 +1,9 @@
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null creationTimestamp: null
name: packages.fission.io name: packages.fission.io
spec: spec:
@@ -24,44 +23,56 @@ spec:
description: Package Think of these as function-level images. description: Package Think of these as function-level images.
properties: properties:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
spec: spec:
description: PackageSpec includes source/deploy archives and the reference of environment to build the package. description: PackageSpec includes source/deploy archives and the reference
of environment to build the package.
properties: properties:
buildcmd: buildcmd:
description: BuildCommand is a custom build command that builder used to build the source archive. description: BuildCommand is a custom build command that builder used
to build the source archive.
type: string type: string
deployment: deployment:
description: Deployment is the deployable archive that environment runtime used to run user function. description: Deployment is the deployable archive that environment
runtime used to run user function.
properties: properties:
checksum: checksum:
description: Checksum ensures the integrity of packages referenced by URL. Ignored for literals. description: Checksum ensures the integrity of packages referenced
by URL. Ignored for literals.
properties: properties:
sum: sum:
type: string type: string
type: type:
description: ChecksumType specifies the checksum algorithm, such as sha256, used for a checksum. description: ChecksumType specifies the checksum algorithm,
such as sha256, used for a checksum.
type: string type: string
type: object type: object
literal: literal:
description: Literal contents of the package. Can be used for encoding packages below TODO (256 KB?) size. description: Literal contents of the package. Can be used for
encoding packages below TODO (256 KB?) size.
format: byte format: byte
type: string type: string
type: type:
description: 'Type defines how the package is specified: literal or URL. Available value: - literal - url' description: 'Type defines how the package is specified: literal
or URL. Available value: - literal - url'
type: string type: string
url: url:
description: URL references a package. description: URL references a package.
type: string type: string
type: object type: object
environment: environment:
description: Environment is a reference to the environment for building source archive. description: Environment is a reference to the environment for building
source archive.
properties: properties:
name: name:
type: string type: string
@@ -72,23 +83,30 @@ spec:
- namespace - namespace
type: object type: object
source: source:
description: Source is the archive contains source code and dependencies file. If the package status is in PENDING state, builder manager will then notify builder to compile source and save the result as deployable archive. description: Source is the archive contains source code and dependencies
file. If the package status is in PENDING state, builder manager
will then notify builder to compile source and save the result as
deployable archive.
properties: properties:
checksum: checksum:
description: Checksum ensures the integrity of packages referenced by URL. Ignored for literals. description: Checksum ensures the integrity of packages referenced
by URL. Ignored for literals.
properties: properties:
sum: sum:
type: string type: string
type: type:
description: ChecksumType specifies the checksum algorithm, such as sha256, used for a checksum. description: ChecksumType specifies the checksum algorithm,
such as sha256, used for a checksum.
type: string type: string
type: object type: object
literal: literal:
description: Literal contents of the package. Can be used for encoding packages below TODO (256 KB?) size. description: Literal contents of the package. Can be used for
encoding packages below TODO (256 KB?) size.
format: byte format: byte
type: string type: string
type: type:
description: 'Type defines how the package is specified: literal or URL. Available value: - literal - url' description: 'Type defines how the package is specified: literal
or URL. Available value: - literal - url'
type: string type: string
url: url:
description: URL references a package. description: URL references a package.
@@ -108,7 +126,9 @@ spec:
description: BuildStatus is the package build status. description: BuildStatus is the package build status.
type: string type: string
lastUpdateTimestamp: lastUpdateTimestamp:
description: LastUpdateTimestamp will store the timestamp the package was last updated metav1.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. https://github.com/kubernetes/apimachinery/blob/44bd77c24ef93cd3a5eb6fef64e514025d10d44e/pkg/apis/meta/v1/time.go#L26-L35 description: LastUpdateTimestamp will store the timestamp the package
was last updated metav1.Time is a wrapper around time.Time which
supports correct marshaling to YAML and JSON. https://github.com/kubernetes/apimachinery/blob/44bd77c24ef93cd3a5eb6fef64e514025d10d44e/pkg/apis/meta/v1/time.go#L26-L35
format: date-time format: date-time
nullable: true nullable: true
type: string type: string
@@ -119,9 +139,3 @@ spec:
type: object type: object
served: true served: true
storage: true storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
+18 -13
View File
@@ -1,10 +1,9 @@
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null creationTimestamp: null
name: timetriggers.fission.io name: timetriggers.fission.io
spec: spec:
@@ -22,15 +21,20 @@ spec:
description: TimeTrigger invokes functions based on given cron schedule. description: TimeTrigger invokes functions based on given cron schedule.
properties: properties:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
spec: spec:
description: TimeTriggerSpec invokes the specific function at a time or times specified by a cron string. description: TimeTriggerSpec invokes the specific function at a time or
times specified by a cron string.
properties: properties:
cron: cron:
description: Cron schedule description: Cron schedule
@@ -41,14 +45,21 @@ spec:
functionweights: functionweights:
additionalProperties: additionalProperties:
type: integer type: integer
description: Function Reference by weight. this map contains function name as key and its weight as the value. This is for canary upgrade purpose. description: Function Reference by weight. this map contains function
name as key and its weight as the value. This is for canary
upgrade purpose.
nullable: true nullable: true
type: object type: object
name: name:
description: Name of the function. description: Name of the function.
type: string type: string
type: type:
description: 'Type indicates whether this function reference is by name or selector. For now, the only supported reference type is by "name". Future reference types: * Function by label or annotation * Branch or tag of a versioned function * A "rolling upgrade" from one version of a function to another Available value: - name - function-weights' description: 'Type indicates whether this function reference is
by name or selector. For now, the only supported reference type
is by "name". Future reference types: * Function by label or
annotation * Branch or tag of a versioned function * A "rolling
upgrade" from one version of a function to another Available
value: - name - function-weights'
type: string type: string
required: required:
- name - name
@@ -66,9 +77,3 @@ spec:
storage: true storage: true
subresources: subresources:
status: {} status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []