Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Remove the logical-cluster & sync-target labels from syncer namespace #2130

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

apoorvajagtap
Copy link
Contributor

Summary

Removing the following labels from the Namespace yaml definition generated while performing a workload sync operation:

labels:
    workload.kcp.io/logical-cluster: {{.LabelSafeLogicalCluster}}
    workload.kcp.io/sync-target: {{.SyncTarget}}

Fixes #1843

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 4, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2022

Hi @apoorvajagtap. Thanks for your PR.

I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ncdc
Copy link
Member

ncdc commented Oct 4, 2022

I think you can also remove LabelSafeLogicalCluster from templateArgs?

@ncdc
Copy link
Member

ncdc commented Oct 4, 2022

/ok-to-test
/approve

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 4, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ncdc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 4, 2022
@stevekuznetsov
Copy link
Contributor

/lgtm

@ncdc ncdc added the area/transparent-multi-cluster Related to scheduling of workloads into pclusters. label Oct 5, 2022
@ncdc ncdc changed the title 🐛 Removes the logical-cluster & sync-target labels from syncer namespace 🐛 Remove the logical-cluster & sync-target labels from syncer namespace Oct 5, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2022
@ncdc ncdc added this to the v0.9 milestone Oct 5, 2022
@openshift-merge-robot openshift-merge-robot merged commit e33522c into kcp-dev:main Oct 5, 2022
@apoorvajagtap apoorvajagtap deleted the issue_1843 branch October 5, 2022 15:21
@kasturinarra
Copy link
Contributor

@kasturinarra please help verify this, thanks !!

@kasturinarra
Copy link
Contributor

@apoorvajagtap i tried to verify the issue by creating a workspace with name "kcp-redhat-appstudio-internal-compute" and then running the command 'kubectl kcp workload sync knarracluster1 --syncer-image ghcr.io/kcp-dev/kcp/syncer:v0.9.1 --output-file=syncer1.yaml', verified that the generated syncer1.yaml does not have logical-cluster and sync-target labels in the namespace section , is that the right way to validate or is there anything else that we should be looking here ? thanks !!

@ncdc
Copy link
Member

ncdc commented Oct 19, 2022

That's all

@kasturinarra
Copy link
Contributor

/label qe-approved

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2022

@kasturinarra: The label(s) qe-approved cannot be applied, because the repository doesn't have them.

In response to this:

/label qe-approved

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kasturinarra
Copy link
Contributor

Detailed steps followed to verify the bug:

  1. Login to the kcp env
  2. Go to home workspaces using the command 'kubectl kcp ws'
  3. create a workspace with name kcp-redhat-appstudio-internal-compute by running the command 'kubectl ws create kcp-redhat-appstudio-internal-compute'
  4. Now run the command to create syncer.yaml file 'kubectl kcp workload sync knarracluster1 --syncer-image ghcr.io/kcp-dev/kcp/syncer:v0.9.1 --output-file=syncer1.yaml'
  5. Now check the syncer1.yaml file and make sure that the namespace section does not have any labels called logical-cluster & sync-target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/transparent-multi-cluster Related to scheduling of workloads into pclusters. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Syncer namespace with label value exceeding 63 characters
5 participants