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

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2025-01-06 23:27:26 +05:30
committed by GitHub
parent 96b07bf9a8
commit 54b67b5171
64 changed files with 1782 additions and 2205 deletions
@@ -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
}