Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit 2e4cd90

Browse files
author
Matt Nikkel
committed
Add Secret config fields to vSphere cloud provider
1 parent d21f6b7 commit 2e4cd90

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

apis/management.cattle.io/v3/rke_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ type VsphereCloudProvider struct {
573573
type GlobalVsphereOpts struct {
574574
User string `json:"user,omitempty" yaml:"user,omitempty" ini:"user,omitempty"`
575575
Password string `json:"password,omitempty" yaml:"password,omitempty" ini:"password,omitempty" norman:"type=password"`
576+
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty" ini:"secret-name,omitempty"`
577+
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty" ini:"secret-namespace,omitempty"`
576578
VCenterIP string `json:"server,omitempty" yaml:"server,omitempty" ini:"server,omitempty"`
577579
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty" ini:"port,omitempty"`
578580
InsecureFlag bool `json:"insecure-flag,omitempty" yaml:"insecure-flag,omitempty" ini:"insecure-flag,omitempty"`
@@ -588,6 +590,8 @@ type GlobalVsphereOpts struct {
588590
type VirtualCenterConfig struct {
589591
User string `json:"user,omitempty" yaml:"user,omitempty" ini:"user,omitempty"`
590592
Password string `json:"password,omitempty" yaml:"password,omitempty" ini:"password,omitempty" norman:"type=password"`
593+
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty" ini:"secret-name,omitempty"`
594+
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty" ini:"secret-namespace,omitempty"`
591595
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty" ini:"port,omitempty"`
592596
Datacenters string `json:"datacenters,omitempty" yaml:"datacenters,omitempty" ini:"datacenters,omitempty"`
593597
RoundTripperCount int `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty" ini:"soap-roundtrip-count,omitempty"`

client/management/v3/zz_generated_global_vsphere_opts.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const (
88
GlobalVsphereOptsFieldInsecureFlag = "insecure-flag"
99
GlobalVsphereOptsFieldPassword = "password"
1010
GlobalVsphereOptsFieldRoundTripperCount = "soap-roundtrip-count"
11+
GlobalVsphereOptsFieldSecretName = "secret-name"
12+
GlobalVsphereOptsFieldSecretNamespace = "secret-namespace"
1113
GlobalVsphereOptsFieldUser = "user"
1214
GlobalVsphereOptsFieldVCenterIP = "server"
1315
GlobalVsphereOptsFieldVCenterPort = "port"
@@ -23,6 +25,8 @@ type GlobalVsphereOpts struct {
2325
InsecureFlag bool `json:"insecure-flag,omitempty" yaml:"insecure-flag,omitempty"`
2426
Password string `json:"password,omitempty" yaml:"password,omitempty"`
2527
RoundTripperCount int64 `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty"`
28+
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
29+
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
2630
User string `json:"user,omitempty" yaml:"user,omitempty"`
2731
VCenterIP string `json:"server,omitempty" yaml:"server,omitempty"`
2832
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty"`

client/management/v3/zz_generated_virtual_center_config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const (
55
VirtualCenterConfigFieldDatacenters = "datacenters"
66
VirtualCenterConfigFieldPassword = "password"
77
VirtualCenterConfigFieldRoundTripperCount = "soap-roundtrip-count"
8+
VirtualCenterConfigFieldSecretName = "secret-name"
9+
VirtualCenterConfigFieldSecretNamespace = "secret-namespace"
810
VirtualCenterConfigFieldUser = "user"
911
VirtualCenterConfigFieldVCenterPort = "port"
1012
)
@@ -13,6 +15,8 @@ type VirtualCenterConfig struct {
1315
Datacenters string `json:"datacenters,omitempty" yaml:"datacenters,omitempty"`
1416
Password string `json:"password,omitempty" yaml:"password,omitempty"`
1517
RoundTripperCount int64 `json:"soap-roundtrip-count,omitempty" yaml:"soap-roundtrip-count,omitempty"`
18+
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
19+
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
1620
User string `json:"user,omitempty" yaml:"user,omitempty"`
1721
VCenterPort string `json:"port,omitempty" yaml:"port,omitempty"`
1822
}

0 commit comments

Comments
 (0)