1
0
mirror of https://github.com/rancher/types.git synced 2025-08-28 08:40:31 +00:00

Generate files: Add Secret config fields to vSphere cloud provider

This commit is contained in:
Matt Nikkel 2020-09-04 11:23:39 -04:00
parent ba9a11d38e
commit 035ec1ad0b
No known key found for this signature in database
GPG Key ID: AF0313955775A84D
2 changed files with 8 additions and 0 deletions

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"`
}