Skip to content

Commit

Permalink
Renamed Version to PreferredVersion (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored and mergify[bot] committed Nov 1, 2019
1 parent 445b018 commit 2e861c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/cr/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ type ActionSpec struct {
// Options will be used to specify additional values
// to be used in the Blueprint.
Options map[string]string `json:"options"`
// Version will be used to select the version of Kanister functions
// PreferredVersion will be used to select the preferred version of Kanister functions
// to be executed for this action
Version string `json:"version"`
PreferredVersion string `json:"preferredVersion"`
}

// ActionSetStatus is the status for the actionset. This should only be updated by the controller.
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (c *Controller) runAction(ctx context.Context, as *crv1alpha1.ActionSet, aI
if err != nil {
return err
}
phases, err := kanister.GetPhases(*bp, action.Name, action.Version, *tp)
phases, err := kanister.GetPhases(*bp, action.Name, action.PreferredVersion, *tp)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func NewTestActionSet(namespace, blueprintName, poKind, poName, poNamespace, ver
Name: TestProfileName,
Namespace: namespace,
},
Version: version,
PreferredVersion: version,
},
},
},
Expand Down

0 comments on commit 2e861c4

Please sign in to comment.