Use typed rate limiting queue (#3028)

* Use typed rate limiting queue
* update skaffold version
* Update code-generator to 1.31

---------

Signed-off-by: Sanket <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2024-10-01 12:05:55 +05:30
committed by GitHub
parent 9bdac9a334
commit 15857b02d9
78 changed files with 3256 additions and 2719 deletions
@@ -22,7 +22,7 @@ import (
v1 "github.com/fission/fission/pkg/apis/core/v1"
)
// ArchiveApplyConfiguration represents an declarative configuration of the Archive type for use
// ArchiveApplyConfiguration represents a declarative configuration of the Archive type for use
// with apply.
type ArchiveApplyConfiguration struct {
Type *v1.ArchiveType `json:"type,omitempty"`
@@ -31,7 +31,7 @@ type ArchiveApplyConfiguration struct {
Checksum *ChecksumApplyConfiguration `json:"checksum,omitempty"`
}
// ArchiveApplyConfiguration constructs an declarative configuration of the Archive type for use with
// ArchiveApplyConfiguration constructs a declarative configuration of the Archive type for use with
// apply.
func Archive() *ArchiveApplyConfiguration {
return &ArchiveApplyConfiguration{}
@@ -22,7 +22,7 @@ import (
v1 "k8s.io/api/core/v1"
)
// BuilderApplyConfiguration represents an declarative configuration of the Builder type for use
// BuilderApplyConfiguration represents a declarative configuration of the Builder type for use
// with apply.
type BuilderApplyConfiguration struct {
Image *string `json:"image,omitempty"`
@@ -31,7 +31,7 @@ type BuilderApplyConfiguration struct {
PodSpec *v1.PodSpec `json:"podspec,omitempty"`
}
// BuilderApplyConfiguration constructs an declarative configuration of the Builder type for use with
// BuilderApplyConfiguration constructs a declarative configuration of the Builder type for use with
// apply.
func Builder() *BuilderApplyConfiguration {
return &BuilderApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// CanaryConfigApplyConfiguration represents an declarative configuration of the CanaryConfig type for use
// CanaryConfigApplyConfiguration represents a declarative configuration of the CanaryConfig type for use
// with apply.
type CanaryConfigApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -33,7 +33,7 @@ type CanaryConfigApplyConfiguration struct {
Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// CanaryConfig constructs an declarative configuration of the CanaryConfig type for use with
// CanaryConfig constructs a declarative configuration of the CanaryConfig type for use with
// apply.
func CanaryConfig(name, namespace string) *CanaryConfigApplyConfiguration {
b := &CanaryConfigApplyConfiguration{}
@@ -217,3 +217,9 @@ func (b *CanaryConfigApplyConfiguration) WithStatus(value *CanaryConfigStatusApp
b.Status = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *CanaryConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -22,7 +22,7 @@ import (
v1 "github.com/fission/fission/pkg/apis/core/v1"
)
// CanaryConfigSpecApplyConfiguration represents an declarative configuration of the CanaryConfigSpec type for use
// CanaryConfigSpecApplyConfiguration represents a declarative configuration of the CanaryConfigSpec type for use
// with apply.
type CanaryConfigSpecApplyConfiguration struct {
Trigger *string `json:"trigger,omitempty"`
@@ -34,7 +34,7 @@ type CanaryConfigSpecApplyConfiguration struct {
FailureType *v1.FailureType `json:"failureType,omitempty"`
}
// CanaryConfigSpecApplyConfiguration constructs an declarative configuration of the CanaryConfigSpec type for use with
// CanaryConfigSpecApplyConfiguration constructs a declarative configuration of the CanaryConfigSpec type for use with
// apply.
func CanaryConfigSpec() *CanaryConfigSpecApplyConfiguration {
return &CanaryConfigSpecApplyConfiguration{}
@@ -18,13 +18,13 @@ limitations under the License.
package v1
// CanaryConfigStatusApplyConfiguration represents an declarative configuration of the CanaryConfigStatus type for use
// CanaryConfigStatusApplyConfiguration represents a declarative configuration of the CanaryConfigStatus type for use
// with apply.
type CanaryConfigStatusApplyConfiguration struct {
Status *string `json:"status,omitempty"`
}
// CanaryConfigStatusApplyConfiguration constructs an declarative configuration of the CanaryConfigStatus type for use with
// CanaryConfigStatusApplyConfiguration constructs a declarative configuration of the CanaryConfigStatus type for use with
// apply.
func CanaryConfigStatus() *CanaryConfigStatusApplyConfiguration {
return &CanaryConfigStatusApplyConfiguration{}
@@ -22,14 +22,14 @@ import (
v1 "github.com/fission/fission/pkg/apis/core/v1"
)
// ChecksumApplyConfiguration represents an declarative configuration of the Checksum type for use
// ChecksumApplyConfiguration represents a declarative configuration of the Checksum type for use
// with apply.
type ChecksumApplyConfiguration struct {
Type *v1.ChecksumType `json:"type,omitempty"`
Sum *string `json:"sum,omitempty"`
}
// ChecksumApplyConfiguration constructs an declarative configuration of the Checksum type for use with
// ChecksumApplyConfiguration constructs a declarative configuration of the Checksum type for use with
// apply.
func Checksum() *ChecksumApplyConfiguration {
return &ChecksumApplyConfiguration{}
@@ -18,14 +18,14 @@ limitations under the License.
package v1
// ConfigMapReferenceApplyConfiguration represents an declarative configuration of the ConfigMapReference type for use
// ConfigMapReferenceApplyConfiguration represents a declarative configuration of the ConfigMapReference type for use
// with apply.
type ConfigMapReferenceApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
Name *string `json:"name,omitempty"`
}
// ConfigMapReferenceApplyConfiguration constructs an declarative configuration of the ConfigMapReference type for use with
// ConfigMapReferenceApplyConfiguration constructs a declarative configuration of the ConfigMapReference type for use with
// apply.
func ConfigMapReference() *ConfigMapReferenceApplyConfiguration {
return &ConfigMapReferenceApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// EnvironmentApplyConfiguration represents an declarative configuration of the Environment type for use
// EnvironmentApplyConfiguration represents a declarative configuration of the Environment type for use
// with apply.
type EnvironmentApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type EnvironmentApplyConfiguration struct {
Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"`
}
// Environment constructs an declarative configuration of the Environment type for use with
// Environment constructs a declarative configuration of the Environment type for use with
// apply.
func Environment(name, namespace string) *EnvironmentApplyConfiguration {
b := &EnvironmentApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *EnvironmentApplyConfiguration) WithSpec(value *EnvironmentSpecApplyConf
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *EnvironmentApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -18,14 +18,14 @@ limitations under the License.
package v1
// EnvironmentReferenceApplyConfiguration represents an declarative configuration of the EnvironmentReference type for use
// EnvironmentReferenceApplyConfiguration represents a declarative configuration of the EnvironmentReference type for use
// with apply.
type EnvironmentReferenceApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
Name *string `json:"name,omitempty"`
}
// EnvironmentReferenceApplyConfiguration constructs an declarative configuration of the EnvironmentReference type for use with
// EnvironmentReferenceApplyConfiguration constructs a declarative configuration of the EnvironmentReference type for use with
// apply.
func EnvironmentReference() *EnvironmentReferenceApplyConfiguration {
return &EnvironmentReferenceApplyConfiguration{}
@@ -23,7 +23,7 @@ import (
apicorev1 "k8s.io/api/core/v1"
)
// EnvironmentSpecApplyConfiguration represents an declarative configuration of the EnvironmentSpec type for use
// EnvironmentSpecApplyConfiguration represents a declarative configuration of the EnvironmentSpec type for use
// with apply.
type EnvironmentSpecApplyConfiguration struct {
Version *int `json:"version,omitempty"`
@@ -38,7 +38,7 @@ type EnvironmentSpecApplyConfiguration struct {
ImagePullSecret *string `json:"imagepullsecret,omitempty"`
}
// EnvironmentSpecApplyConfiguration constructs an declarative configuration of the EnvironmentSpec type for use with
// EnvironmentSpecApplyConfiguration constructs a declarative configuration of the EnvironmentSpec type for use with
// apply.
func EnvironmentSpec() *EnvironmentSpecApplyConfiguration {
return &EnvironmentSpecApplyConfiguration{}
@@ -23,7 +23,7 @@ import (
v2 "k8s.io/api/autoscaling/v2"
)
// ExecutionStrategyApplyConfiguration represents an declarative configuration of the ExecutionStrategy type for use
// ExecutionStrategyApplyConfiguration represents a declarative configuration of the ExecutionStrategy type for use
// with apply.
type ExecutionStrategyApplyConfiguration struct {
ExecutorType *v1.ExecutorType `json:"ExecutorType,omitempty"`
@@ -35,7 +35,7 @@ type ExecutionStrategyApplyConfiguration struct {
Behavior *v2.HorizontalPodAutoscalerBehavior `json:"hpaBehavior,omitempty"`
}
// ExecutionStrategyApplyConfiguration constructs an declarative configuration of the ExecutionStrategy type for use with
// ExecutionStrategyApplyConfiguration constructs a declarative configuration of the ExecutionStrategy type for use with
// apply.
func ExecutionStrategy() *ExecutionStrategyApplyConfiguration {
return &ExecutionStrategyApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// FunctionApplyConfiguration represents an declarative configuration of the Function type for use
// FunctionApplyConfiguration represents a declarative configuration of the Function type for use
// with apply.
type FunctionApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type FunctionApplyConfiguration struct {
Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"`
}
// Function constructs an declarative configuration of the Function type for use with
// Function constructs a declarative configuration of the Function type for use with
// apply.
func Function(name, namespace string) *FunctionApplyConfiguration {
b := &FunctionApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *FunctionApplyConfiguration) WithSpec(value *FunctionSpecApplyConfigurat
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *FunctionApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -18,14 +18,14 @@ limitations under the License.
package v1
// FunctionPackageRefApplyConfiguration represents an declarative configuration of the FunctionPackageRef type for use
// FunctionPackageRefApplyConfiguration represents a declarative configuration of the FunctionPackageRef type for use
// with apply.
type FunctionPackageRefApplyConfiguration struct {
PackageRef *PackageRefApplyConfiguration `json:"packageref,omitempty"`
FunctionName *string `json:"functionName,omitempty"`
}
// FunctionPackageRefApplyConfiguration constructs an declarative configuration of the FunctionPackageRef type for use with
// FunctionPackageRefApplyConfiguration constructs a declarative configuration of the FunctionPackageRef type for use with
// apply.
func FunctionPackageRef() *FunctionPackageRefApplyConfiguration {
return &FunctionPackageRefApplyConfiguration{}
@@ -22,7 +22,7 @@ import (
v1 "github.com/fission/fission/pkg/apis/core/v1"
)
// FunctionReferenceApplyConfiguration represents an declarative configuration of the FunctionReference type for use
// FunctionReferenceApplyConfiguration represents a declarative configuration of the FunctionReference type for use
// with apply.
type FunctionReferenceApplyConfiguration struct {
Type *v1.FunctionReferenceType `json:"type,omitempty"`
@@ -30,7 +30,7 @@ type FunctionReferenceApplyConfiguration struct {
FunctionWeights map[string]int `json:"functionweights,omitempty"`
}
// FunctionReferenceApplyConfiguration constructs an declarative configuration of the FunctionReference type for use with
// FunctionReferenceApplyConfiguration constructs a declarative configuration of the FunctionReference type for use with
// apply.
func FunctionReference() *FunctionReferenceApplyConfiguration {
return &FunctionReferenceApplyConfiguration{}
@@ -22,7 +22,7 @@ import (
corev1 "k8s.io/api/core/v1"
)
// FunctionSpecApplyConfiguration represents an declarative configuration of the FunctionSpec type for use
// FunctionSpecApplyConfiguration represents a declarative configuration of the FunctionSpec type for use
// with apply.
type FunctionSpecApplyConfiguration struct {
Environment *EnvironmentReferenceApplyConfiguration `json:"environment,omitempty"`
@@ -40,7 +40,7 @@ type FunctionSpecApplyConfiguration struct {
PodSpec *corev1.PodSpec `json:"podspec,omitempty"`
}
// FunctionSpecApplyConfiguration constructs an declarative configuration of the FunctionSpec type for use with
// FunctionSpecApplyConfiguration constructs a declarative configuration of the FunctionSpec type for use with
// apply.
func FunctionSpec() *FunctionSpecApplyConfiguration {
return &FunctionSpecApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// HTTPTriggerApplyConfiguration represents an declarative configuration of the HTTPTrigger type for use
// HTTPTriggerApplyConfiguration represents a declarative configuration of the HTTPTrigger type for use
// with apply.
type HTTPTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type HTTPTriggerApplyConfiguration struct {
Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"`
}
// HTTPTrigger constructs an declarative configuration of the HTTPTrigger type for use with
// HTTPTrigger constructs a declarative configuration of the HTTPTrigger type for use with
// apply.
func HTTPTrigger(name, namespace string) *HTTPTriggerApplyConfiguration {
b := &HTTPTriggerApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *HTTPTriggerApplyConfiguration) WithSpec(value *HTTPTriggerSpecApplyConf
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *HTTPTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -18,7 +18,7 @@ limitations under the License.
package v1
// HTTPTriggerSpecApplyConfiguration represents an declarative configuration of the HTTPTriggerSpec type for use
// HTTPTriggerSpecApplyConfiguration represents a declarative configuration of the HTTPTriggerSpec type for use
// with apply.
type HTTPTriggerSpecApplyConfiguration struct {
Host *string `json:"host,omitempty"`
@@ -32,7 +32,7 @@ type HTTPTriggerSpecApplyConfiguration struct {
IngressConfig *IngressConfigApplyConfiguration `json:"ingressconfig,omitempty"`
}
// HTTPTriggerSpecApplyConfiguration constructs an declarative configuration of the HTTPTriggerSpec type for use with
// HTTPTriggerSpecApplyConfiguration constructs a declarative configuration of the HTTPTriggerSpec type for use with
// apply.
func HTTPTriggerSpec() *HTTPTriggerSpecApplyConfiguration {
return &HTTPTriggerSpecApplyConfiguration{}
@@ -18,7 +18,7 @@ limitations under the License.
package v1
// IngressConfigApplyConfiguration represents an declarative configuration of the IngressConfig type for use
// IngressConfigApplyConfiguration represents a declarative configuration of the IngressConfig type for use
// with apply.
type IngressConfigApplyConfiguration struct {
Annotations map[string]string `json:"annotations,omitempty"`
@@ -27,7 +27,7 @@ type IngressConfigApplyConfiguration struct {
TLS *string `json:"tls,omitempty"`
}
// IngressConfigApplyConfiguration constructs an declarative configuration of the IngressConfig type for use with
// IngressConfigApplyConfiguration constructs a declarative configuration of the IngressConfig type for use with
// apply.
func IngressConfig() *IngressConfigApplyConfiguration {
return &IngressConfigApplyConfiguration{}
@@ -22,14 +22,14 @@ import (
corev1 "github.com/fission/fission/pkg/apis/core/v1"
)
// InvokeStrategyApplyConfiguration represents an declarative configuration of the InvokeStrategy type for use
// InvokeStrategyApplyConfiguration represents a declarative configuration of the InvokeStrategy type for use
// with apply.
type InvokeStrategyApplyConfiguration struct {
ExecutionStrategy *ExecutionStrategyApplyConfiguration `json:"ExecutionStrategy,omitempty"`
StrategyType *corev1.StrategyType `json:"StrategyType,omitempty"`
}
// InvokeStrategyApplyConfiguration constructs an declarative configuration of the InvokeStrategy type for use with
// InvokeStrategyApplyConfiguration constructs a declarative configuration of the InvokeStrategy type for use with
// apply.
func InvokeStrategy() *InvokeStrategyApplyConfiguration {
return &InvokeStrategyApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubernetesWatchTriggerApplyConfiguration represents an declarative configuration of the KubernetesWatchTrigger type for use
// KubernetesWatchTriggerApplyConfiguration represents a declarative configuration of the KubernetesWatchTrigger type for use
// with apply.
type KubernetesWatchTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type KubernetesWatchTriggerApplyConfiguration struct {
Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"`
}
// KubernetesWatchTrigger constructs an declarative configuration of the KubernetesWatchTrigger type for use with
// KubernetesWatchTrigger constructs a declarative configuration of the KubernetesWatchTrigger type for use with
// apply.
func KubernetesWatchTrigger(name, namespace string) *KubernetesWatchTriggerApplyConfiguration {
b := &KubernetesWatchTriggerApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithSpec(value *KubernetesWat
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubernetesWatchTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -18,7 +18,7 @@ limitations under the License.
package v1
// KubernetesWatchTriggerSpecApplyConfiguration represents an declarative configuration of the KubernetesWatchTriggerSpec type for use
// KubernetesWatchTriggerSpecApplyConfiguration represents a declarative configuration of the KubernetesWatchTriggerSpec type for use
// with apply.
type KubernetesWatchTriggerSpecApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
@@ -27,7 +27,7 @@ type KubernetesWatchTriggerSpecApplyConfiguration struct {
FunctionReference *FunctionReferenceApplyConfiguration `json:"functionref,omitempty"`
}
// KubernetesWatchTriggerSpecApplyConfiguration constructs an declarative configuration of the KubernetesWatchTriggerSpec type for use with
// KubernetesWatchTriggerSpecApplyConfiguration constructs a declarative configuration of the KubernetesWatchTriggerSpec type for use with
// apply.
func KubernetesWatchTriggerSpec() *KubernetesWatchTriggerSpecApplyConfiguration {
return &KubernetesWatchTriggerSpecApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MessageQueueTriggerApplyConfiguration represents an declarative configuration of the MessageQueueTrigger type for use
// MessageQueueTriggerApplyConfiguration represents a declarative configuration of the MessageQueueTrigger type for use
// with apply.
type MessageQueueTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type MessageQueueTriggerApplyConfiguration struct {
Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"`
}
// MessageQueueTrigger constructs an declarative configuration of the MessageQueueTrigger type for use with
// MessageQueueTrigger constructs a declarative configuration of the MessageQueueTrigger type for use with
// apply.
func MessageQueueTrigger(name, namespace string) *MessageQueueTriggerApplyConfiguration {
b := &MessageQueueTriggerApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *MessageQueueTriggerApplyConfiguration) WithSpec(value *MessageQueueTrig
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MessageQueueTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -23,7 +23,7 @@ import (
apicorev1 "k8s.io/api/core/v1"
)
// MessageQueueTriggerSpecApplyConfiguration represents an declarative configuration of the MessageQueueTriggerSpec type for use
// MessageQueueTriggerSpecApplyConfiguration represents a declarative configuration of the MessageQueueTriggerSpec type for use
// with apply.
type MessageQueueTriggerSpecApplyConfiguration struct {
FunctionReference *FunctionReferenceApplyConfiguration `json:"functionref,omitempty"`
@@ -43,7 +43,7 @@ type MessageQueueTriggerSpecApplyConfiguration struct {
PodSpec *apicorev1.PodSpec `json:"podspec,omitempty"`
}
// MessageQueueTriggerSpecApplyConfiguration constructs an declarative configuration of the MessageQueueTriggerSpec type for use with
// MessageQueueTriggerSpecApplyConfiguration constructs a declarative configuration of the MessageQueueTriggerSpec type for use with
// apply.
func MessageQueueTriggerSpec() *MessageQueueTriggerSpecApplyConfiguration {
return &MessageQueueTriggerSpecApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// PackageApplyConfiguration represents an declarative configuration of the Package type for use
// PackageApplyConfiguration represents a declarative configuration of the Package type for use
// with apply.
type PackageApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -33,7 +33,7 @@ type PackageApplyConfiguration struct {
Status *PackageStatusApplyConfiguration `json:"status,omitempty"`
}
// Package constructs an declarative configuration of the Package type for use with
// Package constructs a declarative configuration of the Package type for use with
// apply.
func Package(name, namespace string) *PackageApplyConfiguration {
b := &PackageApplyConfiguration{}
@@ -217,3 +217,9 @@ func (b *PackageApplyConfiguration) WithStatus(value *PackageStatusApplyConfigur
b.Status = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *PackageApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -18,7 +18,7 @@ limitations under the License.
package v1
// PackageRefApplyConfiguration represents an declarative configuration of the PackageRef type for use
// PackageRefApplyConfiguration represents a declarative configuration of the PackageRef type for use
// with apply.
type PackageRefApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
@@ -26,7 +26,7 @@ type PackageRefApplyConfiguration struct {
ResourceVersion *string `json:"resourceversion,omitempty"`
}
// PackageRefApplyConfiguration constructs an declarative configuration of the PackageRef type for use with
// PackageRefApplyConfiguration constructs a declarative configuration of the PackageRef type for use with
// apply.
func PackageRef() *PackageRefApplyConfiguration {
return &PackageRefApplyConfiguration{}
@@ -18,7 +18,7 @@ limitations under the License.
package v1
// PackageSpecApplyConfiguration represents an declarative configuration of the PackageSpec type for use
// PackageSpecApplyConfiguration represents a declarative configuration of the PackageSpec type for use
// with apply.
type PackageSpecApplyConfiguration struct {
Environment *EnvironmentReferenceApplyConfiguration `json:"environment,omitempty"`
@@ -27,7 +27,7 @@ type PackageSpecApplyConfiguration struct {
BuildCommand *string `json:"buildcmd,omitempty"`
}
// PackageSpecApplyConfiguration constructs an declarative configuration of the PackageSpec type for use with
// PackageSpecApplyConfiguration constructs a declarative configuration of the PackageSpec type for use with
// apply.
func PackageSpec() *PackageSpecApplyConfiguration {
return &PackageSpecApplyConfiguration{}
@@ -23,7 +23,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// PackageStatusApplyConfiguration represents an declarative configuration of the PackageStatus type for use
// PackageStatusApplyConfiguration represents a declarative configuration of the PackageStatus type for use
// with apply.
type PackageStatusApplyConfiguration struct {
BuildStatus *v1.BuildStatus `json:"buildstatus,omitempty"`
@@ -31,7 +31,7 @@ type PackageStatusApplyConfiguration struct {
LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"`
}
// PackageStatusApplyConfiguration constructs an declarative configuration of the PackageStatus type for use with
// PackageStatusApplyConfiguration constructs a declarative configuration of the PackageStatus type for use with
// apply.
func PackageStatus() *PackageStatusApplyConfiguration {
return &PackageStatusApplyConfiguration{}
@@ -22,7 +22,7 @@ import (
v1 "k8s.io/api/core/v1"
)
// RuntimeApplyConfiguration represents an declarative configuration of the Runtime type for use
// RuntimeApplyConfiguration represents a declarative configuration of the Runtime type for use
// with apply.
type RuntimeApplyConfiguration struct {
Image *string `json:"image,omitempty"`
@@ -30,7 +30,7 @@ type RuntimeApplyConfiguration struct {
PodSpec *v1.PodSpec `json:"podspec,omitempty"`
}
// RuntimeApplyConfiguration constructs an declarative configuration of the Runtime type for use with
// RuntimeApplyConfiguration constructs a declarative configuration of the Runtime type for use with
// apply.
func Runtime() *RuntimeApplyConfiguration {
return &RuntimeApplyConfiguration{}
@@ -18,14 +18,14 @@ limitations under the License.
package v1
// SecretReferenceApplyConfiguration represents an declarative configuration of the SecretReference type for use
// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use
// with apply.
type SecretReferenceApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
Name *string `json:"name,omitempty"`
}
// SecretReferenceApplyConfiguration constructs an declarative configuration of the SecretReference type for use with
// SecretReferenceApplyConfiguration constructs a declarative configuration of the SecretReference type for use with
// apply.
func SecretReference() *SecretReferenceApplyConfiguration {
return &SecretReferenceApplyConfiguration{}
@@ -24,7 +24,7 @@ import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// TimeTriggerApplyConfiguration represents an declarative configuration of the TimeTrigger type for use
// TimeTriggerApplyConfiguration represents a declarative configuration of the TimeTrigger type for use
// with apply.
type TimeTriggerApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
@@ -32,7 +32,7 @@ type TimeTriggerApplyConfiguration struct {
Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"`
}
// TimeTrigger constructs an declarative configuration of the TimeTrigger type for use with
// TimeTrigger constructs a declarative configuration of the TimeTrigger type for use with
// apply.
func TimeTrigger(name, namespace string) *TimeTriggerApplyConfiguration {
b := &TimeTriggerApplyConfiguration{}
@@ -208,3 +208,9 @@ func (b *TimeTriggerApplyConfiguration) WithSpec(value *TimeTriggerSpecApplyConf
b.Spec = value
return b
}
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *TimeTriggerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
return b.Name
}
@@ -22,7 +22,7 @@ import (
corev1 "github.com/fission/fission/pkg/apis/core/v1"
)
// TimeTriggerSpecApplyConfiguration represents an declarative configuration of the TimeTriggerSpec type for use
// TimeTriggerSpecApplyConfiguration represents a declarative configuration of the TimeTriggerSpec type for use
// with apply.
type TimeTriggerSpecApplyConfiguration struct {
Cron *string `json:"cron,omitempty"`
@@ -31,7 +31,7 @@ type TimeTriggerSpecApplyConfiguration struct {
Subpath *string `json:"subpath,omitempty"`
}
// TimeTriggerSpecApplyConfiguration constructs an declarative configuration of the TimeTriggerSpec type for use with
// TimeTriggerSpecApplyConfiguration constructs a declarative configuration of the TimeTriggerSpec type for use with
// apply.
func TimeTriggerSpec() *TimeTriggerSpecApplyConfiguration {
return &TimeTriggerSpecApplyConfiguration{}
@@ -21,7 +21,10 @@ package applyconfiguration
import (
v1 "github.com/fission/fission/pkg/apis/core/v1"
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
internal "github.com/fission/fission/pkg/generated/applyconfiguration/internal"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
testing "k8s.io/client-go/testing"
)
// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
@@ -95,3 +98,7 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
}
return nil
}
func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter {
return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()}
}