Skip to content

Commit 2131e68

Browse files
Merge pull request #438 from kstrenkova/update-for-lib-common
Add Type field to util.Template structs
2 parents a3f78e7 + 2126cf6 commit 2131e68

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

internal/controller/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ func (r *Reconciler) AcquireLock(
545545
{
546546
Name: testOperatorLockName,
547547
Namespace: instance.GetNamespace(),
548+
Type: util.TemplateTypeNone,
548549
CustomData: cm,
549550
},
550551
}
@@ -780,6 +781,7 @@ func EnsureCloudsConfigMapExists(
780781
{
781782
Name: testOperatorCloudsConfigMapName,
782783
Namespace: instance.GetNamespace(),
784+
Type: util.TemplateTypeNone,
783785
Labels: labels,
784786
CustomData: map[string]string{
785787
"clouds.yaml": string(yamlString),

internal/controller/tempest_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ func (r *TempestReconciler) generateServiceConfigMaps(
325325
{
326326
Name: GetCustomDataConfigMapName(instance, workflowStepIndex),
327327
Namespace: instance.Namespace,
328+
Type: util.TemplateTypeNone,
328329
InstanceType: instance.Kind,
329330
Labels: cmLabels,
330331
ConfigOptions: templateParameters,
@@ -334,6 +335,7 @@ func (r *TempestReconciler) generateServiceConfigMaps(
334335
{
335336
Name: GetEnvVarsConfigMapName(instance, workflowStepIndex),
336337
Namespace: instance.Namespace,
338+
Type: util.TemplateTypeNone,
337339
InstanceType: instance.Kind,
338340
Labels: cmLabels,
339341
ConfigOptions: templateParameters,

internal/controller/tobiko_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func (r *TobikoReconciler) generateServiceConfigMaps(
201201
cms = append(cms, util.Template{
202202
Name: tobiko.GetConfigMapName(instance, spec.infix, workflowStepIndex),
203203
Namespace: instance.Namespace,
204+
Type: util.TemplateTypeNone,
204205
InstanceType: instance.Kind,
205206
Labels: labels,
206207
CustomData: map[string]string{spec.key: spec.value},

0 commit comments

Comments
 (0)