Skip to content

Inject CLUSTER_NAME env variable for each NSM appended client #2

@denis-tingaikin

Description

@denis-tingaikin

Description

Currently clientinfo chain element can work with CLUSTER_NAME env https://github.com/networkservicemesh/sdk/blob/main/pkg/tools/clientinfo/clientinfo.go#L30

But we dont use it yet, because k8s at this moment doesn't have an option to get cluster name without any special complex steps.

Solution

  1. Wait when https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/2149-clusterid#property-idk8sio will be able for k8s users.
  2. Add check in cmd-admission-webhook-k8s on do we have a CRD related to k8s about api
  3. Add CLUSTER_NAME env variable into NSC with value from cluster property crd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions