mirror of
https://github.com/rancher/types.git
synced 2025-07-02 00:11:48 +00:00
Merge pull request #368 from rawmind0/master
Renamed ExtraArguments to ExtraArgs at IngressConfig rke types
This commit is contained in:
commit
85220a542b
@ -251,7 +251,7 @@ type IngressConfig struct {
|
||||
// NodeSelector key pair
|
||||
NodeSelector map[string]string `yaml:"node_selector" json:"nodeSelector,omitempty"`
|
||||
// Ingress controller extra arguments
|
||||
ExtraArguments []string `yaml:"extra_arguments" json:"extraArguments,omitempty"`
|
||||
ExtraArgs []string `yaml:"extra_args" json:"extraArgs,omitempty"`
|
||||
}
|
||||
|
||||
type RKEPlan struct {
|
||||
|
@ -3216,8 +3216,8 @@ func (in *IngressConfig) DeepCopyInto(out *IngressConfig) {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
if in.ExtraArguments != nil {
|
||||
in, out := &in.ExtraArguments, &out.ExtraArguments
|
||||
if in.ExtraArgs != nil {
|
||||
in, out := &in.ExtraArgs, &out.ExtraArgs
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
|
@ -1,16 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
IngressConfigType = "ingressConfig"
|
||||
IngressConfigFieldExtraArguments = "extraArguments"
|
||||
IngressConfigFieldNodeSelector = "nodeSelector"
|
||||
IngressConfigFieldOptions = "options"
|
||||
IngressConfigFieldProvider = "provider"
|
||||
IngressConfigType = "ingressConfig"
|
||||
IngressConfigFieldExtraArgs = "extraArgs"
|
||||
IngressConfigFieldNodeSelector = "nodeSelector"
|
||||
IngressConfigFieldOptions = "options"
|
||||
IngressConfigFieldProvider = "provider"
|
||||
)
|
||||
|
||||
type IngressConfig struct {
|
||||
ExtraArguments []string `json:"extraArguments,omitempty" yaml:"extraArguments,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
|
||||
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
|
||||
ExtraArgs []string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
|
||||
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user