Skip to content

Commit b7a77ac

Browse files
Merge pull request #182 from Deydra71/fix-custom-config
Fix CustomServiceConfig barbican configuration
2 parents eebfdec + 760e9c4 commit b7a77ac

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
@@ -52,8 +52,8 @@ spec:
5252
description: CustomServiceConfig - customize the service config using
5353
this parameter to change service defaults, or overwrite rendered
5454
information using raw OpenStack config format. The content gets
55-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
56-
file.
55+
added to to /etc/<service>/<service>.conf.d directory as a custom
56+
config file.
5757
type: string
5858
customServiceConfigSecrets:
5959
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
@@ -54,8 +54,8 @@ spec:
5454
description: CustomServiceConfig - customize the service config using
5555
this parameter to change service defaults, or overwrite rendered
5656
information using raw OpenStack config format. The content gets
57-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
58-
file.
57+
added to to /etc/<service>/<service>.conf.d directory as a custom
58+
config file.
5959
type: string
6060
customServiceConfigSecrets:
6161
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
@@ -52,8 +52,8 @@ spec:
5252
description: CustomServiceConfig - customize the service config using
5353
this parameter to change service defaults, or overwrite rendered
5454
information using raw OpenStack config format. The content gets
55-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
56-
file.
55+
added to to /etc/<service>/<service>.conf.d directory as a custom
56+
config file.
5757
type: string
5858
customServiceConfigSecrets:
5959
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
@@ -52,8 +52,8 @@ spec:
5252
description: CustomServiceConfig - customize the service config using
5353
this parameter to change service defaults, or overwrite rendered
5454
information using raw OpenStack config format. The content gets
55-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
56-
file.
55+
added to to /etc/<service>/<service>.conf.d directory as a custom
56+
config file.
5757
type: string
5858
customServiceConfigSecrets:
5959
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
@@ -54,8 +54,8 @@ spec:
5454
description: CustomServiceConfig - customize the service config using
5555
this parameter to change service defaults, or overwrite rendered
5656
information using raw OpenStack config format. The content gets
57-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
58-
file.
57+
added to to /etc/<service>/<service>.conf.d directory as a custom
58+
config file.
5959
type: string
6060
customServiceConfigSecrets:
6161
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
@@ -52,8 +52,8 @@ spec:
5252
description: CustomServiceConfig - customize the service config using
5353
this parameter to change service defaults, or overwrite rendered
5454
information using raw OpenStack config format. The content gets
55-
added to to /etc/<service>/<service>.conf.d directory as custom.conf
56-
file.
55+
added to to /etc/<service>/<service>.conf.d directory as a custom
56+
config file.
5757
type: string
5858
customServiceConfigSecrets:
5959
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)