forked from openshift/client-go
/
customdeploymentstrategyparams.go
49 lines (42 loc) · 2.23 KB
/
customdeploymentstrategyparams.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/api/core/v1"
)
// CustomDeploymentStrategyParamsApplyConfiguration represents an declarative configuration of the CustomDeploymentStrategyParams type for use
// with apply.
type CustomDeploymentStrategyParamsApplyConfiguration struct {
Image *string `json:"image,omitempty"`
Environment []v1.EnvVar `json:"environment,omitempty"`
Command []string `json:"command,omitempty"`
}
// CustomDeploymentStrategyParamsApplyConfiguration constructs an declarative configuration of the CustomDeploymentStrategyParams type for use with
// apply.
func CustomDeploymentStrategyParams() *CustomDeploymentStrategyParamsApplyConfiguration {
return &CustomDeploymentStrategyParamsApplyConfiguration{}
}
// WithImage sets the Image 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 Image field is set to the value of the last call.
func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithImage(value string) *CustomDeploymentStrategyParamsApplyConfiguration {
b.Image = &value
return b
}
// WithEnvironment adds the given value to the Environment 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 Environment field.
func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithEnvironment(values ...v1.EnvVar) *CustomDeploymentStrategyParamsApplyConfiguration {
for i := range values {
b.Environment = append(b.Environment, values[i])
}
return b
}
// WithCommand adds the given value to the Command 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 Command field.
func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithCommand(values ...string) *CustomDeploymentStrategyParamsApplyConfiguration {
for i := range values {
b.Command = append(b.Command, values[i])
}
return b
}