Skip to content

Commit 0dd917c

Browse files
committed
Add TenantID in AuthOpts
It allows to use a Tenant from a different Domain than the User (see comment in gophercloud [0]). Required by octavia-operator in [1] [0] https://github.com/gophercloud/gophercloud/blob/849d9ea43b3c0659742ceea3fafb4f0f84b682ec/auth_options.go#L63-L66 [1] openstack-k8s-operators/octavia-operator#478 JIRA: OSPRH-15809
1 parent e9964a1 commit 0dd917c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/openstack/openstack.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type AuthOpts struct {
4747
Username string
4848
Password string
4949
TenantName string
50+
TenantID string
5051
DomainName string
5152
Region string
5253
Scope *gophercloud.AuthScope
@@ -70,6 +71,7 @@ func GetOpenStackProvider(
7071
Username: cfg.Username,
7172
Password: cfg.Password,
7273
TenantName: cfg.TenantName,
74+
TenantID: cfg.TenantID,
7375
DomainName: cfg.DomainName,
7476
}
7577
if cfg.Scope != nil {

0 commit comments

Comments
 (0)