Skip to content

Commit

Permalink
Merge pull request #375 from fmount/defaultconfigoverwrite
Browse files Browse the repository at this point in the history
Remove DefaultConfigOverwrite from CRD
  • Loading branch information
openshift-merge-bot[bot] authored Nov 29, 2023
2 parents fe2050e + f386c18 commit 0b292f3
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 56 deletions.
4 changes: 0 additions & 4 deletions api/bases/glance.openstack.org_glanceapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
extraMounts:
items:
properties:
Expand Down
8 changes: 0 additions & 8 deletions api/bases/glance.openstack.org_glances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
extraMounts:
items:
properties:
Expand Down Expand Up @@ -834,10 +830,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
networkAttachments:
items:
type: string
Expand Down
6 changes: 0 additions & 6 deletions api/v1beta1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ type GlanceAPITemplate struct {
// to /etc/<service>/<service>.conf.d directory as custom.conf file.
CustomServiceConfig string `json:"customServiceConfig,omitempty"`

// +kubebuilder:validation:Optional
// ConfigOverwrite - interface to overwrite default config files like e.g. logging.conf or policy.json.
// But can also be used to add additional files. Those get added to the service config dir in /etc/<service> .
// TODO: -> implement
DefaultConfigOverwrite map[string]string `json:"defaultConfigOverwrite,omitempty"`

// +kubebuilder:validation:Optional
// CustomServiceConfigSecrets - customize the service config using this parameter to specify Secrets
// that contain sensitive service config data. The content of each Secret gets added to the
Expand Down
6 changes: 0 additions & 6 deletions api/v1beta1/glance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ type GlanceSpec struct {
// to /etc/<service>/<service>.conf.d directory as custom.conf file.
CustomServiceConfig string `json:"customServiceConfig,omitempty"`

// +kubebuilder:validation:Optional
// ConfigOverwrite - interface to overwrite default config files like e.g. logging.conf or policy.json.
// But can also be used to add additional files. Those get added to the service config dir in /etc/<service> .
// TODO: -> implement
DefaultConfigOverwrite map[string]string `json:"defaultConfigOverwrite,omitempty"`

// +kubebuilder:validation:Optional
// CustomServiceConfigSecrets - customize the service config using this parameter to specify Secrets
// that contain sensitive service config data. The content of each Secret gets added to the
Expand Down
14 changes: 0 additions & 14 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions config/crd/bases/glance.openstack.org_glanceapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
extraMounts:
items:
properties:
Expand Down
8 changes: 0 additions & 8 deletions config/crd/bases/glance.openstack.org_glances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
extraMounts:
items:
properties:
Expand Down Expand Up @@ -834,10 +830,6 @@ spec:
default: false
type: boolean
type: object
defaultConfigOverwrite:
additionalProperties:
type: string
type: object
networkAttachments:
items:
type: string
Expand Down
3 changes: 0 additions & 3 deletions controllers/glance_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,6 @@ func (r *GlanceReconciler) generateServiceConfig(

customData := map[string]string{glance.CustomConfigFileName: instance.Spec.CustomServiceConfig}

for key, data := range instance.Spec.DefaultConfigOverwrite {
customData[key] = data
}
// Generate both default 00-config.conf and -scripts
return GenerateConfigsGeneric(ctx, h, instance, envVars, templateParameters, customData, labels, true)

Expand Down
3 changes: 0 additions & 3 deletions controllers/glanceapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,6 @@ func (r *GlanceAPIReconciler) generateServiceConfig(

// 02-config.conf
customData := map[string]string{glance.CustomServiceConfigFileName: instance.Spec.CustomServiceConfig}
for key, data := range instance.Spec.DefaultConfigOverwrite {
customData[key] = data
}

// 03-config.conf
customSecrets := ""
Expand Down

0 comments on commit 0b292f3

Please sign in to comment.