Skip to content

Commit

Permalink
Merge pull request #93 from onepanelio/feat/rename.dev
Browse files Browse the repository at this point in the history
feat: rename dev to latest
  • Loading branch information
Vafilor authored Jan 12, 2021
2 parents d83fdb1 + 2b67227 commit 07ff446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ var applyCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(applyCmd)
applyCmd.Flags().BoolVarP(&Dev, "dev", "", false, "Sets conditions to allow development testing.")
applyCmd.Flags().BoolVarP(&Dev, "latest", "", false, "Sets conditions to allow development/latest testing.")
}

func getPodInfo(podName string, podNamespace string) (res string, errMessage string, err error) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ func GenerateKustomizeResult(config opConfig.Config, kustomizeTemplate template.
coreUiImageTag := opConfig.CoreUIImageTag
coreUiImagePullPolicy := "IfNotPresent"
if Dev {
coreImageTag = "dev"
coreImageTag = "latest"
coreImagePullPolicy = "Always"
coreUiImageTag = "dev"
coreUiImageTag = "latest"
coreUiImagePullPolicy = "Always"
}
yamlFile.PutWithSeparator("applicationCoreImageTag", coreImageTag, ".")
Expand Down

0 comments on commit 07ff446

Please sign in to comment.