com.coralogix.zio.k8s.model.pkg.apis.meta.v1

Type members

Classlikes

case class APIGroup(name: String, preferredVersion: Optional[GroupVersionForDiscovery], serverAddressByClientCIDRs: Optional[Vector[ServerAddressByClientCIDR]], versions: Vector[GroupVersionForDiscovery])

APIGroup contains the name, the supported versions, and the preferred version of a group.

APIGroup contains the name, the supported versions, and the preferred version of a group.

Value Params
name

name is the name of the group.

serverAddressByClientCIDRs

a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.

versions

versions are the versions supported in this group.

Companion
object
object APIGroup extends APIGroupFields
Companion
class
class APIGroupFields(_prefix: Chunk[String])
case class APIResource(categories: Optional[Vector[String]], group: Optional[String], kind: String, name: String, namespaced: Boolean, shortNames: Optional[Vector[String]], singularName: String, storageVersionHash: Optional[String], verbs: Vector[String], version: Optional[String])

APIResource specifies the name of a resource and whether it is namespaced.

APIResource specifies the name of a resource and whether it is namespaced.

Value Params
categories

categories is a list of the grouped resources this resource belongs to (e.g. 'all')

group

group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".

kind

kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')

name

name is the plural name of the resource.

namespaced

namespaced indicates if a resource is namespaced or not.

shortNames

shortNames is a list of suggested short names of the resource.

singularName

singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.

storageVersionHash

The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.

verbs

verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)

version

version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".

Companion
object
Companion
class
class APIResourceFields(_prefix: Chunk[String])
case class APIVersions(serverAddressByClientCIDRs: Vector[ServerAddressByClientCIDR], versions: Vector[String])

APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.

APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.

Value Params
serverAddressByClientCIDRs

a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.

versions

versions are the api versions that are available.

Companion
object
Companion
class
class APIVersionsFields(_prefix: Chunk[String])
case class Condition(lastTransitionTime: Time, message: String, observedGeneration: Optional[Long], reason: String, status: String, `type`: String)

Condition contains details for one aspect of the current state of this API Resource.

Condition contains details for one aspect of the current state of this API Resource.

Value Params
message

message is a human readable message indicating details about the transition. This may be an empty string.

observedGeneration

observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.

reason

reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.

status

status of the condition, one of True, False, Unknown.

type

type of condition in CamelCase or in foo.example.com/CamelCase.

Companion
object
object Condition extends ConditionFields
Companion
class
class ConditionFields(_prefix: Chunk[String])
case class DeleteOptions(dryRun: Optional[Vector[String]], gracePeriodSeconds: Optional[Long], orphanDependents: Optional[Boolean], preconditions: Optional[Preconditions], propagationPolicy: Optional[String])

DeleteOptions may be provided when deleting an API object.

DeleteOptions may be provided when deleting an API object.

Value Params
dryRun

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

gracePeriodSeconds

The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.

orphanDependents

Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.

propagationPolicy

Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.

Companion
object
Companion
class
class DeleteOptionsFields(_prefix: Chunk[String])
case class FieldsV1(value: Json)

FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.

FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.

Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.

The exact format is defined in sigs.k8s.io/structured-merge-diff

Companion
object
object FieldsV1
Companion
class
class FieldsV1Fields(_prefix: Chunk[String])
case class GroupVersionForDiscovery(groupVersion: String, version: String)

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

Value Params
groupVersion

groupVersion specifies the API group and version in the form "group/version"

version

version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.

Companion
object
class GroupVersionForDiscoveryFields(_prefix: Chunk[String])
case class LabelSelector(matchExpressions: Optional[Vector[LabelSelectorRequirement]], matchLabels: Optional[Map[String, String]])

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.

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.

Value Params
matchExpressions

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabels

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.

Companion
object
Companion
class
class LabelSelectorFields(_prefix: Chunk[String])
case class LabelSelectorRequirement(key: String, operator: String, values: Optional[Vector[String]])

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

Value Params
key

key is the label key that the selector applies to.

operator

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

values

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.

Companion
object
class LabelSelectorRequirementFields(_prefix: Chunk[String])
case class ListMeta(continue: Optional[String], remainingItemCount: Optional[Long], resourceVersion: Optional[String], selfLink: Optional[String])

ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

Value Params
continue

continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.

remainingItemCount

remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is estimating the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.

resourceVersion

String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

selfLink

selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.

Companion
object
object ListMeta extends ListMetaFields
Companion
class
class ListMetaFields(_prefix: Chunk[String])
case class ManagedFieldsEntry(apiVersion: Optional[String], fieldsType: Optional[String], fieldsV1: Optional[FieldsV1], manager: Optional[String], operation: Optional[String], time: Optional[Time])

ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

Value Params
apiVersion

APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.

fieldsType

FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"

manager

Manager is an identifier of the workflow managing these fields.

operation

Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.

Companion
object
class ManagedFieldsEntryFields(_prefix: Chunk[String])
final case class MicroTime(value: OffsetDateTime) extends AnyVal

MicroTime is version of Time with microsecond level precision.

MicroTime is version of Time with microsecond level precision.

Companion
object
object MicroTime
Companion
class
case class ObjectMeta(annotations: Optional[Map[String, String]], clusterName: Optional[String], creationTimestamp: Optional[Time], deletionGracePeriodSeconds: Optional[Long], deletionTimestamp: Optional[Time], finalizers: Optional[Vector[String]], generateName: Optional[String], generation: Optional[Long], labels: Optional[Map[String, String]], managedFields: Optional[Vector[ManagedFieldsEntry]], name: Optional[String], namespace: Optional[String], ownerReferences: Optional[Vector[OwnerReference]], resourceVersion: Optional[String], selfLink: Optional[String], uid: Optional[String])

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

Value Params
annotations

Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations

clusterName

The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.

deletionGracePeriodSeconds

Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.

finalizers

Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.

generateName

GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency

generation

A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.

labels

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels

managedFields

ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.

name

Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names

namespace

Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces

ownerReferences

List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.

resourceVersion

An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

selfLink

SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.

uid

UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Companion
object
Companion
class
class ObjectMetaFields(_prefix: Chunk[String])
case class OwnerReference(apiVersion: String, blockOwnerDeletion: Optional[Boolean], controller: Optional[Boolean], kind: String, name: String, uid: String)

OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

Value Params
apiVersion

API version of the referent.

blockOwnerDeletion

If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.

controller

If true, this reference points to the managing controller.

kind

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

name

Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names

uid

UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Companion
object
Companion
class
class OwnerReferenceFields(_prefix: Chunk[String])
case class Patch(value: Json)

Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.

Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.

Companion
object
object Patch
Companion
class
class PatchFields(_prefix: Chunk[String])
case class Preconditions(resourceVersion: Optional[String], uid: Optional[String])

Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.

Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.

Value Params
resourceVersion

Specifies the target ResourceVersion

uid

Specifies the target UID.

Companion
object
Companion
class
class PreconditionsFields(_prefix: Chunk[String])
case class ServerAddressByClientCIDR(clientCIDR: String, serverAddress: String)

ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.

ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.

Value Params
clientCIDR

The CIDR with which clients can match their IP to figure out the server address that they should use.

serverAddress

Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.

Companion
object
class ServerAddressByClientCIDRFields(_prefix: Chunk[String])
case class Status(code: Optional[Int], details: Optional[StatusDetails], message: Optional[String], metadata: Optional[ListMeta], reason: Optional[String], status: Optional[String])

Status is a return value for calls that don't return other objects.

Status is a return value for calls that don't return other objects.

Value Params
code

Suggested HTTP return code for this status, 0 if not set.

message

A human-readable description of the status of this operation.

reason

A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.

status

Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

Companion
object
object Status extends StatusFields
Companion
class
case class StatusCause(field: Optional[String], message: Optional[String], reason: Optional[String])

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

Value Params
field

The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items"

message

A human-readable description of the cause of the error. This field may be presented as-is to a reader.

reason

A machine-readable description of the cause of the error. If this value is empty there is no information available.

Companion
object
Companion
class
class StatusCauseFields(_prefix: Chunk[String])
case class StatusDetails(causes: Optional[Vector[StatusCause]], group: Optional[String], kind: Optional[String], name: Optional[String], retryAfterSeconds: Optional[Int], uid: Optional[String])

StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.

StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.

Value Params
causes

The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.

group

The group attribute of the resource associated with the status StatusReason.

kind

The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

name

The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).

retryAfterSeconds

If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.

uid

UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Companion
object
Companion
class
class StatusDetailsFields(_prefix: Chunk[String])
class StatusFields(_prefix: Chunk[String])
final case class Time(value: OffsetDateTime) extends AnyVal

Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.

Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.

Companion
object
object Time
Companion
class
case class WatchEvent(`object`: RawExtension, `type`: String)

Event represents a single event to a watched resource.

Event represents a single event to a watched resource.

Companion
object
Companion
class
class WatchEventFields(_prefix: Chunk[String])