Use controller-gen and code-generator latest version (#3133)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -19,13 +19,13 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
)
|
||||
|
||||
// ArchiveApplyConfiguration represents a declarative configuration of the Archive type for use
|
||||
// with apply.
|
||||
type ArchiveApplyConfiguration struct {
|
||||
Type *v1.ArchiveType `json:"type,omitempty"`
|
||||
Type *corev1.ArchiveType `json:"type,omitempty"`
|
||||
Literal []byte `json:"literal,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Checksum *ChecksumApplyConfiguration `json:"checksum,omitempty"`
|
||||
@@ -40,7 +40,7 @@ func Archive() *ArchiveApplyConfiguration {
|
||||
// WithType sets the Type field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Type field is set to the value of the last call.
|
||||
func (b *ArchiveApplyConfiguration) WithType(value v1.ArchiveType) *ArchiveApplyConfiguration {
|
||||
func (b *ArchiveApplyConfiguration) WithType(value corev1.ArchiveType) *ArchiveApplyConfiguration {
|
||||
b.Type = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,16 +19,16 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// BuilderApplyConfiguration represents a declarative configuration of the Builder type for use
|
||||
// with apply.
|
||||
type BuilderApplyConfiguration struct {
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command *string `json:"command,omitempty"`
|
||||
Container *v1.Container `json:"container,omitempty"`
|
||||
PodSpec *v1.PodSpec `json:"podspec,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command *string `json:"command,omitempty"`
|
||||
Container *corev1.Container `json:"container,omitempty"`
|
||||
PodSpec *corev1.PodSpec `json:"podspec,omitempty"`
|
||||
}
|
||||
|
||||
// BuilderApplyConfiguration constructs a declarative configuration of the Builder type for use with
|
||||
@@ -56,7 +56,7 @@ func (b *BuilderApplyConfiguration) WithCommand(value string) *BuilderApplyConfi
|
||||
// WithContainer sets the Container field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Container field is set to the value of the last call.
|
||||
func (b *BuilderApplyConfiguration) WithContainer(value v1.Container) *BuilderApplyConfiguration {
|
||||
func (b *BuilderApplyConfiguration) WithContainer(value corev1.Container) *BuilderApplyConfiguration {
|
||||
b.Container = &value
|
||||
return b
|
||||
}
|
||||
@@ -64,7 +64,7 @@ func (b *BuilderApplyConfiguration) WithContainer(value v1.Container) *BuilderAp
|
||||
// WithPodSpec sets the PodSpec field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the PodSpec field is set to the value of the last call.
|
||||
func (b *BuilderApplyConfiguration) WithPodSpec(value v1.PodSpec) *BuilderApplyConfiguration {
|
||||
func (b *BuilderApplyConfiguration) WithPodSpec(value corev1.PodSpec) *BuilderApplyConfiguration {
|
||||
b.PodSpec = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,18 +19,18 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// CanaryConfigApplyConfiguration represents a declarative configuration of the CanaryConfig type for use
|
||||
// with apply.
|
||||
type CanaryConfigApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *CanaryConfigSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
Status *CanaryConfigStatusApplyConfiguration `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// CanaryConfig constructs a declarative configuration of the CanaryConfig type for use with
|
||||
@@ -48,7 +48,7 @@ func CanaryConfig(name, namespace string) *CanaryConfigApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (b *CanaryConfigApplyConfiguration) WithKind(value string) *CanaryConfigApp
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryConfigApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ func (b *CanaryConfigApplyConfiguration) WithAPIVersion(value string) *CanaryCon
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ func (b *CanaryConfigApplyConfiguration) WithName(value string) *CanaryConfigApp
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ func (b *CanaryConfigApplyConfiguration) WithGenerateName(value string) *CanaryC
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ func (b *CanaryConfigApplyConfiguration) WithNamespace(value string) *CanaryConf
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ func (b *CanaryConfigApplyConfiguration) WithUID(value types.UID) *CanaryConfigA
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -110,25 +110,25 @@ func (b *CanaryConfigApplyConfiguration) WithResourceVersion(value string) *Cana
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithGeneration(value int64) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CanaryConfigApplyConfiguration {
|
||||
func (b *CanaryConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CanaryConfigApplyConfiguration {
|
||||
func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ func (b *CanaryConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -147,11 +147,11 @@ func (b *CanaryConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value in
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -162,11 +162,11 @@ func (b *CanaryConfigApplyConfiguration) WithLabels(entries map[string]string) *
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -174,13 +174,13 @@ func (b *CanaryConfigApplyConfiguration) WithAnnotations(entries map[string]stri
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CanaryConfigApplyConfiguration {
|
||||
func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -191,14 +191,14 @@ func (b *CanaryConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
|
||||
func (b *CanaryConfigApplyConfiguration) WithFinalizers(values ...string) *CanaryConfigApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *CanaryConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,5 +221,5 @@ func (b *CanaryConfigApplyConfiguration) WithStatus(value *CanaryConfigStatusApp
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *CanaryConfigApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,19 +19,19 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
)
|
||||
|
||||
// CanaryConfigSpecApplyConfiguration represents a declarative configuration of the CanaryConfigSpec type for use
|
||||
// with apply.
|
||||
type CanaryConfigSpecApplyConfiguration struct {
|
||||
Trigger *string `json:"trigger,omitempty"`
|
||||
NewFunction *string `json:"newfunction,omitempty"`
|
||||
OldFunction *string `json:"oldfunction,omitempty"`
|
||||
WeightIncrement *int `json:"weightincrement,omitempty"`
|
||||
WeightIncrementDuration *string `json:"duration,omitempty"`
|
||||
FailureThreshold *int `json:"failurethreshold,omitempty"`
|
||||
FailureType *v1.FailureType `json:"failureType,omitempty"`
|
||||
Trigger *string `json:"trigger,omitempty"`
|
||||
NewFunction *string `json:"newfunction,omitempty"`
|
||||
OldFunction *string `json:"oldfunction,omitempty"`
|
||||
WeightIncrement *int `json:"weightincrement,omitempty"`
|
||||
WeightIncrementDuration *string `json:"duration,omitempty"`
|
||||
FailureThreshold *int `json:"failurethreshold,omitempty"`
|
||||
FailureType *corev1.FailureType `json:"failureType,omitempty"`
|
||||
}
|
||||
|
||||
// CanaryConfigSpecApplyConfiguration constructs a declarative configuration of the CanaryConfigSpec type for use with
|
||||
@@ -91,7 +91,7 @@ func (b *CanaryConfigSpecApplyConfiguration) WithFailureThreshold(value int) *Ca
|
||||
// WithFailureType sets the FailureType field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the FailureType field is set to the value of the last call.
|
||||
func (b *CanaryConfigSpecApplyConfiguration) WithFailureType(value v1.FailureType) *CanaryConfigSpecApplyConfiguration {
|
||||
func (b *CanaryConfigSpecApplyConfiguration) WithFailureType(value corev1.FailureType) *CanaryConfigSpecApplyConfiguration {
|
||||
b.FailureType = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
)
|
||||
|
||||
// ChecksumApplyConfiguration represents a declarative configuration of the Checksum type for use
|
||||
// with apply.
|
||||
type ChecksumApplyConfiguration struct {
|
||||
Type *v1.ChecksumType `json:"type,omitempty"`
|
||||
Sum *string `json:"sum,omitempty"`
|
||||
Type *corev1.ChecksumType `json:"type,omitempty"`
|
||||
Sum *string `json:"sum,omitempty"`
|
||||
}
|
||||
|
||||
// ChecksumApplyConfiguration constructs a declarative configuration of the Checksum type for use with
|
||||
@@ -38,7 +38,7 @@ func Checksum() *ChecksumApplyConfiguration {
|
||||
// WithType sets the Type field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Type field is set to the value of the last call.
|
||||
func (b *ChecksumApplyConfiguration) WithType(value v1.ChecksumType) *ChecksumApplyConfiguration {
|
||||
func (b *ChecksumApplyConfiguration) WithType(value corev1.ChecksumType) *ChecksumApplyConfiguration {
|
||||
b.Type = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// EnvironmentApplyConfiguration represents a declarative configuration of the Environment type for use
|
||||
// with apply.
|
||||
type EnvironmentApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *EnvironmentSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// Environment constructs a declarative configuration of the Environment type for use with
|
||||
@@ -47,7 +47,7 @@ func Environment(name, namespace string) *EnvironmentApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *EnvironmentApplyConfiguration) WithKind(value string) *EnvironmentApply
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *EnvironmentApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *EnvironmentApplyConfiguration) WithAPIVersion(value string) *Environmen
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *EnvironmentApplyConfiguration) WithName(value string) *EnvironmentApply
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *EnvironmentApplyConfiguration) WithGenerateName(value string) *Environm
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *EnvironmentApplyConfiguration) WithNamespace(value string) *Environment
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *EnvironmentApplyConfiguration) WithUID(value types.UID) *EnvironmentApp
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *EnvironmentApplyConfiguration) WithResourceVersion(value string) *Envir
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithGeneration(value int64) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EnvironmentApplyConfiguration {
|
||||
func (b *EnvironmentApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EnvironmentApplyConfiguration {
|
||||
func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *EnvironmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *EnvironmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *EnvironmentApplyConfiguration) WithLabels(entries map[string]string) *E
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *EnvironmentApplyConfiguration) WithAnnotations(entries map[string]strin
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EnvironmentApplyConfiguration {
|
||||
func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *EnvironmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
|
||||
func (b *EnvironmentApplyConfiguration) WithFinalizers(values ...string) *EnvironmentApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *EnvironmentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *EnvironmentApplyConfiguration) WithSpec(value *EnvironmentSpecApplyConf
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *EnvironmentApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
v2 "k8s.io/api/autoscaling/v2"
|
||||
)
|
||||
|
||||
// ExecutionStrategyApplyConfiguration represents a declarative configuration of the ExecutionStrategy type for use
|
||||
// with apply.
|
||||
type ExecutionStrategyApplyConfiguration struct {
|
||||
ExecutorType *v1.ExecutorType `json:"ExecutorType,omitempty"`
|
||||
ExecutorType *corev1.ExecutorType `json:"ExecutorType,omitempty"`
|
||||
MinScale *int `json:"MinScale,omitempty"`
|
||||
MaxScale *int `json:"MaxScale,omitempty"`
|
||||
TargetCPUPercent *int `json:"TargetCPUPercent,omitempty"`
|
||||
@@ -44,7 +44,7 @@ func ExecutionStrategy() *ExecutionStrategyApplyConfiguration {
|
||||
// WithExecutorType sets the ExecutorType field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the ExecutorType field is set to the value of the last call.
|
||||
func (b *ExecutionStrategyApplyConfiguration) WithExecutorType(value v1.ExecutorType) *ExecutionStrategyApplyConfiguration {
|
||||
func (b *ExecutionStrategyApplyConfiguration) WithExecutorType(value corev1.ExecutorType) *ExecutionStrategyApplyConfiguration {
|
||||
b.ExecutorType = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// FunctionApplyConfiguration represents a declarative configuration of the Function type for use
|
||||
// with apply.
|
||||
type FunctionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *FunctionSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// Function constructs a declarative configuration of the Function type for use with
|
||||
@@ -47,7 +47,7 @@ func Function(name, namespace string) *FunctionApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *FunctionApplyConfiguration) WithKind(value string) *FunctionApplyConfig
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *FunctionApplyConfiguration) WithAPIVersion(value string) *FunctionApply
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *FunctionApplyConfiguration) WithName(value string) *FunctionApplyConfig
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApp
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *FunctionApplyConfiguration) WithNamespace(value string) *FunctionApplyC
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *FunctionApplyConfiguration) WithUID(value types.UID) *FunctionApplyConf
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *Function
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithGeneration(value int64) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FunctionApplyConfiguration {
|
||||
func (b *FunctionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FunctionApplyConfiguration {
|
||||
func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *F
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *FunctionApplyConfiguration) WithLabels(entries map[string]string) *Func
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string)
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *FunctionApplyConfiguration {
|
||||
func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *FunctionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe
|
||||
func (b *FunctionApplyConfiguration) WithFinalizers(values ...string) *FunctionApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *FunctionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *FunctionApplyConfiguration) WithSpec(value *FunctionSpecApplyConfigurat
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *FunctionApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,15 +19,15 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
)
|
||||
|
||||
// FunctionReferenceApplyConfiguration represents a declarative configuration of the FunctionReference type for use
|
||||
// with apply.
|
||||
type FunctionReferenceApplyConfiguration struct {
|
||||
Type *v1.FunctionReferenceType `json:"type,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
FunctionWeights map[string]int `json:"functionweights,omitempty"`
|
||||
Type *corev1.FunctionReferenceType `json:"type,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
FunctionWeights map[string]int `json:"functionweights,omitempty"`
|
||||
}
|
||||
|
||||
// FunctionReferenceApplyConfiguration constructs a declarative configuration of the FunctionReference type for use with
|
||||
@@ -39,7 +39,7 @@ func FunctionReference() *FunctionReferenceApplyConfiguration {
|
||||
// WithType sets the Type field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Type field is set to the value of the last call.
|
||||
func (b *FunctionReferenceApplyConfiguration) WithType(value v1.FunctionReferenceType) *FunctionReferenceApplyConfiguration {
|
||||
func (b *FunctionReferenceApplyConfiguration) WithType(value corev1.FunctionReferenceType) *FunctionReferenceApplyConfiguration {
|
||||
b.Type = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// HTTPTriggerApplyConfiguration represents a declarative configuration of the HTTPTrigger type for use
|
||||
// with apply.
|
||||
type HTTPTriggerApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *HTTPTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// HTTPTrigger constructs a declarative configuration of the HTTPTrigger type for use with
|
||||
@@ -47,7 +47,7 @@ func HTTPTrigger(name, namespace string) *HTTPTriggerApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *HTTPTriggerApplyConfiguration) WithKind(value string) *HTTPTriggerApply
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *HTTPTriggerApplyConfiguration) WithAPIVersion(value string) *HTTPTrigge
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *HTTPTriggerApplyConfiguration) WithName(value string) *HTTPTriggerApply
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *HTTPTriggerApplyConfiguration) WithGenerateName(value string) *HTTPTrig
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *HTTPTriggerApplyConfiguration) WithNamespace(value string) *HTTPTrigger
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *HTTPTriggerApplyConfiguration) WithUID(value types.UID) *HTTPTriggerApp
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *HTTPTriggerApplyConfiguration) WithResourceVersion(value string) *HTTPT
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithGeneration(value int64) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HTTPTriggerApplyConfiguration {
|
||||
func (b *HTTPTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HTTPTriggerApplyConfiguration {
|
||||
func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *HTTPTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *HTTPTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *HTTPTriggerApplyConfiguration) WithLabels(entries map[string]string) *H
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *HTTPTriggerApplyConfiguration) WithAnnotations(entries map[string]strin
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HTTPTriggerApplyConfiguration {
|
||||
func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *HTTPTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
|
||||
func (b *HTTPTriggerApplyConfiguration) WithFinalizers(values ...string) *HTTPTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *HTTPTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *HTTPTriggerApplyConfiguration) WithSpec(value *HTTPTriggerSpecApplyConf
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *HTTPTriggerApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// KubernetesWatchTriggerApplyConfiguration represents a declarative configuration of the KubernetesWatchTrigger type for use
|
||||
// with apply.
|
||||
type KubernetesWatchTriggerApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *KubernetesWatchTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// KubernetesWatchTrigger constructs a declarative configuration of the KubernetesWatchTrigger type for use with
|
||||
@@ -47,7 +47,7 @@ func KubernetesWatchTrigger(name, namespace string) *KubernetesWatchTriggerApply
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithKind(value string) *Kuber
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithAPIVersion(value string)
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithName(value string) *Kuber
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithGenerateName(value string
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithNamespace(value string) *
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithUID(value types.UID) *Kub
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithResourceVersion(value str
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithGeneration(value int64) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubernetesWatchTriggerApplyConfiguration {
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubernetesWatchTriggerApplyConfiguration {
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionTimestamp(value m
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithDeletionGracePeriodSecond
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithLabels(entries map[string
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithAnnotations(entries map[s
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubernetesWatchTriggerApplyConfiguration {
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithOwnerReferences(values ..
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) WithFinalizers(values ...string) *KubernetesWatchTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *KubernetesWatchTriggerApplyConfiguration) WithSpec(value *KubernetesWat
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *KubernetesWatchTriggerApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// MessageQueueTriggerApplyConfiguration represents a declarative configuration of the MessageQueueTrigger type for use
|
||||
// with apply.
|
||||
type MessageQueueTriggerApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *MessageQueueTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// MessageQueueTrigger constructs a declarative configuration of the MessageQueueTrigger type for use with
|
||||
@@ -47,7 +47,7 @@ func MessageQueueTrigger(name, namespace string) *MessageQueueTriggerApplyConfig
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithKind(value string) *MessageQ
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithAPIVersion(value string) *Me
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithName(value string) *MessageQ
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithGenerateName(value string) *
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithNamespace(value string) *Mes
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithUID(value types.UID) *Messag
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *MessageQueueTriggerApplyConfiguration) WithResourceVersion(value string
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithGeneration(value int64) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MessageQueueTriggerApplyConfiguration {
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MessageQueueTriggerApplyConfiguration {
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *MessageQueueTriggerApplyConfiguration) WithDeletionTimestamp(value meta
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *MessageQueueTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(v
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *MessageQueueTriggerApplyConfiguration) WithLabels(entries map[string]st
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *MessageQueueTriggerApplyConfiguration) WithAnnotations(entries map[stri
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MessageQueueTriggerApplyConfiguration {
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *MessageQueueTriggerApplyConfiguration) WithOwnerReferences(values ...*v
|
||||
func (b *MessageQueueTriggerApplyConfiguration) WithFinalizers(values ...string) *MessageQueueTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *MessageQueueTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *MessageQueueTriggerApplyConfiguration) WithSpec(value *MessageQueueTrig
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *MessageQueueTriggerApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,18 +19,18 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// PackageApplyConfiguration represents a declarative configuration of the Package type for use
|
||||
// with apply.
|
||||
type PackageApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
Status *PackageStatusApplyConfiguration `json:"status,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *PackageSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
Status *PackageStatusApplyConfiguration `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// Package constructs a declarative configuration of the Package type for use with
|
||||
@@ -48,7 +48,7 @@ func Package(name, namespace string) *PackageApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (b *PackageApplyConfiguration) WithKind(value string) *PackageApplyConfigur
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ func (b *PackageApplyConfiguration) WithAPIVersion(value string) *PackageApplyCo
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ func (b *PackageApplyConfiguration) WithName(value string) *PackageApplyConfigur
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ func (b *PackageApplyConfiguration) WithGenerateName(value string) *PackageApply
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ func (b *PackageApplyConfiguration) WithNamespace(value string) *PackageApplyCon
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ func (b *PackageApplyConfiguration) WithUID(value types.UID) *PackageApplyConfig
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -110,25 +110,25 @@ func (b *PackageApplyConfiguration) WithResourceVersion(value string) *PackageAp
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithGeneration(value int64) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PackageApplyConfiguration {
|
||||
func (b *PackageApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PackageApplyConfiguration {
|
||||
func (b *PackageApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ func (b *PackageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Pa
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -147,11 +147,11 @@ func (b *PackageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -162,11 +162,11 @@ func (b *PackageApplyConfiguration) WithLabels(entries map[string]string) *Packa
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -174,13 +174,13 @@ func (b *PackageApplyConfiguration) WithAnnotations(entries map[string]string) *
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PackageApplyConfiguration {
|
||||
func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -191,14 +191,14 @@ func (b *PackageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
|
||||
func (b *PackageApplyConfiguration) WithFinalizers(values ...string) *PackageApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *PackageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,5 +221,5 @@ func (b *PackageApplyConfiguration) WithStatus(value *PackageStatusApplyConfigur
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *PackageApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -19,16 +19,16 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// PackageStatusApplyConfiguration represents a declarative configuration of the PackageStatus type for use
|
||||
// with apply.
|
||||
type PackageStatusApplyConfiguration struct {
|
||||
BuildStatus *v1.BuildStatus `json:"buildstatus,omitempty"`
|
||||
BuildLog *string `json:"buildlog,omitempty"`
|
||||
LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"`
|
||||
BuildStatus *corev1.BuildStatus `json:"buildstatus,omitempty"`
|
||||
BuildLog *string `json:"buildlog,omitempty"`
|
||||
LastUpdateTimestamp *metav1.Time `json:"lastUpdateTimestamp,omitempty"`
|
||||
}
|
||||
|
||||
// PackageStatusApplyConfiguration constructs a declarative configuration of the PackageStatus type for use with
|
||||
@@ -40,7 +40,7 @@ func PackageStatus() *PackageStatusApplyConfiguration {
|
||||
// WithBuildStatus sets the BuildStatus field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the BuildStatus field is set to the value of the last call.
|
||||
func (b *PackageStatusApplyConfiguration) WithBuildStatus(value v1.BuildStatus) *PackageStatusApplyConfiguration {
|
||||
func (b *PackageStatusApplyConfiguration) WithBuildStatus(value corev1.BuildStatus) *PackageStatusApplyConfiguration {
|
||||
b.BuildStatus = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,15 +19,15 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// RuntimeApplyConfiguration represents a declarative configuration of the Runtime type for use
|
||||
// with apply.
|
||||
type RuntimeApplyConfiguration struct {
|
||||
Image *string `json:"image,omitempty"`
|
||||
Container *v1.Container `json:"container,omitempty"`
|
||||
PodSpec *v1.PodSpec `json:"podspec,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Container *corev1.Container `json:"container,omitempty"`
|
||||
PodSpec *corev1.PodSpec `json:"podspec,omitempty"`
|
||||
}
|
||||
|
||||
// RuntimeApplyConfiguration constructs a declarative configuration of the Runtime type for use with
|
||||
@@ -47,7 +47,7 @@ func (b *RuntimeApplyConfiguration) WithImage(value string) *RuntimeApplyConfigu
|
||||
// WithContainer sets the Container field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Container field is set to the value of the last call.
|
||||
func (b *RuntimeApplyConfiguration) WithContainer(value v1.Container) *RuntimeApplyConfiguration {
|
||||
func (b *RuntimeApplyConfiguration) WithContainer(value corev1.Container) *RuntimeApplyConfiguration {
|
||||
b.Container = &value
|
||||
return b
|
||||
}
|
||||
@@ -55,7 +55,7 @@ func (b *RuntimeApplyConfiguration) WithContainer(value v1.Container) *RuntimeAp
|
||||
// WithPodSpec sets the PodSpec field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the PodSpec field is set to the value of the last call.
|
||||
func (b *RuntimeApplyConfiguration) WithPodSpec(value v1.PodSpec) *RuntimeApplyConfiguration {
|
||||
func (b *RuntimeApplyConfiguration) WithPodSpec(value corev1.PodSpec) *RuntimeApplyConfiguration {
|
||||
b.PodSpec = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// TimeTriggerApplyConfiguration represents a declarative configuration of the TimeTrigger type for use
|
||||
// with apply.
|
||||
type TimeTriggerApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
Spec *TimeTriggerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// TimeTrigger constructs a declarative configuration of the TimeTrigger type for use with
|
||||
@@ -47,7 +47,7 @@ func TimeTrigger(name, namespace string) *TimeTriggerApplyConfiguration {
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApplyConfiguration {
|
||||
b.Kind = &value
|
||||
b.TypeMetaApplyConfiguration.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (b *TimeTriggerApplyConfiguration) WithKind(value string) *TimeTriggerApply
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIVersion field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTriggerApplyConfiguration {
|
||||
b.APIVersion = &value
|
||||
b.TypeMetaApplyConfiguration.APIVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (b *TimeTriggerApplyConfiguration) WithAPIVersion(value string) *TimeTrigge
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.ObjectMetaApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func (b *TimeTriggerApplyConfiguration) WithName(value string) *TimeTriggerApply
|
||||
// If called multiple times, the GenerateName field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.GenerateName = &value
|
||||
b.ObjectMetaApplyConfiguration.GenerateName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (b *TimeTriggerApplyConfiguration) WithGenerateName(value string) *TimeTrig
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Namespace = &value
|
||||
b.ObjectMetaApplyConfiguration.Namespace = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ func (b *TimeTriggerApplyConfiguration) WithNamespace(value string) *TimeTrigger
|
||||
// If called multiple times, the UID field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.UID = &value
|
||||
b.ObjectMetaApplyConfiguration.UID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func (b *TimeTriggerApplyConfiguration) WithUID(value types.UID) *TimeTriggerApp
|
||||
// If called multiple times, the ResourceVersion field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.ResourceVersion = &value
|
||||
b.ObjectMetaApplyConfiguration.ResourceVersion = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -109,25 +109,25 @@ func (b *TimeTriggerApplyConfiguration) WithResourceVersion(value string) *TimeT
|
||||
// If called multiple times, the Generation field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithGeneration(value int64) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.Generation = &value
|
||||
b.ObjectMetaApplyConfiguration.Generation = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TimeTriggerApplyConfiguration {
|
||||
func (b *TimeTriggerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.CreationTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TimeTriggerApplyConfiguration {
|
||||
func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionTimestamp = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ func (b *TimeTriggerApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
|
||||
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
|
||||
func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
b.DeletionGracePeriodSeconds = &value
|
||||
b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ func (b *TimeTriggerApplyConfiguration) WithDeletionGracePeriodSeconds(value int
|
||||
// overwriting an existing map entries in Labels field with the same key.
|
||||
func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Labels == nil && len(entries) > 0 {
|
||||
b.Labels = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Labels[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Labels[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -161,11 +161,11 @@ func (b *TimeTriggerApplyConfiguration) WithLabels(entries map[string]string) *T
|
||||
// overwriting an existing map entries in Annotations field with the same key.
|
||||
func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
if b.Annotations == nil && len(entries) > 0 {
|
||||
b.Annotations = make(map[string]string, len(entries))
|
||||
if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
|
||||
b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Annotations[k] = v
|
||||
b.ObjectMetaApplyConfiguration.Annotations[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -173,13 +173,13 @@ func (b *TimeTriggerApplyConfiguration) WithAnnotations(entries map[string]strin
|
||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||
func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TimeTriggerApplyConfiguration {
|
||||
func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithOwnerReferences")
|
||||
}
|
||||
b.OwnerReferences = append(b.OwnerReferences, *values[i])
|
||||
b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -190,14 +190,14 @@ func (b *TimeTriggerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
|
||||
func (b *TimeTriggerApplyConfiguration) WithFinalizers(values ...string) *TimeTriggerApplyConfiguration {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
for i := range values {
|
||||
b.Finalizers = append(b.Finalizers, values[i])
|
||||
b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *TimeTriggerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||
if b.ObjectMetaApplyConfiguration == nil {
|
||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
||||
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,5 +212,5 @@ func (b *TimeTriggerApplyConfiguration) WithSpec(value *TimeTriggerSpecApplyConf
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *TimeTriggerApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
return b.ObjectMetaApplyConfiguration.Name
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (b *TimeTriggerSpecApplyConfiguration) WithCron(value string) *TimeTriggerS
|
||||
// If called multiple times, the Type field is set to the value of the last call.
|
||||
func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionReferenceType) *TimeTriggerSpecApplyConfiguration {
|
||||
b.ensureFunctionReferenceApplyConfigurationExists()
|
||||
b.Type = &value
|
||||
b.FunctionReferenceApplyConfiguration.Type = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func (b *TimeTriggerSpecApplyConfiguration) WithType(value corev1.FunctionRefere
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerSpecApplyConfiguration {
|
||||
b.ensureFunctionReferenceApplyConfigurationExists()
|
||||
b.Name = &value
|
||||
b.FunctionReferenceApplyConfiguration.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -69,11 +69,11 @@ func (b *TimeTriggerSpecApplyConfiguration) WithName(value string) *TimeTriggerS
|
||||
// overwriting an existing map entries in FunctionWeights field with the same key.
|
||||
func (b *TimeTriggerSpecApplyConfiguration) WithFunctionWeights(entries map[string]int) *TimeTriggerSpecApplyConfiguration {
|
||||
b.ensureFunctionReferenceApplyConfigurationExists()
|
||||
if b.FunctionWeights == nil && len(entries) > 0 {
|
||||
b.FunctionWeights = make(map[string]int, len(entries))
|
||||
if b.FunctionReferenceApplyConfiguration.FunctionWeights == nil && len(entries) > 0 {
|
||||
b.FunctionReferenceApplyConfiguration.FunctionWeights = make(map[string]int, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.FunctionWeights[k] = v
|
||||
b.FunctionReferenceApplyConfiguration.FunctionWeights[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ limitations under the License.
|
||||
package internal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
fmt "fmt"
|
||||
sync "sync"
|
||||
|
||||
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user