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

Non-federated zone CP doesn't add kuma.io/zone label on policies #11373

Closed
lobkovilya opened this issue Sep 10, 2024 · 3 comments
Closed

Non-federated zone CP doesn't add kuma.io/zone label on policies #11373

lobkovilya opened this issue Sep 10, 2024 · 3 comments
Assignees
Labels
kind/bug A bug triage/accepted The issue was reviewed and is complete enough to start working on it
Milestone

Comments

@lobkovilya
Copy link
Contributor

What happened?

Policy without kuma.io/zone label can't reference MeshService with kuma.io/zone label.

  1. Start zone CP
  2. Create MeshService backend
  3. Apply MeshHTTPRoute
    type: MeshHTTPRoute
    name: mesh-service-route-1
    mesh: mesh-service
    labels:
      kuma.io/origin: zone # when this is missing we don't have kuma.io/zone
    spec:
      targetRef:
        kind: MeshSubset
        tags:
          kuma.io/service: demo-client
      to:
        - targetRef:
            kind: MeshService
            name: backend
            sectionName: "80" 
          rules:
            - matches:
              - path:
                  value: /instance1
                  type: PathPrefix
              default:
                backendRefs:
                  - kind: MeshService
                    name: backend
                    port: 80
            - matches:
              - path:
                  value: /instance2
                  type: PathPrefix
              default:
                backendRefs:
                  - kind: MeshService
                    name: backendsecond
                    port: 80
@lobkovilya lobkovilya added triage/pending This issue will be looked at on the next triage meeting kind/bug A bug labels Sep 10, 2024
@lobkovilya lobkovilya added this to the 2.9.x milestone Sep 10, 2024
@lobkovilya lobkovilya self-assigned this Sep 16, 2024
@slonka slonka added triage/accepted The issue was reviewed and is complete enough to start working on it and removed triage/pending This issue will be looked at on the next triage meeting labels Sep 16, 2024
@lahabana
Copy link
Contributor

@lobkovilya to check if this is still the case or not

@lahabana
Copy link
Contributor

If this is still the case and it's not a problem for migrating to federated then just punt this to 2.10.x

@lobkovilya
Copy link
Contributor Author

Tested both k8s and uni non-federated zones and it works as expected.

@lobkovilya lobkovilya closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug triage/accepted The issue was reviewed and is complete enough to start working on it
Projects
None yet
Development

No branches or pull requests

3 participants