Skip to content

Commit 5a6ca97

Browse files
authored
Allow auth-url to partially depend on applicationCredentialSecret (kubernetes#1185)
Without this fix, authentication using application credential fails since the validator checks for presence of os-password and os-trustID.
1 parent 601106f commit 5a6ca97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloudprovider/providers/openstack/openstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ type OpenStack struct {
187187
}
188188

189189
type AuthOpts struct {
190-
AuthURL string `gcfg:"auth-url" mapstructure:"auth-url" name:"os-authURL" dependsOn:"os-password|os-trustID"`
190+
AuthURL string `gcfg:"auth-url" mapstructure:"auth-url" name:"os-authURL" dependsOn:"os-password|os-trustID|os-applicationCredentialSecret"`
191191
UserID string `gcfg:"user-id" mapstructure:"user-id" name:"os-userID" value:"optional" dependsOn:"os-password"`
192192
Username string `name:"os-userName" value:"optional" dependsOn:"os-password"`
193193
Password string `name:"os-password" value:"optional" dependsOn:"os-domainID|os-domainName,os-projectID|os-projectName,os-userID|os-userName"`

0 commit comments

Comments
 (0)