Skip to content

Commit

Permalink
copy labels from source namespaces (migtools#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavgaikwad authored and rayfordj committed Oct 19, 2022
1 parent 4086c48 commit edb1782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/directimagemigration/namespace.go
Expand Up @@ -63,6 +63,7 @@ func (t *Task) ensureDestinationNamespaces() error {
ObjectMeta: metav1.ObjectMeta{
Name: destNsName,
Annotations: srcNS.Annotations,
Labels: srcNS.Labels,
},
}
existingNamespace := &corev1.Namespace{}
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/directvolumemigration/namespace.go
Expand Up @@ -42,6 +42,7 @@ func (t *Task) ensureDestinationNamespaces() error {
ObjectMeta: metav1.ObjectMeta{
Name: destNsName,
Annotations: srcNS.Annotations,
Labels: srcNS.Labels,
},
}
existingNamespace := &corev1.Namespace{}
Expand Down

0 comments on commit edb1782

Please sign in to comment.