1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 20:55:00 +00:00
This commit is contained in:
Matt Nikkel 2020-09-04 08:35:36 -07:00 committed by GitHub
commit 2f10bcd6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -573,6 +573,8 @@ type VsphereCloudProvider struct {
type GlobalVsphereOpts struct {
User string `json:"user,omitempty" yaml:"user,omitempty" ini:"user,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty" ini:"password,omitempty" norman:"type=password"`
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty" ini:"secret-name,omitempty"`
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty" ini:"secret-namespace,omitempty"`
VCenterIP string `json:"server,omitempty" yaml:"server,omitempty" ini:"server,omitempty"`
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty" ini:"port,omitempty"`
InsecureFlag bool `json:"insecure-flag,omitempty" yaml:"insecure-flag,omitempty" ini:"insecure-flag,omitempty"`
@ -588,6 +590,8 @@ type GlobalVsphereOpts struct {
type VirtualCenterConfig struct {
User string `json:"user,omitempty" yaml:"user,omitempty" ini:"user,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty" ini:"password,omitempty" norman:"type=password"`
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty" ini:"secret-name,omitempty"`
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty" ini:"secret-namespace,omitempty"`
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty" ini:"port,omitempty"`
Datacenters string `json:"datacenters,omitempty" yaml:"datacenters,omitempty" ini:"datacenters,omitempty"`
RoundTripperCount int `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty" ini:"soap-roundtrip-count,omitempty"`

View File

@ -8,6 +8,8 @@ const (
GlobalVsphereOptsFieldInsecureFlag = "insecure-flag"
GlobalVsphereOptsFieldPassword = "password"
GlobalVsphereOptsFieldRoundTripperCount = "soap-roundtrip-count"
GlobalVsphereOptsFieldSecretName = "secret-name"
GlobalVsphereOptsFieldSecretNamespace = "secret-namespace"
GlobalVsphereOptsFieldUser = "user"
GlobalVsphereOptsFieldVCenterIP = "server"
GlobalVsphereOptsFieldVCenterPort = "port"
@ -23,6 +25,8 @@ type GlobalVsphereOpts struct {
InsecureFlag bool `json:"insecure-flag,omitempty" yaml:"insecure-flag,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty"`
RoundTripperCount int64 `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty"`
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
VCenterIP string `json:"server,omitempty" yaml:"server,omitempty"`
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty"`

View File

@ -5,6 +5,8 @@ const (
VirtualCenterConfigFieldDatacenters = "datacenters"
VirtualCenterConfigFieldPassword = "password"
VirtualCenterConfigFieldRoundTripperCount = "soap-roundtrip-count"
VirtualCenterConfigFieldSecretName = "secret-name"
VirtualCenterConfigFieldSecretNamespace = "secret-namespace"
VirtualCenterConfigFieldUser = "user"
VirtualCenterConfigFieldVCenterPort = "port"
)
@ -13,6 +15,8 @@ type VirtualCenterConfig struct {
Datacenters string `json:"datacenters,omitempty" yaml:"datacenters,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty"`
RoundTripperCount int64 `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty"`
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty"`
}