Vixen
02b45cc4
csharp
public readonly record struct PodIdentity

The orchestrator's own pod, as the downward API reports it.

Read the guide page for this →

Fields and properties (2)

  • public string Name

    Its name, from metadata.name.

  • public string Uid

    Its uid, from metadata.uid — an owner reference needs both.

Methods (2)

  • public PodIdentity(string Name, string Uid)

    The orchestrator's own pod, as the downward API reports it.

  • public static PodIdentity? FromEnvironment(Func<string, string?>? read = null)

    Reads it from the environment a pod template sets.

Used by (3)

  • KubernetesPlacementVixen.Live.Placement.Kubernetes
  • KubernetesPlacementOptionsVixen.Live.Placement.Kubernetes
  • KubernetesPlacementTestsVixen.Live.Placement.Kubernetes.Tests