References and Selectors

References and Selectors

BoundObjectReference

authentication.v1.BoundObjectReference

BoundObjectReference is a reference to an object that a token is bound to.

  • apiVersion (string)
    API version of the referent.

  • kind (string)
    Kind of the referent. Valid kinds are 'Pod' and 'Secret'.

  • name (string)
    Name of the referent.

  • uid (string)
    UID of the referent.

ObjectReference

core.v1.ObjectReference

ObjectReference contains enough information to let you inspect or modify the referred object.

TypedLocalObjectReference

core.v1.TypedLocalObjectReference

TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.

  • apiGroup (string)
    APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

  • kind (string)
    Kind is the type of resource being referenced

  • name (string)
    Name is the name of resource being referenced

ServiceReference

apiextensions.v1.ServiceReference

ServiceReference holds a reference to Service.legacy.k8s.io

  • name (string)
    name is the name of the service. Required

  • namespace (string)
    namespace is the namespace of the service. Required

  • path (string)
    path is an optional URL path at which the webhook will be contacted.

  • port (integer)
    port is an optional service port at which the webhook will be contacted. port should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.

ServiceReference

admissionregistration.v1.ServiceReference

ServiceReference holds a reference to Service.legacy.k8s.io

  • name (string)
    name is the name of the service. Required

  • namespace (string)
    namespace is the namespace of the service. Required

  • path (string)
    path is an optional URL path which will be sent in any request to this service.

  • port (integer)
    If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. port should be a valid port number (1-65535, inclusive).

ServiceReference

apiregistration.v1.ServiceReference

ServiceReference holds a reference to Service.legacy.k8s.io

  • name (string)
    Name is the name of the service

  • namespace (string)
    Namespace is the namespace of the service

  • port (integer)
    If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. port should be a valid port number (1-65535, inclusive).

ServiceReference

auditregistration.v1alpha1.ServiceReference

ServiceReference holds a reference to Service.legacy.k8s.io

  • name (string)
    name is the name of the service. Required

  • namespace (string)
    namespace is the namespace of the service. Required

  • path (string)
    path is an optional URL path which will be sent in any request to this service.

  • port (integer)
    If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. port should be a valid port number (1-65535, inclusive).

LabelSelector

meta.v1.LabelSelector

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

  • matchExpressions ([]LabelSelectorRequirement)
    matchExpressions is a list of label selector requirements. The requirements are ANDed.

    • matchExpressions.key (string)
      key is the label key that the selector applies to.

    • matchExpressions.operator (string)
      operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

    • matchExpressions.values ([]string)
      values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

  • matchLabels (object)
    matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.