Skip to content

Commit 729ec03

Browse files
authored
fix installer owning name (istio#44928)
1 parent 3f29616 commit 729ec03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/cmd/mesh/install.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ func Install(rootArgs *RootArgs, iArgs *InstallArgs, logOpts *log.Options, stdOu
199199
return fmt.Errorf("could not configure logs: %s", err)
200200
}
201201

202+
iop.Name = savedIOPName(iop)
203+
202204
// Detect whether previous installation exists prior to performing the installation.
203205
exists := revtag.PreviousInstallExists(context.Background(), kubeClient.Kube())
204206
rev := iop.Spec.Revision
@@ -302,7 +304,6 @@ func InstallManifests(iop *v1alpha12.IstioOperator, force bool, dryRun bool, kub
302304
opts.ProgressLog.SetState(progress.StateComplete)
303305

304306
// Save a copy of what was installed as a CR in the cluster under an internal name.
305-
iop.Name = savedIOPName(iop)
306307
if iop.Annotations == nil {
307308
iop.Annotations = make(map[string]string)
308309
}

0 commit comments

Comments
 (0)