Skip to content

Commit

Permalink
Correct labels on imagepuller
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
  • Loading branch information
mmorhun committed Nov 19, 2021
1 parent 01ba44f commit b4a4612
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pkg/deploy/image-puller/imagepuller.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ func GetExpectedKubernetesImagePuller(ctx *deploy.DeployContext) *chev1alpha1.Ku
*metav1.NewControllerRef(ctx.CheCluster, ctx.CheCluster.GroupVersionKind()),
},
Labels: map[string]string{
"app.kubernetes.io/part-of": ctx.CheCluster.Name,
"app": "che",
"app.kubernetes.io/part-of": deploy.CheEclipseOrg,
"app": deploy.DefaultCheFlavor(ctx.CheCluster),
"component": "kubernetes-image-puller",
},
},
Expand Down
12 changes: 6 additions & 6 deletions pkg/deploy/image-puller/imagepuller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ func TestImagePullerConfiguration(t *testing.T) {
Name: os.Getenv("CHE_FLAVOR") + "-image-puller",
Namespace: namespace,
Labels: map[string]string{
"app": "che",
"app": os.Getenv("CHE_FLAVOR"),
"component": "kubernetes-image-puller",
"app.kubernetes.io/part-of": os.Getenv("CHE_FLAVOR"),
"app.kubernetes.io/part-of": deploy.CheEclipseOrg,
},
OwnerReferences: []metav1.OwnerReference{
{
Expand Down Expand Up @@ -752,8 +752,8 @@ func InitImagePuller(options ImagePullerOptions) *chev1alpha1.KubernetesImagePul
Namespace: namespace,
ResourceVersion: options.ObjectMetaResourceVersion,
Labels: map[string]string{
"app.kubernetes.io/part-of": os.Getenv("CHE_FLAVOR"),
"app": "che",
"app.kubernetes.io/part-of": deploy.CheEclipseOrg,
"app": os.Getenv("CHE_FLAVOR"),
"component": "kubernetes-image-puller",
},
OwnerReferences: []metav1.OwnerReference{
Expand Down Expand Up @@ -784,8 +784,8 @@ func getDefaultImagePuller() *chev1alpha1.KubernetesImagePuller {
Name: os.Getenv("CHE_FLAVOR") + "-image-puller",
Namespace: namespace,
Labels: map[string]string{
"app.kubernetes.io/part-of": os.Getenv("CHE_FLAVOR"),
"app": "che",
"app.kubernetes.io/part-of": deploy.CheEclipseOrg,
"app": os.Getenv("CHE_FLAVOR"),
"component": "kubernetes-image-puller",
},
OwnerReferences: []metav1.OwnerReference{
Expand Down

0 comments on commit b4a4612

Please sign in to comment.