Skip to content

Commit 045b2ec

Browse files
Merge pull request openstack-k8s-operators#371 from zzzeek/integrate_oo_accounts
migrate from databaseUsername to databaseAccount and fully use MariaDBAccount
2 parents b5c254f + 011bf37 commit 045b2ec

15 files changed

+352
-264
lines changed

api/bases/keystone.openstack.org_keystoneapis.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,16 @@ spec:
6666
added to to /etc/<service>/<service>.conf.d directory as custom.conf
6767
file.
6868
type: string
69+
databaseAccount:
70+
default: keystone
71+
description: DatabaseAccount - name of MariaDBAccount which will be
72+
used to connect.
73+
type: string
6974
databaseInstance:
7075
description: MariaDB instance name Right now required by the maridb-operator
7176
to get the credentials from the instance to create the DB Might
7277
not be required in future
7378
type: string
74-
databaseUser:
75-
default: keystone
76-
description: 'DatabaseUser - optional username used for keystone DB,
77-
defaults to keystone TODO: -> implement needs work in mariadb-operator,
78-
right now only keystone'
79-
type: string
8079
defaultConfigOverwrite:
8180
additionalProperties:
8281
type: string
@@ -283,7 +282,6 @@ spec:
283282
passwordSelectors:
284283
default:
285284
admin: AdminPassword
286-
database: KeystoneDatabasePassword
287285
description: PasswordSelectors - Selectors to identify the DB and
288286
AdminUser password from the Secret
289287
properties:
@@ -292,12 +290,6 @@ spec:
292290
description: Admin - Selector to get the keystone Admin password
293291
from the Secret
294292
type: string
295-
database:
296-
default: KeystoneDatabasePassword
297-
description: 'Database - Selector to get the keystone Database
298-
user password from the Secret TODO: not used, need change in
299-
mariadb-operator'
300-
type: string
301293
type: object
302294
preserveJobs:
303295
default: false
@@ -371,7 +363,7 @@ spec:
371363
type: object
372364
secret:
373365
description: Secret containing OpenStack password information for
374-
keystone KeystoneDatabasePassword, AdminPassword
366+
keystone AdminPassword
375367
type: string
376368
tls:
377369
description: TLS - Parameters related to the TLS

api/go.mod

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/go-logr/logr v1.4.1
77
github.com/google/uuid v1.6.0
88
github.com/gophercloud/gophercloud v1.9.0
9-
github.com/onsi/gomega v1.30.0
9+
github.com/onsi/gomega v1.31.1
1010
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240216173409-86913e6d5885
1111
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240216173409-86913e6d5885
1212
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240216173409-86913e6d5885
@@ -20,12 +20,13 @@ require (
2020
github.com/beorn7/perks v1.0.1 // indirect
2121
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2222
github.com/davecgh/go-spew v1.1.1 // indirect
23-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
24-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
25-
github.com/fsnotify/fsnotify v1.6.0 // indirect
26-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
27-
github.com/go-openapi/jsonreference v0.20.2 // indirect
28-
github.com/go-openapi/swag v0.22.3 // indirect
23+
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
24+
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
25+
github.com/fsnotify/fsnotify v1.7.0 // indirect
26+
github.com/go-logr/zapr v1.3.0 // indirect
27+
github.com/go-openapi/jsonpointer v0.20.2 // indirect
28+
github.com/go-openapi/jsonreference v0.20.4 // indirect
29+
github.com/go-openapi/swag v0.22.9 // indirect
2930
github.com/gogo/protobuf v1.3.2 // indirect
3031
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3132
github.com/golang/protobuf v1.5.3 // indirect
@@ -37,34 +38,33 @@ require (
3738
github.com/json-iterator/go v1.1.12 // indirect
3839
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.4.0 // indirect
3940
github.com/mailru/easyjson v0.7.7 // indirect
40-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
4141
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4242
github.com/modern-go/reflect2 v1.0.2 // indirect
4343
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4444
github.com/openshift/api v3.9.0+incompatible // indirect
4545
github.com/pkg/errors v0.9.1 // indirect
46-
github.com/prometheus/client_golang v1.16.0 // indirect
47-
github.com/prometheus/client_model v0.4.0 // indirect
48-
github.com/prometheus/common v0.44.0 // indirect
49-
github.com/prometheus/procfs v0.10.1 // indirect
46+
github.com/prometheus/client_golang v1.18.0 // indirect
47+
github.com/prometheus/client_model v0.5.0 // indirect
48+
github.com/prometheus/common v0.46.0 // indirect
49+
github.com/prometheus/procfs v0.12.0 // indirect
5050
github.com/spf13/pflag v1.0.5 // indirect
5151
golang.org/x/net v0.21.0 // indirect
52-
golang.org/x/oauth2 v0.8.0 // indirect
52+
golang.org/x/oauth2 v0.16.0 // indirect
5353
golang.org/x/sys v0.17.0 // indirect
5454
golang.org/x/term v0.17.0 // indirect
5555
golang.org/x/text v0.14.0 // indirect
56-
golang.org/x/time v0.3.0 // indirect
56+
golang.org/x/time v0.5.0 // indirect
5757
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
58-
google.golang.org/appengine v1.6.7 // indirect
59-
google.golang.org/protobuf v1.31.0 // indirect
58+
google.golang.org/appengine v1.6.8 // indirect
59+
google.golang.org/protobuf v1.32.0 // indirect
6060
gopkg.in/inf.v0 v0.9.1 // indirect
6161
gopkg.in/yaml.v2 v2.4.0 // indirect
6262
gopkg.in/yaml.v3 v3.0.1 // indirect
6363
k8s.io/apiextensions-apiserver v0.28.3 // indirect
6464
k8s.io/client-go v0.28.3 // indirect
6565
k8s.io/component-base v0.28.3 // indirect
66-
k8s.io/klog/v2 v2.110.1 // indirect
67-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
66+
k8s.io/klog/v2 v2.120.1 // indirect
67+
k8s.io/kube-openapi v0.0.0-20240126223410-2919ad4fcfec // indirect
6868
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
6969
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
7070
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect

0 commit comments

Comments
 (0)