File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ var UpFlagsDefault = &UpCmdFlags{
6262 initRegistry : true ,
6363 build : true ,
6464 sync : true ,
65- deploy : true ,
65+ deploy : false ,
6666 portforwarding : true ,
6767 noSleep : false ,
6868}
@@ -146,8 +146,10 @@ func (cmd *UpCmd) Run(cobraCmd *cobra.Command, args []string) {
146146 log .Fatalf ("Unable to create new kubectl client: %s" , err .Error ())
147147 }
148148
149+ var shouldRebuild bool
150+
149151 if cmd .flags .build {
150- shouldRebuild : = cmd .shouldRebuild (cobraCmd .Flags ().Changed ("build" ))
152+ shouldRebuild = cmd .shouldRebuild (cobraCmd .Flags ().Changed ("build" ))
151153
152154 if shouldRebuild {
153155 cmd .buildImage ()
@@ -164,7 +166,7 @@ func (cmd *UpCmd) Run(cobraCmd *cobra.Command, args []string) {
164166 }
165167 }
166168
167- if cmd .flags .deploy {
169+ if cmd .flags .deploy || shouldRebuild {
168170 cmd .deployChart ()
169171 } else {
170172 cmd .initHelm ()
You can’t perform that action at this time.
0 commit comments