You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Complete the load balancer config applying defaults / overrides.
128
+
func (c*LoadBalancerConfig) Complete() {
129
+
ifc.Disabled {
130
+
return
131
+
}
132
+
iflen(c.SecurityListManagementMode) ==0 {
133
+
ifc.DisableSecurityListManagement {
124
134
zap.S().Warnf("cloud-provider config: \"loadBalancer.disableSecurityListManagement\" is DEPRECATED and will be removed in a later release. Please set \"loadBalancer.SecurityListManagementMode: %s\".", ManagementModeNone)
zap.S().Warn("cloud-provider config: \"auth.key_passphrase\" is DEPRECATED and will be removed in a later release. Please set \"auth.passphrase\".")
137
-
c.Auth.Passphrase=c.Auth.PrivateKeyPassphrase
175
+
ifc.Auth.UseInstancePrincipals {
176
+
zap.S().Warn("cloud-provider config: \"auth.useInstancePrincipals\" is DEPRECATED and will be removed in a later release. Please set \"useInstancePrincipals\".")
177
+
c.UseInstancePrincipals=true
138
178
}
139
179
140
-
ifc.Auth.UseInstancePrincipals==true {
141
-
zap.S().Warn("cloud-provider config: \"auth.useInstancePrincipals\" is DEPRECATED and will be removed in a later release. Please set \"auth.useInstancePrincipals\".")
142
-
c.UseInstancePrincipals=true
180
+
iflen(c.RegionKey) ==0 {
181
+
iflen(c.Auth.RegionKey) >0 {
182
+
zap.S().Warn("cloud-provider config: \"auth.RegionKey\" is DEPRECATED and will be removed in a later release. Please set \"RegionKey\".")
183
+
c.RegionKey=c.Auth.RegionKey
184
+
} else {
185
+
meta, err:=c.metadataSvc.Get()
186
+
iferr!=nil {
187
+
zap.S().Warn("cloud-provider config: Unable to access metadata on instance. Will not be able to complete configuration if items are missing")
0 commit comments