Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
weinimo committed Mar 5, 2024
1 parent 66c7fba commit 3a6fa0c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ rules:
- mariadbaccounts/finalizers
verbs:
- update
- apiGroups:
- mariadb.openstack.org
resources:
- mariadbaccounts/finalizers
verbs:
- update
- apiGroups:
- mariadb.openstack.org
resources:
Expand Down
2 changes: 1 addition & 1 deletion pkg/octavia/initcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func InitContainer(init APIDetails) []corev1.Container {

envVars := map[string]env.Setter{}
envVars["DatabaseHost"] = env.SetValue(init.DatabaseHost)
envVars["DatabaseUser"] = env.SetValue(init.DatabaseAccount)
envVars["DatabaseAccount"] = env.SetValue(init.DatabaseAccount)
envVars["DatabaseName"] = env.SetValue(init.DatabaseName)

envs := []corev1.EnvVar{
Expand Down
2 changes: 1 addition & 1 deletion templates/octavia/bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -ex
# Secrets are obtained from ENV variables.
export PASSWORD=${AdminPassword:?"Please specify a AdminPassword variable."}
export DBHOST=${DatabaseHost:?"Please specify a DatabaseHost variable."}
export DBUSER=${DatabaseUser:?"Please specify a DatabaseUser variable."}
export DBUSER=${DatabaseAccount:?"Please specify a DatabaseAccount variable."}
export DBPASSWORD=${DatabasePassword:?"Please specify a DatabasePassword variable."}
export DB=${DatabaseName:-"octavia"}
export TRANSPORTURL=${TransportURL:-""}
Expand Down
2 changes: 1 addition & 1 deletion templates/octaviaamphoracontroller/bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -ex
# Secrets are obtained from ENV variables.
export PASSWORD=${AdminPassword:?"Please specify a AdminPassword variable."}
export DBHOST=${DatabaseHost:?"Please specify a DatabaseHost variable."}
export DBUSER=${DatabaseUser:?"Please specify a DatabaseUser variable."}
export DBUSER=${DatabaseAccount:?"Please specify a DatabaseAccount variable."}
export DBPASSWORD=${DatabasePassword:?"Please specify a DatabasePassword variable."}
export DB=${DatabaseName:-"octavia"}
export TRANSPORTURL=${TransportURL:-""}
Expand Down

0 comments on commit 3a6fa0c

Please sign in to comment.