Skip to content

Commit

Permalink
Merge pull request #182 from jlarriba/fix_conf
Browse files Browse the repository at this point in the history
Fix the controller creation of two different sets of config-data
  • Loading branch information
jlarriba authored Sep 14, 2023
2 parents 689a640 + 13a1d64 commit 2540bab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/ceilometer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (r *CeilometerReconciler) generateServiceConfigMaps(
Name: fmt.Sprintf("%s-scripts", ceilometer.ServiceName),
Namespace: instance.Namespace,
Type: util.TemplateTypeScripts,
InstanceType: instance.Kind,
InstanceType: "ceilometercentral",
AdditionalTemplate: map[string]string{"common.sh": "/common/common.sh"},
Labels: cmLabels,
},
Expand All @@ -508,7 +508,7 @@ func (r *CeilometerReconciler) generateServiceConfigMaps(
Name: fmt.Sprintf("%s-config-data", ceilometer.ServiceName),
Namespace: instance.Namespace,
Type: util.TemplateTypeConfig,
InstanceType: instance.Kind,
InstanceType: "ceilometercentral",
CustomData: customData,
ConfigOptions: templateParameters,
Labels: cmLabels,
Expand Down Expand Up @@ -553,7 +553,7 @@ func (r *CeilometerReconciler) generateComputeServiceConfigMaps(
Name: fmt.Sprintf("%s-scripts", ceilometer.ComputeServiceName),
Namespace: instance.Namespace,
Type: util.TemplateTypeScripts,
InstanceType: instance.Kind,
InstanceType: "ceilometercompute",
AdditionalTemplate: map[string]string{"common.sh": "/common/common.sh"},
Labels: cmLabels,
},
Expand All @@ -562,7 +562,7 @@ func (r *CeilometerReconciler) generateComputeServiceConfigMaps(
Name: fmt.Sprintf("%s-config-data", ceilometer.ComputeServiceName),
Namespace: instance.Namespace,
Type: util.TemplateTypeConfig,
InstanceType: instance.Kind,
InstanceType: "ceilometercompute",
CustomData: customData,
ConfigOptions: templateParameters,
Labels: cmLabels,
Expand Down

0 comments on commit 2540bab

Please sign in to comment.