Skip to content

Commit

Permalink
fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Wadhwa committed Aug 29, 2018
2 parents 9229993 + 939e6cf commit 8747bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/deploy/kubectl/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (c *CLI) Apply(ctx context.Context, out io.Writer, manifests ManifestList)
buf := bytes.NewBuffer([]byte{})
writer := bufio.NewWriter(buf)
if err := c.Run(ctx, manifests.Reader(), writer, "apply", c.Flags.Apply, "-f", "-"); err != nil {
if !strings.Contains(string(buf.Bytes()), "field is immutable") {
if !strings.Contains(buf.String(), "field is immutable") {
return nil, err
}
// If the output contains the string 'field is immutable', we want to delete the object and recreate it
Expand Down

0 comments on commit 8747bf9

Please sign in to comment.