kcp-dev / contrib-tmc

An experimental add-on readding some Kubernetes compute APIs and impement transparent multi-cluster scheduling
Apache License 2.0
5 stars 3 forks source link

Downward API references in Deployment volumes leak pcluster information #125

Open jmprusi opened 2 years ago

jmprusi commented 2 years ago

Describe the bug

When using the downward API to expose information to Pods, the information will be the one from the PCluster instead of the KCP one, for example and most important the namespace. This causes problems when relying on that information to make calls to the k8s API.

To Reproduce

Steps to reproduce the behavior:

  1. Create a deployment that uses a volume to pull information from the downward API:
    volumes:
    - name: podinfo
      downwardAPI:
        items:
          - path: "namespace"
            fieldRef:
              fieldPath: metadata.namespace
  2. make a k8s call from that Pod using the information provided by the volume.
  3. See error

Expected behavior

The expected value should be the one from the KCP server.

mjudeikis commented 1 year ago

/transfer-issue contrib-tmc