Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 1a1db15

Browse files
author
Ian Campbell
committed
Rename parameterOperation to mergeBundleOpt
... to better reflect where they are used. Signed-off-by: Ian Campbell <[email protected]>
1 parent e93616c commit 1a1db15

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/commands/parameters.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"github.com/pkg/errors"
1212
)
1313

14-
type parameterOperation func(bndl *bundle.Bundle, params map[string]string) error
14+
type mergeBundleOpt func(bndl *bundle.Bundle, params map[string]string) error
1515

16-
func withFileParameters(parametersFiles []string) parameterOperation {
16+
func withFileParameters(parametersFiles []string) mergeBundleOpt {
1717
return func(bndl *bundle.Bundle, params map[string]string) error {
1818
p, err := parameters.LoadFiles(parametersFiles)
1919
if err != nil {
@@ -26,7 +26,7 @@ func withFileParameters(parametersFiles []string) parameterOperation {
2626
}
2727
}
2828

29-
func withCommandLineParameters(overrides []string) parameterOperation {
29+
func withCommandLineParameters(overrides []string) mergeBundleOpt {
3030
return func(bndl *bundle.Bundle, params map[string]string) error {
3131
d := cliopts.ConvertKVStringsToMap(overrides)
3232
for k, v := range d {
@@ -36,7 +36,7 @@ func withCommandLineParameters(overrides []string) parameterOperation {
3636
}
3737
}
3838

39-
func withSendRegistryAuth(sendRegistryAuth bool) parameterOperation {
39+
func withSendRegistryAuth(sendRegistryAuth bool) mergeBundleOpt {
4040
return func(bndl *bundle.Bundle, params map[string]string) error {
4141
if _, ok := bndl.Parameters[internal.ParameterShareRegistryCredsName]; ok {
4242
val := "false"
@@ -49,7 +49,7 @@ func withSendRegistryAuth(sendRegistryAuth bool) parameterOperation {
4949
}
5050
}
5151

52-
func withOrchestratorParameters(orchestrator string, kubeNamespace string) parameterOperation {
52+
func withOrchestratorParameters(orchestrator string, kubeNamespace string) mergeBundleOpt {
5353
return func(bndl *bundle.Bundle, params map[string]string) error {
5454
if _, ok := bndl.Parameters[internal.ParameterOrchestratorName]; ok {
5555
params[internal.ParameterOrchestratorName] = orchestrator
@@ -61,7 +61,7 @@ func withOrchestratorParameters(orchestrator string, kubeNamespace string) param
6161
}
6262
}
6363

64-
func mergeBundleParameters(c *claim.Claim, ops ...parameterOperation) error {
64+
func mergeBundleParameters(c *claim.Claim, ops ...mergeBundleOpt) error {
6565
bndl := c.Bundle
6666
if c.Parameters == nil {
6767
c.Parameters = make(map[string]interface{})

0 commit comments

Comments
 (0)