Skip to content

Commit 760e9c4

Browse files
committed
Fix CustomServiceConfig barbican configuration
Signed-off-by: Veronika Fisarova <[email protected]>
1 parent e1b6b7c commit 760e9c4

14 files changed

+32
-38
lines changed

api/bases/barbican.openstack.org_barbicanapis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ spec:
4343
description: CustomServiceConfig - customize the service config using
4444
this parameter to change service defaults, or overwrite rendered
4545
information using raw OpenStack config format. The content gets
46-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
47-
file.
46+
added to to /etc/<service>/<service>.conf.d directory as a custom
47+
config file.
4848
type: string
4949
customServiceConfigSecrets:
5050
description: CustomServiceConfigSecrets - customize the service config

api/bases/barbican.openstack.org_barbicankeystonelisteners.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ spec:
4545
description: CustomServiceConfig - customize the service config using
4646
this parameter to change service defaults, or overwrite rendered
4747
information using raw OpenStack config format. The content gets
48-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
49-
file.
48+
added to to /etc/<service>/<service>.conf.d directory as a custom
49+
config file.
5050
type: string
5151
customServiceConfigSecrets:
5252
description: CustomServiceConfigSecrets - customize the service config

api/bases/barbican.openstack.org_barbicanworkers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ spec:
4343
description: CustomServiceConfig - customize the service config using
4444
this parameter to change service defaults, or overwrite rendered
4545
information using raw OpenStack config format. The content gets
46-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
47-
file.
46+
added to to /etc/<service>/<service>.conf.d directory as a custom
47+
config file.
4848
type: string
4949
customServiceConfigSecrets:
5050
description: CustomServiceConfigSecrets - customize the service config

api/v1beta1/common_types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ type BarbicanTemplate struct {
4646
// PasswordSelectors - Selectors to identify the ServiceUser password from the Secret
4747
PasswordSelectors PasswordSelector `json:"passwordSelectors"`
4848

49-
// +kubebuilder:validation:Optional
50-
// CustomServiceConfig - customize the service config using this parameter to change service defaults,
51-
// or overwrite rendered information using raw OpenStack config format. The content gets added to
52-
// to /etc/<service>/<service>.conf.d directory as custom.conf file.
53-
CustomServiceConfig string `json:"customServiceConfig,omitempty"`
54-
5549
// +kubebuilder:validation:Required
5650
// ServiceAccount - service account name used internally to provide Barbican services the default SA name
5751
ServiceAccount string `json:"serviceAccount"`

config/crd/bases/barbican.openstack.org_barbicanapis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ spec:
4343
description: CustomServiceConfig - customize the service config using
4444
this parameter to change service defaults, or overwrite rendered
4545
information using raw OpenStack config format. The content gets
46-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
47-
file.
46+
added to to /etc/<service>/<service>.conf.d directory as a custom
47+
config file.
4848
type: string
4949
customServiceConfigSecrets:
5050
description: CustomServiceConfigSecrets - customize the service config

config/crd/bases/barbican.openstack.org_barbicankeystonelisteners.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ spec:
4545
description: CustomServiceConfig - customize the service config using
4646
this parameter to change service defaults, or overwrite rendered
4747
information using raw OpenStack config format. The content gets
48-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
49-
file.
48+
added to to /etc/<service>/<service>.conf.d directory as a custom
49+
config file.
5050
type: string
5151
customServiceConfigSecrets:
5252
description: CustomServiceConfigSecrets - customize the service config

config/crd/bases/barbican.openstack.org_barbicanworkers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ spec:
4343
description: CustomServiceConfig - customize the service config using
4444
this parameter to change service defaults, or overwrite rendered
4545
information using raw OpenStack config format. The content gets
46-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
47-
file.
46+
added to to /etc/<service>/<service>.conf.d directory as a custom
47+
config file.
4848
type: string
4949
customServiceConfigSecrets:
5050
description: CustomServiceConfigSecrets - customize the service config

controllers/barbicanapi_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ func (r *BarbicanAPIReconciler) generateServiceConfigs(
271271
}
272272
// customData hold any customization for the service.
273273
customData := map[string]string{
274-
common.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
275-
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
274+
barbican.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
275+
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
276276
}
277277

278278
for key, data := range instance.Spec.DefaultConfigOverwrite {

controllers/barbicankeystonelistener_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ func (r *BarbicanKeystoneListenerReconciler) generateServiceConfigs(
252252
}
253253
// customData hold any customization for the service.
254254
customData := map[string]string{
255-
common.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
256-
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
255+
barbican.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
256+
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
257257
}
258258
Log.Info(fmt.Sprintf("[KeystoneListener] instance type %s", instance.GetObjectKind().GroupVersionKind().Kind))
259259

controllers/barbicanworker_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ func (r *BarbicanWorkerReconciler) generateServiceConfigs(
241241
}
242242
// customData hold any customization for the service.
243243
customData := map[string]string{
244-
common.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
245-
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
244+
barbican.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig,
245+
"my.cnf": db.GetDatabaseClientConfig(tlsCfg), //(mschuppert) for now just get the default my.cnf
246246
}
247247

248248
Log.Info(fmt.Sprintf("[Worker] instance type %s", instance.GetObjectKind().GroupVersionKind().Kind))

0 commit comments

Comments
 (0)