Skip to content

Commit 7b3b043

Browse files
authored
chore: improve the diff format for upgrade-to-v1 command (#595)
1 parent d912d7d commit 7b3b043

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cmd/cluster/upgrade_to_1.0.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ func (o *UpgradeToV1Options) Convert09ComponentDef(cluster *kbappsv1.Cluster,
648648
}
649649

650650
func (o *UpgradeToV1Options) printDiff(clusterV1Alpha1 *kbappsv1alpha1.Cluster, clusterV1 *kbappsv1.Cluster) {
651+
delete(clusterV1Alpha1.Annotations, corev1.LastAppliedConfigAnnotation)
652+
delete(clusterV1.Annotations, corev1.LastAppliedConfigAnnotation)
651653
clusterV1Alpha1.Status = kbappsv1alpha1.ClusterStatus{}
652654
clusterV1Alpha1.ObjectMeta.ManagedFields = nil
653655
clusterV1.Status = kbappsv1.ClusterStatus{}

0 commit comments

Comments
 (0)