Documentation
¶
Index ¶
- func Bool(v bool) *bool
- func Float32(v float32) *float32
- func Float64(v float64) *float64
- func Int(v int) *int
- func Int32(v int32) *int32
- func Int64(v int64) *int64
- func SetAPIVersionAndKind(i any)
- func String(v string) *string
- func Time(v time.Time) *time.Time
- type APIGroupListV1
- type APIGroupV1
- type APIResourceListV1
- type APIResourceV1
- type APIServiceConditionV1
- type APIServiceListV1
- type APIServiceSpecV1
- type APIServiceStatusV1
- type APIServiceV1
- type APIVersionsV1
- type AWSElasticBlockStoreVolumeSourceV1
- type AffinityV1
- type AggregationRuleV1
- type AllocationResultV1alpha3
- type AppArmorProfileV1
- type AttachedVolumeV1
- type AuditAnnotationV1
- type AuditAnnotationV1alpha1
- type AuditAnnotationV1beta1
- type AzureDiskVolumeSourceV1
- type AzureFilePersistentVolumeSourceV1
- type AzureFileVolumeSourceV1
- type BasicDeviceV1alpha3
- type BindingV1
- type BoundObjectReferenceV1
- type CELDeviceSelectorV1alpha3
- type CSIDriverListV1
- type CSIDriverSpecV1
- type CSIDriverV1
- type CSINodeDriverV1
- type CSINodeListV1
- type CSINodeSpecV1
- type CSINodeV1
- type CSIPersistentVolumeSourceV1
- type CSIStorageCapacityListV1
- type CSIStorageCapacityV1
- type CSIVolumeSourceV1
- type CapabilitiesV1
- type CephFSPersistentVolumeSourceV1
- type CephFSVolumeSourceV1
- type CertificateSigningRequestConditionV1
- type CertificateSigningRequestListV1
- type CertificateSigningRequestSpecV1
- type CertificateSigningRequestStatusV1
- type CertificateSigningRequestV1
- type CinderPersistentVolumeSourceV1
- type CinderVolumeSourceV1
- type ClientIPConfigV1
- type ClusterRoleBindingListV1
- type ClusterRoleBindingV1
- type ClusterRoleListV1
- type ClusterRoleV1
- type ClusterTrustBundleListV1alpha1
- type ClusterTrustBundleProjectionV1
- type ClusterTrustBundleSpecV1alpha1
- type ClusterTrustBundleV1alpha1
- type ComponentConditionV1
- type ComponentStatusListV1
- type ComponentStatusV1
- type ConditionV1
- type ConfigMapEnvSourceV1
- type ConfigMapKeySelectorV1
- type ConfigMapListV1
- type ConfigMapNodeConfigSourceV1
- type ConfigMapProjectionV1
- type ConfigMapV1
- type ConfigMapVolumeSourceV1
- type ContainerImageV1
- type ContainerPortV1
- type ContainerResizePolicyV1
- type ContainerResourceMetricSourceV2
- type ContainerResourceMetricStatusV2
- type ContainerStateRunningV1
- type ContainerStateTerminatedV1
- type ContainerStateV1
- type ContainerStateWaitingV1
- type ContainerStatusV1
- type ContainerUserV1
- type ContainerV1
- type ControllerRevisionListV1
- type ControllerRevisionV1
- type CronJobListV1
- type CronJobSpecV1
- type CronJobStatusV1
- type CronJobV1
- type CrossVersionObjectReferenceV1
- type CrossVersionObjectReferenceV2
- type CustomResourceColumnDefinitionV1
- type CustomResourceConversionV1
- type CustomResourceDefinitionConditionV1
- type CustomResourceDefinitionListV1
- type CustomResourceDefinitionNamesV1
- type CustomResourceDefinitionSpecV1
- type CustomResourceDefinitionStatusV1
- type CustomResourceDefinitionV1
- type CustomResourceDefinitionVersionV1
- type CustomResourceSubresourceScaleV1
- type CustomResourceSubresourcesV1
- type CustomResourceValidationV1
- type DaemonEndpointV1
- type DaemonSetConditionV1
- type DaemonSetListV1
- type DaemonSetSpecV1
- type DaemonSetStatusV1
- type DaemonSetUpdateStrategyV1
- type DaemonSetV1
- type DeleteOptionsV1
- type DeploymentConditionV1
- type DeploymentListV1
- type DeploymentSpecV1
- type DeploymentStatusV1
- type DeploymentStrategyV1
- type DeploymentV1
- type DeviceAllocationConfigurationV1alpha3
- type DeviceAllocationResultV1alpha3
- type DeviceAttributeV1alpha3
- type DeviceClaimConfigurationV1alpha3
- type DeviceClaimV1alpha3
- type DeviceClassConfigurationV1alpha3
- type DeviceClassListV1alpha3
- type DeviceClassSpecV1alpha3
- type DeviceClassV1alpha3
- type DeviceConstraintV1alpha3
- type DeviceRequestAllocationResultV1alpha3
- type DeviceRequestV1alpha3
- type DeviceSelectorV1alpha3
- type DeviceV1alpha3
- type DownwardAPIProjectionV1
- type DownwardAPIVolumeFileV1
- type DownwardAPIVolumeSourceV1
- type EmptyDirVolumeSourceV1
- type EndpointAddressV1
- type EndpointConditionsV1
- type EndpointHintsV1
- type EndpointPortV1
- type EndpointSliceListV1
- type EndpointSliceV1
- type EndpointSubsetV1
- type EndpointV1
- type EndpointsListV1
- type EndpointsV1
- type EnvFromSourceV1
- type EnvVarSourceV1
- type EnvVarV1
- type EphemeralContainerV1
- type EphemeralVolumeSourceV1
- type EventListV1
- type EventSeriesV1
- type EventSourceV1
- type EventV1
- type EvictionV1
- type ExecActionV1
- type ExemptPriorityLevelConfigurationV1
- type ExemptPriorityLevelConfigurationV1beta3
- type ExpressionWarningV1
- type ExpressionWarningV1alpha1
- type ExpressionWarningV1beta1
- type ExternalDocumentationV1
- type ExternalMetricSourceV2
- type ExternalMetricStatusV2
- type FCVolumeSourceV1
- type FieldSelectorAttributesV1
- type FieldSelectorRequirementV1
- type FlexPersistentVolumeSourceV1
- type FlexVolumeSourceV1
- type FlockerVolumeSourceV1
- type FlowDistinguisherMethodV1
- type FlowDistinguisherMethodV1beta3
- type FlowSchemaConditionV1
- type FlowSchemaConditionV1beta3
- type FlowSchemaListV1
- type FlowSchemaListV1beta3
- type FlowSchemaSpecV1
- type FlowSchemaSpecV1beta3
- type FlowSchemaStatusV1
- type FlowSchemaStatusV1beta3
- type FlowSchemaV1
- type FlowSchemaV1beta3
- type ForZoneV1
- type GCEPersistentDiskVolumeSourceV1
- type GRPCActionV1
- type GitRepoVolumeSourceV1
- type GlusterfsPersistentVolumeSourceV1
- type GlusterfsVolumeSourceV1
- type GroupSubjectV1
- type GroupSubjectV1beta3
- type GroupVersionForDiscoveryV1
- type GroupVersionResourceV1alpha1
- type HPAScalingPolicyV2
- type HPAScalingRulesV2
- type HTTPGetActionV1
- type HTTPHeaderV1
- type HTTPIngressPathV1
- type HTTPIngressRuleValueV1
- type HorizontalPodAutoscalerBehaviorV2
- type HorizontalPodAutoscalerConditionV2
- type HorizontalPodAutoscalerListV1
- type HorizontalPodAutoscalerListV2
- type HorizontalPodAutoscalerSpecV1
- type HorizontalPodAutoscalerSpecV2
- type HorizontalPodAutoscalerStatusV1
- type HorizontalPodAutoscalerStatusV2
- type HorizontalPodAutoscalerV1
- type HorizontalPodAutoscalerV2
- type HostAliasV1
- type HostIPV1
- type HostPathVolumeSourceV1
- type IPAddressListV1beta1
- type IPAddressSpecV1beta1
- type IPAddressV1beta1
- type IPBlockV1
- type ISCSIPersistentVolumeSourceV1
- type ISCSIVolumeSourceV1
- type ImageVolumeSourceV1
- type InfoVersion
- type IngressBackendV1
- type IngressClassListV1
- type IngressClassParametersReferenceV1
- type IngressClassSpecV1
- type IngressClassV1
- type IngressListV1
- type IngressLoadBalancerIngressV1
- type IngressLoadBalancerStatusV1
- type IngressPortStatusV1
- type IngressRuleV1
- type IngressServiceBackendV1
- type IngressSpecV1
- type IngressStatusV1
- type IngressTLSV1
- type IngressV1
- type JSONSchemaPropsV1
- type JobConditionV1
- type JobListV1
- type JobSpecV1
- type JobStatusV1
- type JobTemplateSpecV1
- type JobV1
- type KeyToPathV1
- type LabelSelectorAttributesV1
- type LabelSelectorRequirementV1
- type LabelSelectorV1
- type LeaseCandidateListV1alpha1
- type LeaseCandidateSpecV1alpha1
- type LeaseCandidateV1alpha1
- type LeaseListV1
- type LeaseSpecV1
- type LeaseV1
- type LifecycleHandlerV1
- type LifecycleV1
- type LimitRangeItemV1
- type LimitRangeListV1
- type LimitRangeSpecV1
- type LimitRangeV1
- type LimitResponseV1
- type LimitResponseV1beta3
- type LimitedPriorityLevelConfigurationV1
- type LimitedPriorityLevelConfigurationV1beta3
- type LinuxContainerUserV1
- type ListMetaV1
- type LoadBalancerIngressV1
- type LoadBalancerStatusV1
- type LocalObjectReferenceV1
- type LocalSubjectAccessReviewV1
- type LocalVolumeSourceV1
- type ManagedFieldsEntryV1
- type MatchConditionV1
- type MatchConditionV1alpha1
- type MatchConditionV1beta1
- type MatchResourcesV1
- type MatchResourcesV1alpha1
- type MatchResourcesV1beta1
- type MetricIdentifierV2
- type MetricSpecV2
- type MetricStatusV2
- type MetricTargetV2
- type MetricValueStatusV2
- type MigrationConditionV1alpha1
- type ModifyVolumeStatusV1
- type MutatingWebhookConfigurationListV1
- type MutatingWebhookConfigurationV1
- type MutatingWebhookV1
- type NFSVolumeSourceV1
- type NamedRuleWithOperationsV1
- type NamedRuleWithOperationsV1alpha1
- type NamedRuleWithOperationsV1beta1
- type NamespaceConditionV1
- type NamespaceListV1
- type NamespaceSpecV1
- type NamespaceStatusV1
- type NamespaceV1
- type NetworkPolicyEgressRuleV1
- type NetworkPolicyIngressRuleV1
- type NetworkPolicyListV1
- type NetworkPolicyPeerV1
- type NetworkPolicyPortV1
- type NetworkPolicySpecV1
- type NetworkPolicyV1
- type NodeAddressV1
- type NodeAffinityV1
- type NodeConditionV1
- type NodeConfigSourceV1
- type NodeConfigStatusV1
- type NodeDaemonEndpointsV1
- type NodeFeaturesV1
- type NodeListV1
- type NodeRuntimeHandlerFeaturesV1
- type NodeRuntimeHandlerV1
- type NodeSelectorRequirementV1
- type NodeSelectorTermV1
- type NodeSelectorV1
- type NodeSpecV1
- type NodeStatusV1
- type NodeSystemInfoV1
- type NodeV1
- type NonResourceAttributesV1
- type NonResourcePolicyRuleV1
- type NonResourcePolicyRuleV1beta3
- type NonResourceRuleV1
- type ObjectFieldSelectorV1
- type ObjectMetaV1
- type ObjectMetricSourceV2
- type ObjectMetricStatusV2
- type ObjectReferenceV1
- type OpaqueDeviceConfigurationV1alpha3
- type OverheadV1
- type OwnerReferenceV1
- type ParamKindV1
- type ParamKindV1alpha1
- type ParamKindV1beta1
- type ParamRefV1
- type ParamRefV1alpha1
- type ParamRefV1beta1
- type ParentReferenceV1beta1
- type PersistentVolumeClaimConditionV1
- type PersistentVolumeClaimListV1
- type PersistentVolumeClaimSpecV1
- type PersistentVolumeClaimStatusV1
- type PersistentVolumeClaimTemplateV1
- type PersistentVolumeClaimV1
- type PersistentVolumeClaimVolumeSourceV1
- type PersistentVolumeListV1
- type PersistentVolumeSpecV1
- type PersistentVolumeStatusV1
- type PersistentVolumeV1
- type PhotonPersistentDiskVolumeSourceV1
- type PodAffinityTermV1
- type PodAffinityV1
- type PodAntiAffinityV1
- type PodConditionV1
- type PodDNSConfigOptionV1
- type PodDNSConfigV1
- type PodDisruptionBudgetListV1
- type PodDisruptionBudgetSpecV1
- type PodDisruptionBudgetStatusV1
- type PodDisruptionBudgetV1
- type PodFailurePolicyOnExitCodesRequirementV1
- type PodFailurePolicyOnPodConditionsPatternV1
- type PodFailurePolicyRuleV1
- type PodFailurePolicyV1
- type PodIPV1
- type PodListV1
- type PodOSV1
- type PodReadinessGateV1
- type PodResourceClaimStatusV1
- type PodResourceClaimV1
- type PodSchedulingContextListV1alpha3
- type PodSchedulingContextSpecV1alpha3
- type PodSchedulingContextStatusV1alpha3
- type PodSchedulingContextV1alpha3
- type PodSchedulingGateV1
- type PodSecurityContextV1
- type PodSpecV1
- type PodStatusV1
- type PodTemplateListV1
- type PodTemplateSpecV1
- type PodTemplateV1
- type PodV1
- type PodsMetricSourceV2
- type PodsMetricStatusV2
- type PolicyRuleV1
- type PolicyRulesWithSubjectsV1
- type PolicyRulesWithSubjectsV1beta3
- type PortStatusV1
- type PortworxVolumeSourceV1
- type PreconditionsV1
- type PreferredSchedulingTermV1
- type PriorityClassListV1
- type PriorityClassV1
- type PriorityLevelConfigurationConditionV1
- type PriorityLevelConfigurationConditionV1beta3
- type PriorityLevelConfigurationListV1
- type PriorityLevelConfigurationListV1beta3
- type PriorityLevelConfigurationReferenceV1
- type PriorityLevelConfigurationReferenceV1beta3
- type PriorityLevelConfigurationSpecV1
- type PriorityLevelConfigurationSpecV1beta3
- type PriorityLevelConfigurationStatusV1
- type PriorityLevelConfigurationStatusV1beta3
- type PriorityLevelConfigurationV1
- type PriorityLevelConfigurationV1beta3
- type ProbeV1
- type ProjectedVolumeSourceV1
- type QueuingConfigurationV1
- type QueuingConfigurationV1beta3
- type QuobyteVolumeSourceV1
- type RBDPersistentVolumeSourceV1
- type RBDVolumeSourceV1
- type ReplicaSetConditionV1
- type ReplicaSetListV1
- type ReplicaSetSpecV1
- type ReplicaSetStatusV1
- type ReplicaSetV1
- type ReplicationControllerConditionV1
- type ReplicationControllerListV1
- type ReplicationControllerSpecV1
- type ReplicationControllerStatusV1
- type ReplicationControllerV1
- type ResourceAttributesV1
- type ResourceClaimConsumerReferenceV1alpha3
- type ResourceClaimListV1alpha3
- type ResourceClaimSchedulingStatusV1alpha3
- type ResourceClaimSpecV1alpha3
- type ResourceClaimStatusV1alpha3
- type ResourceClaimTemplateListV1alpha3
- type ResourceClaimTemplateSpecV1alpha3
- type ResourceClaimTemplateV1alpha3
- type ResourceClaimV1
- type ResourceClaimV1alpha3
- type ResourceFieldSelectorV1
- type ResourceHealthV1
- type ResourceMetricSourceV2
- type ResourceMetricStatusV2
- type ResourcePolicyRuleV1
- type ResourcePolicyRuleV1beta3
- type ResourcePoolV1alpha3
- type ResourceQuotaListV1
- type ResourceQuotaSpecV1
- type ResourceQuotaStatusV1
- type ResourceQuotaV1
- type ResourceRequirementsV1
- type ResourceRuleV1
- type ResourceSliceListV1alpha3
- type ResourceSliceSpecV1alpha3
- type ResourceSliceV1alpha3
- type ResourceStatusV1
- type RoleBindingListV1
- type RoleBindingV1
- type RoleListV1
- type RoleRefV1
- type RoleV1
- type RollingUpdateDaemonSetV1
- type RollingUpdateDeploymentV1
- type RollingUpdateStatefulSetStrategyV1
- type RuleWithOperationsV1
- type RuntimeClassListV1
- type RuntimeClassV1
- type SELinuxOptionsV1
- type ScaleIOPersistentVolumeSourceV1
- type ScaleIOVolumeSourceV1
- type ScaleSpecV1
- type ScaleStatusV1
- type ScaleV1
- type SchedulingV1
- type ScopeSelectorV1
- type ScopedResourceSelectorRequirementV1
- type SeccompProfileV1
- type SecretEnvSourceV1
- type SecretKeySelectorV1
- type SecretListV1
- type SecretProjectionV1
- type SecretReferenceV1
- type SecretV1
- type SecretVolumeSourceV1
- type SecurityContextV1
- type SelectableFieldV1
- type SelfSubjectAccessReviewSpecV1
- type SelfSubjectAccessReviewV1
- type SelfSubjectReviewStatusV1
- type SelfSubjectReviewStatusV1alpha1
- type SelfSubjectReviewStatusV1beta1
- type SelfSubjectReviewV1
- type SelfSubjectReviewV1alpha1
- type SelfSubjectReviewV1beta1
- type SelfSubjectRulesReviewSpecV1
- type SelfSubjectRulesReviewV1
- type ServerAddressByClientCIDRV1
- type ServerStorageVersionV1alpha1
- type ServiceAccountListV1
- type ServiceAccountSubjectV1
- type ServiceAccountSubjectV1beta3
- type ServiceAccountTokenProjectionV1
- type ServiceAccountV1
- type ServiceBackendPortV1
- type ServiceCIDRListV1beta1
- type ServiceCIDRSpecV1beta1
- type ServiceCIDRStatusV1beta1
- type ServiceCIDRV1beta1
- type ServiceListV1
- type ServicePortV1
- type ServiceReferenceV1
- type ServiceSpecV1
- type ServiceStatusV1
- type ServiceV1
- type SessionAffinityConfigV1
- type SleepActionV1
- type StatefulSetConditionV1
- type StatefulSetListV1
- type StatefulSetOrdinalsV1
- type StatefulSetPersistentVolumeClaimRetentionPolicyV1
- type StatefulSetSpecV1
- type StatefulSetStatusV1
- type StatefulSetUpdateStrategyV1
- type StatefulSetV1
- type StatusCauseV1
- type StatusDetailsV1
- type StatusV1
- type StorageClassListV1
- type StorageClassV1
- type StorageOSPersistentVolumeSourceV1
- type StorageOSVolumeSourceV1
- type StorageVersionConditionV1alpha1
- type StorageVersionListV1alpha1
- type StorageVersionMigrationListV1alpha1
- type StorageVersionMigrationSpecV1alpha1
- type StorageVersionMigrationStatusV1alpha1
- type StorageVersionMigrationV1alpha1
- type StorageVersionStatusV1alpha1
- type StorageVersionV1alpha1
- type SubjectAccessReviewSpecV1
- type SubjectAccessReviewStatusV1
- type SubjectAccessReviewV1
- type SubjectRulesReviewStatusV1
- type SubjectV1
- type SubjectV1beta3
- type SuccessPolicyRuleV1
- type SuccessPolicyV1
- type SysctlV1
- type TCPSocketActionV1
- type TaintV1
- type TokenRequestSpecV1
- type TokenRequestStatusV1
- type TokenRequestV1
- type TokenReviewSpecV1
- type TokenReviewStatusV1
- type TokenReviewV1
- type TolerationV1
- type TopologySelectorLabelRequirementV1
- type TopologySelectorTermV1
- type TopologySpreadConstraintV1
- type TypeCheckingV1
- type TypeCheckingV1alpha1
- type TypeCheckingV1beta1
- type TypedLocalObjectReferenceV1
- type TypedObjectReferenceV1
- type UncountedTerminatedPodsV1
- type UserInfoV1
- type UserSubjectV1
- type UserSubjectV1beta3
- type ValidatingAdmissionPolicyBindingListV1
- type ValidatingAdmissionPolicyBindingListV1alpha1
- type ValidatingAdmissionPolicyBindingListV1beta1
- type ValidatingAdmissionPolicyBindingSpecV1
- type ValidatingAdmissionPolicyBindingSpecV1alpha1
- type ValidatingAdmissionPolicyBindingSpecV1beta1
- type ValidatingAdmissionPolicyBindingV1
- type ValidatingAdmissionPolicyBindingV1alpha1
- type ValidatingAdmissionPolicyBindingV1beta1
- type ValidatingAdmissionPolicyListV1
- type ValidatingAdmissionPolicyListV1alpha1
- type ValidatingAdmissionPolicyListV1beta1
- type ValidatingAdmissionPolicySpecV1
- type ValidatingAdmissionPolicySpecV1alpha1
- type ValidatingAdmissionPolicySpecV1beta1
- type ValidatingAdmissionPolicyStatusV1
- type ValidatingAdmissionPolicyStatusV1alpha1
- type ValidatingAdmissionPolicyStatusV1beta1
- type ValidatingAdmissionPolicyV1
- type ValidatingAdmissionPolicyV1alpha1
- type ValidatingAdmissionPolicyV1beta1
- type ValidatingWebhookConfigurationListV1
- type ValidatingWebhookConfigurationV1
- type ValidatingWebhookV1
- type ValidationRuleV1
- type ValidationV1
- type ValidationV1alpha1
- type ValidationV1beta1
- type VariableV1
- type VariableV1alpha1
- type VariableV1beta1
- type VolumeAttachmentListV1
- type VolumeAttachmentSourceV1
- type VolumeAttachmentSpecV1
- type VolumeAttachmentStatusV1
- type VolumeAttachmentV1
- type VolumeAttributesClassListV1alpha1
- type VolumeAttributesClassListV1beta1
- type VolumeAttributesClassV1alpha1
- type VolumeAttributesClassV1beta1
- type VolumeDeviceV1
- type VolumeErrorV1
- type VolumeMountStatusV1
- type VolumeMountV1
- type VolumeNodeAffinityV1
- type VolumeNodeResourcesV1
- type VolumeProjectionV1
- type VolumeResourceRequirementsV1
- type VolumeV1
- type VsphereVirtualDiskVolumeSourceV1
- type WatchEventV1
- type WebhookClientConfigV1
- type WebhookConversionV1
- type WeightedPodAffinityTermV1
- type WindowsSecurityContextOptionsV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAPIVersionAndKind ¶
func SetAPIVersionAndKind(i any)
Types ¶
type APIGroupListV1 ¶
type APIGroupListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // groups is a list of APIGroup. Groups []APIGroupV1 `json:"groups"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` }
APIGroupListV1 APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
type APIGroupV1 ¶
type APIGroupV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // name is the name of the group. Name string `json:"name"` // GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility. PreferredVersion *GroupVersionForDiscoveryV1 `json:"preferredVersion,omitempty"` // 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. ServerAddressByClientCidRs []ServerAddressByClientCIDRV1 `json:"serverAddressByClientCIDRs,omitempty"` // versions are the versions supported in this group. Versions []GroupVersionForDiscoveryV1 `json:"versions"` }
APIGroupV1 APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIResourceListV1 ¶
type APIResourceListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // groupVersion is the group and version this APIResourceList is for. GroupVersion string `json:"groupVersion"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // resources contains the name of the resources and if they are namespaced. Resources []APIResourceV1 `json:"resources"` }
APIResourceListV1 APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
type APIResourceV1 ¶
type APIResourceV1 struct { // categories is a list of the grouped resources this resource belongs to (e.g. 'all') Categories []string `json:"categories,omitempty"` // 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". Group *string `json:"group,omitempty"` // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') Kind string `json:"kind"` // name is the plural name of the resource. Name string `json:"name"` // namespaced indicates if a resource is namespaced or not. Namespaced bool `json:"namespaced"` // shortNames is a list of suggested short names of the resource. ShortNames []string `json:"shortNames,omitempty"` // 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. SingularName string `json:"singularName"` // 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. StorageVersionHash *string `json:"storageVersionHash,omitempty"` // verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) Verbs []string `json:"verbs"` // 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)". Version *string `json:"version,omitempty"` }
APIResourceV1 APIResource specifies the name of a resource and whether it is namespaced.
type APIServiceConditionV1 ¶
type APIServiceConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // Human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status is the status of the condition. Can be True, False, Unknown. Status string `json:"status"` // Type is the type of the condition. Type string `json:"type"` }
APIServiceConditionV1 APIServiceCondition describes the state of an APIService at a particular point
type APIServiceListV1 ¶
type APIServiceListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of APIService Items []APIServiceV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
APIServiceListV1 APIServiceList is a list of APIService objects.
type APIServiceSpecV1 ¶
type APIServiceSpecV1 struct { // CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. CABundle []byte `json:"caBundle,omitempty"` // Group is the API group name this server hosts Group *string `json:"group,omitempty"` // GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s GroupPriorityMinimum int32 `json:"groupPriorityMinimum"` // InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. InsecureSkipTLSVerify *bool `json:"insecureSkipTLSVerify,omitempty"` // ServiceReference holds a reference to Service.legacy.k8s.io Service *ServiceReferenceV1 `json:"service,omitempty"` // Version is the API version this server hosts. For example, "v1" Version *string `json:"version,omitempty"` // VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. VersionPriority int32 `json:"versionPriority"` }
APIServiceSpecV1 APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.
type APIServiceStatusV1 ¶
type APIServiceStatusV1 struct { // Current service state of apiService. Conditions []APIServiceConditionV1 `json:"conditions,omitempty"` }
APIServiceStatusV1 APIServiceStatus contains derived information about an API server
type APIServiceV1 ¶
type APIServiceV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. Spec *APIServiceSpecV1 `json:"spec,omitempty"` // APIServiceStatus contains derived information about an API server Status *APIServiceStatusV1 `json:"status,omitempty"` }
APIServiceV1 APIService represents a server for a particular GroupVersion. Name must be "version.group".
type APIVersionsV1 ¶
type APIVersionsV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // 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. ServerAddressByClientCidRs []ServerAddressByClientCIDRV1 `json:"serverAddressByClientCIDRs"` // versions are the api versions that are available. Versions []string `json:"versions"` }
APIVersionsV1 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.
type AWSElasticBlockStoreVolumeSourceV1 ¶
type AWSElasticBlockStoreVolumeSourceV1 struct { // fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore FSType *string `json:"fsType,omitempty"` // partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). Partition *int32 `json:"partition,omitempty"` // readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore ReadOnly *bool `json:"readOnly,omitempty"` // volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore VolumeID string `json:"volumeID"` }
AWSElasticBlockStoreVolumeSourceV1 Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.
type AffinityV1 ¶
type AffinityV1 struct { // Node affinity is a group of node affinity scheduling rules. NodeAffinity *NodeAffinityV1 `json:"nodeAffinity,omitempty"` // Pod affinity is a group of inter pod affinity scheduling rules. PodAffinity *PodAffinityV1 `json:"podAffinity,omitempty"` // Pod anti affinity is a group of inter pod anti affinity scheduling rules. PodAntiAffinity *PodAntiAffinityV1 `json:"podAntiAffinity,omitempty"` }
AffinityV1 Affinity is a group of affinity scheduling rules.
type AggregationRuleV1 ¶
type AggregationRuleV1 struct { // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added ClusterRoleSelectors []LabelSelectorV1 `json:"clusterRoleSelectors,omitempty"` }
AggregationRuleV1 AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AllocationResultV1alpha3 ¶
type AllocationResultV1alpha3 struct { // Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver. A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results. This is an alpha field and requires enabling the DRAControlPlaneController feature gate. Controller *string `json:"controller,omitempty"` // DeviceAllocationResult is the result of allocating devices. Devices *DeviceAllocationResultV1alpha3 `json:"devices,omitempty"` // A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. NodeSelector *NodeSelectorV1 `json:"nodeSelector,omitempty"` }
AllocationResultV1alpha3 AllocationResult contains attributes of an allocated resource.
type AppArmorProfileV1 ¶
type AppArmorProfileV1 struct { // localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". LocalhostProfile *string `json:"localhostProfile,omitempty"` // type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement. Type string `json:"type"` }
AppArmorProfileV1 AppArmorProfile defines a pod or container's AppArmor settings.
type AttachedVolumeV1 ¶
type AttachedVolumeV1 struct { // DevicePath represents the device path where the volume should be available DevicePath string `json:"devicePath"` // Name of the attached volume Name string `json:"name"` }
AttachedVolumeV1 AttachedVolume describes a volume attached to a node
type AuditAnnotationV1 ¶
type AuditAnnotationV1 struct { // key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. Key string `json:"key"` // valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. ValueExpression string `json:"valueExpression"` }
AuditAnnotationV1 AuditAnnotation describes how to produce an audit annotation for an API request.
type AuditAnnotationV1alpha1 ¶
type AuditAnnotationV1alpha1 struct { // key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. Key string `json:"key"` // valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. ValueExpression string `json:"valueExpression"` }
AuditAnnotationV1alpha1 AuditAnnotation describes how to produce an audit annotation for an API request.
type AuditAnnotationV1beta1 ¶
type AuditAnnotationV1beta1 struct { // key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. Key string `json:"key"` // valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. ValueExpression string `json:"valueExpression"` }
AuditAnnotationV1beta1 AuditAnnotation describes how to produce an audit annotation for an API request.
type AzureDiskVolumeSourceV1 ¶
type AzureDiskVolumeSourceV1 struct { // cachingMode is the Host Caching mode: None, Read Only, Read Write. CachingMode *string `json:"cachingMode,omitempty"` // diskName is the Name of the data disk in the blob storage DiskName string `json:"diskName"` // diskURI is the URI of data disk in the blob storage DiskURI string `json:"diskURI"` // fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared Kind *string `json:"kind,omitempty"` // readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` }
AzureDiskVolumeSourceV1 AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
type AzureFilePersistentVolumeSourceV1 ¶
type AzureFilePersistentVolumeSourceV1 struct { // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // secretName is the name of secret that contains Azure Storage Account Name and Key SecretName string `json:"secretName"` // secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod SecretNamespace *string `json:"secretNamespace,omitempty"` ShareName string `json:"shareName"` }
AzureFilePersistentVolumeSourceV1 AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
type AzureFileVolumeSourceV1 ¶
type AzureFileVolumeSourceV1 struct { // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // secretName is the name of secret that contains Azure Storage Account Name and Key SecretName string `json:"secretName"` ShareName string `json:"shareName"` }
AzureFileVolumeSourceV1 AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
type BasicDeviceV1alpha3 ¶
type BasicDeviceV1alpha3 struct { // Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. Attributes *map[string]map[string]interface{} `json:"attributes,omitempty"` // Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. Capacity *map[string]string `json:"capacity,omitempty"` }
BasicDeviceV1alpha3 BasicDevice defines one device instance.
type BindingV1 ¶
type BindingV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. Target ObjectReferenceV1 `json:"target"` }
BindingV1 Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.
type BoundObjectReferenceV1 ¶
type BoundObjectReferenceV1 struct { // API version of the referent. APIVersion *string `json:"apiVersion,omitempty"` // Kind of the referent. Valid kinds are 'Pod' and 'Secret'. Kind *string `json:"kind,omitempty"` // Name of the referent. Name *string `json:"name,omitempty"` // UID of the referent. UID *string `json:"uid,omitempty"` }
BoundObjectReferenceV1 BoundObjectReference is a reference to an object that a token is bound to.
type CELDeviceSelectorV1alpha3 ¶
type CELDeviceSelectorV1alpha3 struct { // Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named "device", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes["dra.example.com"] evaluates to an object with all of the attributes which were prefixed by "dra.example.com". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields: device.driver device.attributes["dra.example.com"].model device.attributes["ext.example.com"].family device.capacity["dra.example.com"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) Expression string `json:"expression"` }
CELDeviceSelectorV1alpha3 CELDeviceSelector contains a CEL expression for selecting a device.
type CSIDriverListV1 ¶
type CSIDriverListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of CSIDriver Items []CSIDriverV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CSIDriverListV1 CSIDriverList is a collection of CSIDriver objects.
type CSIDriverSpecV1 ¶
type CSIDriverSpecV1 struct { // attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. AttachRequired *bool `json:"attachRequired,omitempty"` // fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. FSGroupPolicy *string `json:"fsGroupPolicy,omitempty"` // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise "false" "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. PodInfoOnMount *bool `json:"podInfoOnMount,omitempty"` // requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. RequiresRepublish *bool `json:"requiresRepublish,omitempty"` // seLinuxMount specifies if the CSI driver supports "-o context" mount option. When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is "false". SELinuxMount *bool `json:"seLinuxMount,omitempty"` // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. StorageCapacity *bool `json:"storageCapacity,omitempty"` // tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { "<audience>": { "token": <token>, "expirationTimestamp": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. TokenRequests []TokenRequestV1 `json:"tokenRequests,omitempty"` // volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. VolumeLifecycleModes []string `json:"volumeLifecycleModes,omitempty"` }
CSIDriverSpecV1 CSIDriverSpec is the specification of a CSIDriver.
type CSIDriverV1 ¶
type CSIDriverV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // CSIDriverSpec is the specification of a CSIDriver. Spec CSIDriverSpecV1 `json:"spec"` }
CSIDriverV1 CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
type CSINodeDriverV1 ¶
type CSINodeDriverV1 struct { // VolumeNodeResources is a set of resource limits for scheduling of volumes. Allocatable *VolumeNodeResourcesV1 `json:"allocatable,omitempty"` // name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. Name string `json:"name"` // nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. NodeID string `json:"nodeID"` // topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. TopologyKeys []string `json:"topologyKeys,omitempty"` }
CSINodeDriverV1 CSINodeDriver holds information about the specification of one CSI driver installed on a node
type CSINodeListV1 ¶
type CSINodeListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of CSINode Items []CSINodeV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CSINodeListV1 CSINodeList is a collection of CSINode objects.
type CSINodeSpecV1 ¶
type CSINodeSpecV1 struct { // drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. Drivers []CSINodeDriverV1 `json:"drivers"` }
CSINodeSpecV1 CSINodeSpec holds information about the specification of all CSI drivers installed on a node
type CSINodeV1 ¶
type CSINodeV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // CSINodeSpec holds information about the specification of all CSI drivers installed on a node Spec CSINodeSpecV1 `json:"spec"` }
CSINodeV1 CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
type CSIPersistentVolumeSourceV1 ¶
type CSIPersistentVolumeSourceV1 struct { // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace ControllerExpandSecretRef *SecretReferenceV1 `json:"controllerExpandSecretRef,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace ControllerPublishSecretRef *SecretReferenceV1 `json:"controllerPublishSecretRef,omitempty"` // driver is the name of the driver to use for this volume. Required. Driver string `json:"driver"` // fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". FSType *string `json:"fsType,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace NodeExpandSecretRef *SecretReferenceV1 `json:"nodeExpandSecretRef,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace NodePublishSecretRef *SecretReferenceV1 `json:"nodePublishSecretRef,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace NodeStageSecretRef *SecretReferenceV1 `json:"nodeStageSecretRef,omitempty"` // readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). ReadOnly *bool `json:"readOnly,omitempty"` // volumeAttributes of the volume to publish. VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` // volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. VolumeHandle string `json:"volumeHandle"` }
CSIPersistentVolumeSourceV1 Represents storage that is managed by an external CSI volume driver (Beta feature)
type CSIStorageCapacityListV1 ¶
type CSIStorageCapacityListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of CSIStorageCapacity objects. Items []CSIStorageCapacityV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CSIStorageCapacityListV1 CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
type CSIStorageCapacityV1 ¶
type CSIStorageCapacityV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. Capacity *string `json:"capacity,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. MaximumVolumeSize *string `json:"maximumVolumeSize,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // 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. NodeTopology *LabelSelectorV1 `json:"nodeTopology,omitempty"` // storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. StorageClassName string `json:"storageClassName"` }
CSIStorageCapacityV1 CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
type CSIVolumeSourceV1 ¶
type CSIVolumeSourceV1 struct { // driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. Driver string `json:"driver"` // fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. FSType *string `json:"fsType,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. NodePublishSecretRef *LocalObjectReferenceV1 `json:"nodePublishSecretRef,omitempty"` // readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). ReadOnly *bool `json:"readOnly,omitempty"` // volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` }
CSIVolumeSourceV1 Represents a source location of a volume to mount, managed by an external CSI driver
type CapabilitiesV1 ¶
type CapabilitiesV1 struct { // Added capabilities Add []string `json:"add,omitempty"` // Removed capabilities Drop []string `json:"drop,omitempty"` }
CapabilitiesV1 Adds and removes POSIX capabilities from running containers.
type CephFSPersistentVolumeSourceV1 ¶
type CephFSPersistentVolumeSourceV1 struct { // monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it Monitors []string `json:"monitors"` // path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / Path *string `json:"path,omitempty"` // readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it ReadOnly *bool `json:"readOnly,omitempty"` // secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it SecretFile *string `json:"secretFile,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef *SecretReferenceV1 `json:"secretRef,omitempty"` // user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it User *string `json:"user,omitempty"` }
CephFSPersistentVolumeSourceV1 Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
type CephFSVolumeSourceV1 ¶
type CephFSVolumeSourceV1 struct { // monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it Monitors []string `json:"monitors"` // path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / Path *string `json:"path,omitempty"` // readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it ReadOnly *bool `json:"readOnly,omitempty"` // secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it SecretFile *string `json:"secretFile,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` // user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it User *string `json:"user,omitempty"` }
CephFSVolumeSourceV1 Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
type CertificateSigningRequestConditionV1 ¶
type CertificateSigningRequestConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // 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. LastUpdateTime *time.Time `json:"lastUpdateTime,omitempty"` // message contains a human readable message with details about the request state Message *string `json:"message,omitempty"` // reason indicates a brief reason for the request state Reason *string `json:"reason,omitempty"` // status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". Status string `json:"status"` // type of the condition. Known conditions are "Approved", "Denied", and "Failed". An "Approved" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A "Denied" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A "Failed" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. Type string `json:"type"` }
CertificateSigningRequestConditionV1 CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object
type CertificateSigningRequestListV1 ¶
type CertificateSigningRequestListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a collection of CertificateSigningRequest objects Items []CertificateSigningRequestV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CertificateSigningRequestListV1 CertificateSigningRequestList is a collection of CertificateSigningRequest objects
type CertificateSigningRequestSpecV1 ¶
type CertificateSigningRequestSpecV1 struct { // expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"` // extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. Extra *map[string][]string `json:"extra,omitempty"` // groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. Groups []string `json:"groups,omitempty"` // request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. Request []byte `json:"request"` // signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. Well-known Kubernetes signers are: 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed. SignerName string `json:"signerName"` // uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. UID *string `json:"uid,omitempty"` // usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". Valid values are: "signing", "digital signature", "content commitment", "key encipherment", "key agreement", "data encipherment", "cert sign", "crl sign", "encipher only", "decipher only", "any", "server auth", "client auth", "code signing", "email protection", "s/mime", "ipsec end system", "ipsec tunnel", "ipsec user", "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" Usages []string `json:"usages,omitempty"` // username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. Username *string `json:"username,omitempty"` }
CertificateSigningRequestSpecV1 CertificateSigningRequestSpec contains the certificate request.
type CertificateSigningRequestStatusV1 ¶
type CertificateSigningRequestStatusV1 struct { // certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ) Certificate []byte `json:"certificate,omitempty"` // conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". Conditions []CertificateSigningRequestConditionV1 `json:"conditions,omitempty"` }
CertificateSigningRequestStatusV1 CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.
type CertificateSigningRequestV1 ¶
type CertificateSigningRequestV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // CertificateSigningRequestSpec contains the certificate request. Spec CertificateSigningRequestSpecV1 `json:"spec"` // CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. Status *CertificateSigningRequestStatusV1 `json:"status,omitempty"` }
CertificateSigningRequestV1 CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers.
type CinderPersistentVolumeSourceV1 ¶
type CinderPersistentVolumeSourceV1 struct { // fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md FSType *string `json:"fsType,omitempty"` // readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md ReadOnly *bool `json:"readOnly,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef *SecretReferenceV1 `json:"secretRef,omitempty"` // volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md VolumeID string `json:"volumeID"` }
CinderPersistentVolumeSourceV1 Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
type CinderVolumeSourceV1 ¶
type CinderVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md FSType *string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` // volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md VolumeID string `json:"volumeID"` }
CinderVolumeSourceV1 Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
type ClientIPConfigV1 ¶
type ClientIPConfigV1 struct { // timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
ClientIPConfigV1 ClientIPConfig represents the configurations of Client IP based session affinity.
type ClusterRoleBindingListV1 ¶
type ClusterRoleBindingListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of ClusterRoleBindings Items []ClusterRoleBindingV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ClusterRoleBindingListV1 ClusterRoleBindingList is a collection of ClusterRoleBindings
type ClusterRoleBindingV1 ¶
type ClusterRoleBindingV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // RoleRef contains information that points to the role being used RoleRef RoleRefV1 `json:"roleRef"` // Subjects holds references to the objects the role applies to. Subjects []SubjectV1 `json:"subjects,omitempty"` }
ClusterRoleBindingV1 ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.
type ClusterRoleListV1 ¶
type ClusterRoleListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of ClusterRoles Items []ClusterRoleV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ClusterRoleListV1 ClusterRoleList is a collection of ClusterRoles
type ClusterRoleV1 ¶
type ClusterRoleV1 struct { // AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole AggregationRule *AggregationRuleV1 `json:"aggregationRule,omitempty"` // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Rules holds all the PolicyRules for this ClusterRole Rules []PolicyRuleV1 `json:"rules,omitempty"` }
ClusterRoleV1 ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
type ClusterTrustBundleListV1alpha1 ¶
type ClusterTrustBundleListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a collection of ClusterTrustBundle objects Items []ClusterTrustBundleV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ClusterTrustBundleListV1alpha1 ClusterTrustBundleList is a collection of ClusterTrustBundle objects
type ClusterTrustBundleProjectionV1 ¶
type ClusterTrustBundleProjectionV1 struct { // 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. LabelSelector *LabelSelectorV1 `json:"labelSelector,omitempty"` // Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. Name *string `json:"name,omitempty"` // If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. Optional *bool `json:"optional,omitempty"` // Relative path from the volume root to write the bundle. Path string `json:"path"` // Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. SignerName *string `json:"signerName,omitempty"` }
ClusterTrustBundleProjectionV1 ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.
type ClusterTrustBundleSpecV1alpha1 ¶
type ClusterTrustBundleSpecV1alpha1 struct { // signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. SignerName *string `json:"signerName,omitempty"` // trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. TrustBundle string `json:"trustBundle"` }
ClusterTrustBundleSpecV1alpha1 ClusterTrustBundleSpec contains the signer and trust anchors.
type ClusterTrustBundleV1alpha1 ¶
type ClusterTrustBundleV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ClusterTrustBundleSpec contains the signer and trust anchors. Spec ClusterTrustBundleSpecV1alpha1 `json:"spec"` }
ClusterTrustBundleV1alpha1 ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
type ComponentConditionV1 ¶
type ComponentConditionV1 struct { // Condition error code for a component. For example, a health check error code. Error *string `json:"error,omitempty"` // Message about the condition for a component. For example, information about a health check. Message *string `json:"message,omitempty"` // Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". Status string `json:"status"` // Type of condition for a component. Valid value: "Healthy" Type string `json:"type"` }
ComponentConditionV1 Information about the condition of a component.
type ComponentStatusListV1 ¶
type ComponentStatusListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ComponentStatus objects. Items []ComponentStatusV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ComponentStatusListV1 Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+
type ComponentStatusV1 ¶
type ComponentStatusV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of component conditions observed Conditions []ComponentConditionV1 `json:"conditions,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` }
ComponentStatusV1 ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+
type ConditionV1 ¶
type ConditionV1 struct { // 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. LastTransitionTime time.Time `json:"lastTransitionTime"` // message is a human readable message indicating details about the transition. This may be an empty string. Message string `json:"message"` // 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. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // 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. Reason string `json:"reason"` // status of the condition, one of True, False, Unknown. Status string `json:"status"` // type of condition in CamelCase or in foo.example.com/CamelCase. Type string `json:"type"` }
ConditionV1 Condition contains details for one aspect of the current state of this API Resource.
type ConfigMapEnvSourceV1 ¶
type ConfigMapEnvSourceV1 struct { // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // Specify whether the ConfigMap must be defined Optional *bool `json:"optional,omitempty"` }
ConfigMapEnvSourceV1 ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
type ConfigMapKeySelectorV1 ¶
type ConfigMapKeySelectorV1 struct { // The key to select. Key string `json:"key"` // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // Specify whether the ConfigMap or its key must be defined Optional *bool `json:"optional,omitempty"` }
ConfigMapKeySelectorV1 Selects a key from a ConfigMap.
type ConfigMapListV1 ¶
type ConfigMapListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of ConfigMaps. Items []ConfigMapV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ConfigMapListV1 ConfigMapList is a resource containing a list of ConfigMap objects.
type ConfigMapNodeConfigSourceV1 ¶
type ConfigMapNodeConfigSourceV1 struct { // KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. KubeletConfigKey string `json:"kubeletConfigKey"` // Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. Name string `json:"name"` // Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. Namespace string `json:"namespace"` // ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. ResourceVersion *string `json:"resourceVersion,omitempty"` // UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. UID *string `json:"uid,omitempty"` }
ConfigMapNodeConfigSourceV1 ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
type ConfigMapProjectionV1 ¶
type ConfigMapProjectionV1 struct { // items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. Items []KeyToPathV1 `json:"items,omitempty"` // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // optional specify whether the ConfigMap or its keys must be defined Optional *bool `json:"optional,omitempty"` }
ConfigMapProjectionV1 Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.
type ConfigMapV1 ¶
type ConfigMapV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. BinaryData *map[string]string `json:"binaryData,omitempty"` // Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. Data *map[string]string `json:"data,omitempty"` // Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. Immutable *bool `json:"immutable,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` }
ConfigMapV1 ConfigMap holds configuration data for pods to consume.
type ConfigMapVolumeSourceV1 ¶
type ConfigMapVolumeSourceV1 struct { // defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. DefaultMode *int32 `json:"defaultMode,omitempty"` // items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. Items []KeyToPathV1 `json:"items,omitempty"` // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // optional specify whether the ConfigMap or its keys must be defined Optional *bool `json:"optional,omitempty"` }
ConfigMapVolumeSourceV1 Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.
type ContainerImageV1 ¶
type ContainerImageV1 struct { // Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] Names []string `json:"names,omitempty"` // The size of the image in bytes. SizeBytes *int64 `json:"sizeBytes,omitempty"` }
ContainerImageV1 Describe a container image
type ContainerPortV1 ¶
type ContainerPortV1 struct { // Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. ContainerPort int32 `json:"containerPort"` // What host IP to bind the external port to. HostIP *string `json:"hostIP,omitempty"` // Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. HostPort *int32 `json:"hostPort,omitempty"` // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. Name *string `json:"name,omitempty"` // Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". Protocol *string `json:"protocol,omitempty"` }
ContainerPortV1 ContainerPort represents a network port in a single container.
type ContainerResizePolicyV1 ¶
type ContainerResizePolicyV1 struct { // Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. ResourceName string `json:"resourceName"` // Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. RestartPolicy string `json:"restartPolicy"` }
ContainerResizePolicyV1 ContainerResizePolicy represents resource resize policy for the container.
type ContainerResourceMetricSourceV2 ¶
type ContainerResourceMetricSourceV2 struct { // container is the name of the container in the pods of the scaling target Container string `json:"container"` // name is the name of the resource in question. Name string `json:"name"` // MetricTarget defines the target value, average value, or average utilization of a specific metric Target MetricTargetV2 `json:"target"` }
ContainerResourceMetricSourceV2 ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
type ContainerResourceMetricStatusV2 ¶
type ContainerResourceMetricStatusV2 struct { // container is the name of the container in the pods of the scaling target Container string `json:"container"` // MetricValueStatus holds the current value for a metric Current MetricValueStatusV2 `json:"current"` // name is the name of the resource in question. Name string `json:"name"` }
ContainerResourceMetricStatusV2 ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
type ContainerStateRunningV1 ¶
type ContainerStateRunningV1 struct { // 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. StartedAt *time.Time `json:"startedAt,omitempty"` }
ContainerStateRunningV1 ContainerStateRunning is a running state of a container.
type ContainerStateTerminatedV1 ¶
type ContainerStateTerminatedV1 struct { // Container's ID in the format '<type>://<container_id>' ContainerID *string `json:"containerID,omitempty"` // Exit status from the last termination of the container ExitCode int32 `json:"exitCode"` // 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. FinishedAt *time.Time `json:"finishedAt,omitempty"` // Message regarding the last termination of the container Message *string `json:"message,omitempty"` // (brief) reason from the last termination of the container Reason *string `json:"reason,omitempty"` // Signal from the last termination of the container Signal *int32 `json:"signal,omitempty"` // 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. StartedAt *time.Time `json:"startedAt,omitempty"` }
ContainerStateTerminatedV1 ContainerStateTerminated is a terminated state of a container.
type ContainerStateV1 ¶
type ContainerStateV1 struct { // ContainerStateRunning is a running state of a container. Running *ContainerStateRunningV1 `json:"running,omitempty"` // ContainerStateTerminated is a terminated state of a container. Terminated *ContainerStateTerminatedV1 `json:"terminated,omitempty"` // ContainerStateWaiting is a waiting state of a container. Waiting *ContainerStateWaitingV1 `json:"waiting,omitempty"` }
ContainerStateV1 ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.
type ContainerStateWaitingV1 ¶
type ContainerStateWaitingV1 struct { // Message regarding why the container is not yet running. Message *string `json:"message,omitempty"` // (brief) reason the container is not yet running. Reason *string `json:"reason,omitempty"` }
ContainerStateWaitingV1 ContainerStateWaiting is a waiting state of a container.
type ContainerStatusV1 ¶
type ContainerStatusV1 struct { // AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. AllocatedResources *map[string]string `json:"allocatedResources,omitempty"` // AllocatedResourcesStatus represents the status of various resources allocated for this Pod. AllocatedResourcesStatus []ResourceStatusV1 `json:"allocatedResourcesStatus,omitempty"` // ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd"). ContainerID *string `json:"containerID,omitempty"` // Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. Image string `json:"image"` // ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. ImageID string `json:"imageID"` // ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. LastState *ContainerStateV1 `json:"lastState,omitempty"` // Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. Name string `json:"name"` // Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. Ready bool `json:"ready"` // ResourceRequirements describes the compute resource requirements. Resources *ResourceRequirementsV1 `json:"resources,omitempty"` // RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. RestartCount int32 `json:"restartCount"` // Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. Started *bool `json:"started,omitempty"` // ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. State *ContainerStateV1 `json:"state,omitempty"` // ContainerUser represents user identity information User *ContainerUserV1 `json:"user,omitempty"` // Status of volume mounts. VolumeMounts []VolumeMountStatusV1 `json:"volumeMounts,omitempty"` }
ContainerStatusV1 ContainerStatus contains details for the current status of this container.
type ContainerUserV1 ¶
type ContainerUserV1 struct { // LinuxContainerUser represents user identity information in Linux containers Linux *LinuxContainerUserV1 `json:"linux,omitempty"` }
ContainerUserV1 ContainerUser represents user identity information
type ContainerV1 ¶
type ContainerV1 struct { // Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell Args []string `json:"args,omitempty"` // Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell Command []string `json:"command,omitempty"` // List of environment variables to set in the container. Cannot be updated. Env []EnvVarV1 `json:"env,omitempty"` // List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. EnvFrom []EnvFromSourceV1 `json:"envFrom,omitempty"` // Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. Image *string `json:"image,omitempty"` // Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` // Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. Lifecycle *LifecycleV1 `json:"lifecycle,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. LivenessProbe *ProbeV1 `json:"livenessProbe,omitempty"` // Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. Name string `json:"name"` // List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. Ports []ContainerPortV1 `json:"ports,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. ReadinessProbe *ProbeV1 `json:"readinessProbe,omitempty"` // Resources resize policy for the container. ResizePolicy []ContainerResizePolicyV1 `json:"resizePolicy,omitempty"` // ResourceRequirements describes the compute resource requirements. Resources *ResourceRequirementsV1 `json:"resources,omitempty"` // RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. RestartPolicy *string `json:"restartPolicy,omitempty"` // SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. SecurityContext *SecurityContextV1 `json:"securityContext,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. StartupProbe *ProbeV1 `json:"startupProbe,omitempty"` // Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. Stdin *bool `json:"stdin,omitempty"` // Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false StdinOnce *bool `json:"stdinOnce,omitempty"` // Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` // Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. TerminationMessagePolicy *string `json:"terminationMessagePolicy,omitempty"` // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. TTY *bool `json:"tty,omitempty"` // volumeDevices is the list of block devices to be used by the container. VolumeDevices []VolumeDeviceV1 `json:"volumeDevices,omitempty"` // Pod volumes to mount into the container's filesystem. Cannot be updated. VolumeMounts []VolumeMountV1 `json:"volumeMounts,omitempty"` // Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. WorkingDir *string `json:"workingDir,omitempty"` }
ContainerV1 A single application container that you want to run within a pod.
type ControllerRevisionListV1 ¶
type ControllerRevisionListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of ControllerRevisions Items []ControllerRevisionV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ControllerRevisionListV1 ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionV1 ¶
type ControllerRevisionV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.Object `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.RawExtension `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // On the wire, the JSON will look something like this: { "kind":"MyAPIObject", "apiVersion":"v1", "myPlugin": { "kind":"PluginA", "aOption":"foo", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) Data map[string]interface{} `json:"data,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Revision indicates the revision of the state represented by Data. Revision int64 `json:"revision"` }
ControllerRevisionV1 ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type CronJobListV1 ¶
type CronJobListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of CronJobs. Items []CronJobV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CronJobListV1 CronJobList is a collection of cron jobs.
type CronJobSpecV1 ¶
type CronJobSpecV1 struct { // Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one ConcurrencyPolicy *string `json:"concurrencyPolicy,omitempty"` // The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` // JobTemplateSpec describes the data a Job should have when created from a template JobTemplate JobTemplateSpecV1 `json:"jobTemplate"` // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. Schedule string `json:"schedule"` // Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` // The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` // This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. Suspend *bool `json:"suspend,omitempty"` // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones TimeZone *string `json:"timeZone,omitempty"` }
CronJobSpecV1 CronJobSpec describes how the job execution will look like and when it will actually run.
type CronJobStatusV1 ¶
type CronJobStatusV1 struct { // A list of pointers to currently running jobs. Active []ObjectReferenceV1 `json:"active,omitempty"` // 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. LastScheduleTime *time.Time `json:"lastScheduleTime,omitempty"` // 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. LastSuccessfulTime *time.Time `json:"lastSuccessfulTime,omitempty"` }
CronJobStatusV1 CronJobStatus represents the current state of a cron job.
type CronJobV1 ¶
type CronJobV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // CronJobSpec describes how the job execution will look like and when it will actually run. Spec *CronJobSpecV1 `json:"spec,omitempty"` // CronJobStatus represents the current state of a cron job. Status *CronJobStatusV1 `json:"status,omitempty"` }
CronJobV1 CronJob represents the configuration of a single cron job.
type CrossVersionObjectReferenceV1 ¶
type CrossVersionObjectReferenceV1 struct { // apiVersion is the API version of the referent APIVersion *string `json:"apiVersion,omitempty"` // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind"` // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name"` }
CrossVersionObjectReferenceV1 CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReferenceV2 ¶
type CrossVersionObjectReferenceV2 struct { // apiVersion is the API version of the referent APIVersion *string `json:"apiVersion,omitempty"` // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind"` // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name"` }
CrossVersionObjectReferenceV2 CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CustomResourceColumnDefinitionV1 ¶
type CustomResourceColumnDefinitionV1 struct { // description is a human readable description of this column. Description *string `json:"description,omitempty"` // format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. Format *string `json:"format,omitempty"` // jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. JSONPath string `json:"jsonPath"` // name is a human readable name for the column. Name string `json:"name"` // priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. Priority *int32 `json:"priority,omitempty"` // type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. Type string `json:"type"` }
CustomResourceColumnDefinitionV1 CustomResourceColumnDefinition specifies a column for server side printing.
type CustomResourceConversionV1 ¶
type CustomResourceConversionV1 struct { // strategy specifies how custom resources are converted between versions. Allowed values are: - `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. Strategy string `json:"strategy"` // WebhookConversion describes how to call a conversion webhook Webhook *WebhookConversionV1 `json:"webhook,omitempty"` }
CustomResourceConversionV1 CustomResourceConversion describes how to convert different versions of a CR.
type CustomResourceDefinitionConditionV1 ¶
type CustomResourceDefinitionConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // message is a human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // reason is a unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // status is the status of the condition. Can be True, False, Unknown. Status string `json:"status"` // type is the type of the condition. Types include Established, NamesAccepted and Terminating. Type string `json:"type"` }
CustomResourceDefinitionConditionV1 CustomResourceDefinitionCondition contains details for the current condition of this pod.
type CustomResourceDefinitionListV1 ¶
type CustomResourceDefinitionListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items list individual CustomResourceDefinition objects Items []CustomResourceDefinitionV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
CustomResourceDefinitionListV1 CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
type CustomResourceDefinitionNamesV1 ¶
type CustomResourceDefinitionNamesV1 struct { // categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. Categories []string `json:"categories,omitempty"` // kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. Kind string `json:"kind"` // listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". ListKind *string `json:"listKind,omitempty"` // plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. Plural string `json:"plural"` // shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. ShortNames []string `json:"shortNames,omitempty"` // singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. Singular *string `json:"singular,omitempty"` }
CustomResourceDefinitionNamesV1 CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
type CustomResourceDefinitionSpecV1 ¶
type CustomResourceDefinitionSpecV1 struct { // CustomResourceConversion describes how to convert different versions of a CR. Conversion *CustomResourceConversionV1 `json:"conversion,omitempty"` // group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Group string `json:"group"` // CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition Names CustomResourceDefinitionNamesV1 `json:"names"` // preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"` // scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Scope string `json:"scope"` // versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. Versions []CustomResourceDefinitionVersionV1 `json:"versions"` }
CustomResourceDefinitionSpecV1 CustomResourceDefinitionSpec describes how a user wants their resource to appear
type CustomResourceDefinitionStatusV1 ¶
type CustomResourceDefinitionStatusV1 struct { // CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition AcceptedNames *CustomResourceDefinitionNamesV1 `json:"acceptedNames,omitempty"` // conditions indicate state for particular aspects of a CustomResourceDefinition Conditions []CustomResourceDefinitionConditionV1 `json:"conditions,omitempty"` // storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. StoredVersions []string `json:"storedVersions,omitempty"` }
CustomResourceDefinitionStatusV1 CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
type CustomResourceDefinitionV1 ¶
type CustomResourceDefinitionV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // CustomResourceDefinitionSpec describes how a user wants their resource to appear Spec CustomResourceDefinitionSpecV1 `json:"spec"` // CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition Status *CustomResourceDefinitionStatusV1 `json:"status,omitempty"` }
CustomResourceDefinitionV1 CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
type CustomResourceDefinitionVersionV1 ¶
type CustomResourceDefinitionVersionV1 struct { // additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. AdditionalPrinterColumns []CustomResourceColumnDefinitionV1 `json:"additionalPrinterColumns,omitempty"` // deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. Deprecated *bool `json:"deprecated,omitempty"` // deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. DeprecationWarning *string `json:"deprecationWarning,omitempty"` // name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. Name string `json:"name"` // CustomResourceValidation is a list of validation methods for CustomResources. Schema *CustomResourceValidationV1 `json:"schema,omitempty"` // selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors SelectableFields []SelectableFieldV1 `json:"selectableFields,omitempty"` // served is a flag enabling/disabling this version from being served via REST APIs Served bool `json:"served"` // storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. Storage bool `json:"storage"` // CustomResourceSubresources defines the status and scale subresources for CustomResources. Subresources *CustomResourceSubresourcesV1 `json:"subresources,omitempty"` }
CustomResourceDefinitionVersionV1 CustomResourceDefinitionVersion describes a version for CRD.
type CustomResourceSubresourceScaleV1 ¶
type CustomResourceSubresourceScaleV1 struct { // labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. LabelSelectorPath *string `json:"labelSelectorPath,omitempty"` // specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. SpecReplicasPath string `json:"specReplicasPath"` // statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. StatusReplicasPath string `json:"statusReplicasPath"` }
CustomResourceSubresourceScaleV1 CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
type CustomResourceSubresourcesV1 ¶
type CustomResourceSubresourcesV1 struct { // CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. Scale *CustomResourceSubresourceScaleV1 `json:"scale,omitempty"` // CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza Status map[string]interface{} `json:"status,omitempty"` }
CustomResourceSubresourcesV1 CustomResourceSubresources defines the status and scale subresources for CustomResources.
type CustomResourceValidationV1 ¶
type CustomResourceValidationV1 struct { // JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). OpenApiv3Schema *JSONSchemaPropsV1 `json:"openAPIV3Schema,omitempty"` }
CustomResourceValidationV1 CustomResourceValidation is a list of validation methods for CustomResources.
type DaemonEndpointV1 ¶
type DaemonEndpointV1 struct { // Port number of the given endpoint. Port int32 `json:"Port"` }
DaemonEndpointV1 DaemonEndpoint contains information about a single Daemon endpoint.
type DaemonSetConditionV1 ¶
type DaemonSetConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of DaemonSet condition. Type string `json:"type"` }
DaemonSetConditionV1 DaemonSetCondition describes the state of a DaemonSet at a certain point.
type DaemonSetListV1 ¶
type DaemonSetListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // A list of daemon sets. Items []DaemonSetV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
DaemonSetListV1 DaemonSetList is a collection of daemon sets.
type DaemonSetSpecV1 ¶
type DaemonSetSpecV1 struct { // The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` // The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` // 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. Selector LabelSelectorV1 `json:"selector"` // PodTemplateSpec describes the data a pod should have when created from a template Template PodTemplateSpecV1 `json:"template"` // DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. UpdateStrategy *DaemonSetUpdateStrategyV1 `json:"updateStrategy,omitempty"` }
DaemonSetSpecV1 DaemonSetSpec is the specification of a daemon set.
type DaemonSetStatusV1 ¶
type DaemonSetStatusV1 struct { // Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. CollisionCount *int32 `json:"collisionCount,omitempty"` // Represents the latest available observations of a DaemonSet's current state. Conditions []DaemonSetConditionV1 `json:"conditions,omitempty"` // The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ CurrentNumberScheduled int32 `json:"currentNumberScheduled"` // The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ DesiredNumberScheduled int32 `json:"desiredNumberScheduled"` // The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) NumberAvailable *int32 `json:"numberAvailable,omitempty"` // The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ NumberMisscheduled int32 `json:"numberMisscheduled"` // numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition. NumberReady int32 `json:"numberReady"` NumberUnavailable *int32 `json:"numberUnavailable,omitempty"` // The most recent generation observed by the daemon set controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // The total number of nodes that are running updated daemon pod UpdatedNumberScheduled *int32 `json:"updatedNumberScheduled,omitempty"` }
DaemonSetStatusV1 DaemonSetStatus represents the current status of a daemon set.
type DaemonSetUpdateStrategyV1 ¶
type DaemonSetUpdateStrategyV1 struct { // Spec to control the desired behavior of daemon set rolling update. RollingUpdate *RollingUpdateDaemonSetV1 `json:"rollingUpdate,omitempty"` // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. Type *string `json:"type,omitempty"` }
DaemonSetUpdateStrategyV1 DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.
type DaemonSetV1 ¶
type DaemonSetV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // DaemonSetSpec is the specification of a daemon set. Spec *DaemonSetSpecV1 `json:"spec,omitempty"` // DaemonSetStatus represents the current status of a daemon set. Status *DaemonSetStatusV1 `json:"status,omitempty"` }
DaemonSetV1 DaemonSet represents the configuration of a daemon set.
type DeleteOptionsV1 ¶
type DeleteOptionsV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // 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 DryRun []string `json:"dryRun,omitempty"` // 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. GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // 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. OrphanDependents *bool `json:"orphanDependents,omitempty"` // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. Preconditions *PreconditionsV1 `json:"preconditions,omitempty"` // 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. PropagationPolicy *string `json:"propagationPolicy,omitempty"` }
DeleteOptionsV1 DeleteOptions may be provided when deleting an API object.
type DeploymentConditionV1 ¶
type DeploymentConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // 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. LastUpdateTime *time.Time `json:"lastUpdateTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of deployment condition. Type string `json:"type"` }
DeploymentConditionV1 DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentListV1 ¶
type DeploymentListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of Deployments. Items []DeploymentV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
DeploymentListV1 DeploymentList is a list of Deployments.
type DeploymentSpecV1 ¶
type DeploymentSpecV1 struct { // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` // Indicates that the deployment is paused. Paused *bool `json:"paused,omitempty"` // The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"` // Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. Replicas *int32 `json:"replicas,omitempty"` // The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` // 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. Selector LabelSelectorV1 `json:"selector"` // DeploymentStrategy describes how to replace existing pods with new ones. Strategy *DeploymentStrategyV1 `json:"strategy,omitempty"` // PodTemplateSpec describes the data a pod should have when created from a template Template PodTemplateSpecV1 `json:"template"` }
DeploymentSpecV1 DeploymentSpec is the specification of the desired behavior of the Deployment.
type DeploymentStatusV1 ¶
type DeploymentStatusV1 struct { // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. AvailableReplicas *int32 `json:"availableReplicas,omitempty"` // Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. CollisionCount *int32 `json:"collisionCount,omitempty"` // Represents the latest available observations of a deployment's current state. Conditions []DeploymentConditionV1 `json:"conditions,omitempty"` // The generation observed by the deployment controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. ReadyReplicas *int32 `json:"readyReplicas,omitempty"` // Total number of non-terminated pods targeted by this deployment (their labels match the selector). Replicas *int32 `json:"replicas,omitempty"` UnavailableReplicas *int32 `json:"unavailableReplicas,omitempty"` // Total number of non-terminated pods targeted by this deployment that have the desired template spec. UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"` }
DeploymentStatusV1 DeploymentStatus is the most recently observed status of the Deployment.
type DeploymentStrategyV1 ¶
type DeploymentStrategyV1 struct { // Spec to control the desired behavior of rolling update. RollingUpdate *RollingUpdateDeploymentV1 `json:"rollingUpdate,omitempty"` // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. Type *string `json:"type,omitempty"` }
DeploymentStrategyV1 DeploymentStrategy describes how to replace existing pods with new ones.
type DeploymentV1 ¶
type DeploymentV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // DeploymentSpec is the specification of the desired behavior of the Deployment. Spec *DeploymentSpecV1 `json:"spec,omitempty"` // DeploymentStatus is the most recently observed status of the Deployment. Status *DeploymentStatusV1 `json:"status,omitempty"` }
DeploymentV1 Deployment enables declarative updates for Pods and ReplicaSets.
type DeviceAllocationConfigurationV1alpha3 ¶
type DeviceAllocationConfigurationV1alpha3 struct { // OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. Opaque *OpaqueDeviceConfigurationV1alpha3 `json:"opaque,omitempty"` // Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. Requests []string `json:"requests,omitempty"` // Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. Source string `json:"source"` }
DeviceAllocationConfigurationV1alpha3 DeviceAllocationConfiguration gets embedded in an AllocationResult.
type DeviceAllocationResultV1alpha3 ¶
type DeviceAllocationResultV1alpha3 struct { // This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. Config []DeviceAllocationConfigurationV1alpha3 `json:"config,omitempty"` // Results lists all allocated devices. Results []DeviceRequestAllocationResultV1alpha3 `json:"results,omitempty"` }
DeviceAllocationResultV1alpha3 DeviceAllocationResult is the result of allocating devices.
type DeviceAttributeV1alpha3 ¶
type DeviceAttributeV1alpha3 struct { // BoolValue is a true/false value. Bool *bool `json:"bool,omitempty"` // IntValue is a number. Int *int64 `json:"int,omitempty"` // StringValue is a string. Must not be longer than 64 characters. String *string `json:"string,omitempty"` // VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. Version *string `json:"version,omitempty"` }
DeviceAttributeV1alpha3 DeviceAttribute must have exactly one field set.
type DeviceClaimConfigurationV1alpha3 ¶
type DeviceClaimConfigurationV1alpha3 struct { // OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. Opaque *OpaqueDeviceConfigurationV1alpha3 `json:"opaque,omitempty"` // Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. Requests []string `json:"requests,omitempty"` }
DeviceClaimConfigurationV1alpha3 DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
type DeviceClaimV1alpha3 ¶
type DeviceClaimV1alpha3 struct { // This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. Config []DeviceClaimConfigurationV1alpha3 `json:"config,omitempty"` // These constraints must be satisfied by the set of devices that get allocated for the claim. Constraints []DeviceConstraintV1alpha3 `json:"constraints,omitempty"` // Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. Requests []DeviceRequestV1alpha3 `json:"requests,omitempty"` }
DeviceClaimV1alpha3 DeviceClaim defines how to request devices with a ResourceClaim.
type DeviceClassConfigurationV1alpha3 ¶
type DeviceClassConfigurationV1alpha3 struct { // OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. Opaque *OpaqueDeviceConfigurationV1alpha3 `json:"opaque,omitempty"` }
DeviceClassConfigurationV1alpha3 DeviceClassConfiguration is used in DeviceClass.
type DeviceClassListV1alpha3 ¶
type DeviceClassListV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of resource classes. Items []DeviceClassV1alpha3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
DeviceClassListV1alpha3 DeviceClassList is a collection of classes.
type DeviceClassSpecV1alpha3 ¶
type DeviceClassSpecV1alpha3 struct { // Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. Config []DeviceClassConfigurationV1alpha3 `json:"config,omitempty"` // Each selector must be satisfied by a device which is claimed via this class. Selectors []DeviceSelectorV1alpha3 `json:"selectors,omitempty"` // A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. SuitableNodes *NodeSelectorV1 `json:"suitableNodes,omitempty"` }
DeviceClassSpecV1alpha3 DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
type DeviceClassV1alpha3 ¶
type DeviceClassV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. Spec DeviceClassSpecV1alpha3 `json:"spec"` }
DeviceClassV1alpha3 DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
type DeviceConstraintV1alpha3 ¶
type DeviceConstraintV1alpha3 struct { // MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. MatchAttribute *string `json:"matchAttribute,omitempty"` // Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. Requests []string `json:"requests,omitempty"` }
DeviceConstraintV1alpha3 DeviceConstraint must have exactly one field set besides Requests.
type DeviceRequestAllocationResultV1alpha3 ¶
type DeviceRequestAllocationResultV1alpha3 struct { // Device references one device instance via its name in the driver's resource pool. It must be a DNS label. Device string `json:"device"` // Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. Driver string `json:"driver"` // This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. Pool string `json:"pool"` // Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request. Request string `json:"request"` }
DeviceRequestAllocationResultV1alpha3 DeviceRequestAllocationResult contains the allocation result for one request.
type DeviceRequestV1alpha3 ¶
type DeviceRequestV1alpha3 struct { // AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. AdminAccess *bool `json:"adminAccess,omitempty"` // AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. AllocationMode *string `json:"allocationMode,omitempty"` // Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. Count *int64 `json:"count,omitempty"` // DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. DeviceClassName string `json:"deviceClassName"` // Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. Name string `json:"name"` // Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. Selectors []DeviceSelectorV1alpha3 `json:"selectors,omitempty"` }
DeviceRequestV1alpha3 DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
type DeviceSelectorV1alpha3 ¶
type DeviceSelectorV1alpha3 struct { // CELDeviceSelector contains a CEL expression for selecting a device. CEL *CELDeviceSelectorV1alpha3 `json:"cel,omitempty"` }
DeviceSelectorV1alpha3 DeviceSelector must have exactly one field set.
type DeviceV1alpha3 ¶
type DeviceV1alpha3 struct { // BasicDevice defines one device instance. Basic *BasicDeviceV1alpha3 `json:"basic,omitempty"` // Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. Name string `json:"name"` }
DeviceV1alpha3 Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
type DownwardAPIProjectionV1 ¶
type DownwardAPIProjectionV1 struct { // Items is a list of DownwardAPIVolume file Items []DownwardAPIVolumeFileV1 `json:"items,omitempty"` }
DownwardAPIProjectionV1 Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.
type DownwardAPIVolumeFileV1 ¶
type DownwardAPIVolumeFileV1 struct { // ObjectFieldSelector selects an APIVersioned field of an object. FieldRef *ObjectFieldSelectorV1 `json:"fieldRef,omitempty"` // Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. Mode *int32 `json:"mode,omitempty"` // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' Path string `json:"path"` // ResourceFieldSelector represents container resources (cpu, memory) and their output format ResourceFieldRef *ResourceFieldSelectorV1 `json:"resourceFieldRef,omitempty"` }
DownwardAPIVolumeFileV1 DownwardAPIVolumeFile represents information to create the file containing the pod field
type DownwardAPIVolumeSourceV1 ¶
type DownwardAPIVolumeSourceV1 struct { // Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. DefaultMode *int32 `json:"defaultMode,omitempty"` // Items is a list of downward API volume file Items []DownwardAPIVolumeFileV1 `json:"items,omitempty"` }
DownwardAPIVolumeSourceV1 DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.
type EmptyDirVolumeSourceV1 ¶
type EmptyDirVolumeSourceV1 struct { // medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir Medium *string `json:"medium,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. SizeLimit *string `json:"sizeLimit,omitempty"` }
EmptyDirVolumeSourceV1 Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.
type EndpointAddressV1 ¶
type EndpointAddressV1 struct { // The Hostname of this endpoint Hostname *string `json:"hostname,omitempty"` // The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). IP string `json:"ip"` // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. NodeName *string `json:"nodeName,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. TargetRef *ObjectReferenceV1 `json:"targetRef,omitempty"` }
EndpointAddressV1 EndpointAddress is a tuple that describes single IP address.
type EndpointConditionsV1 ¶
type EndpointConditionsV1 struct { // ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. Ready *bool `json:"ready,omitempty"` // serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. Serving *bool `json:"serving,omitempty"` // terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. Terminating *bool `json:"terminating,omitempty"` }
EndpointConditionsV1 EndpointConditions represents the current condition of an endpoint.
type EndpointHintsV1 ¶
type EndpointHintsV1 struct { // forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. ForZones []ForZoneV1 `json:"forZones,omitempty"` }
EndpointHintsV1 EndpointHints provides hints describing how an endpoint should be consumed.
type EndpointPortV1 ¶
type EndpointPortV1 struct { // The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. AppProtocol *string `json:"appProtocol,omitempty"` // The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. Name *string `json:"name,omitempty"` // The port number of the endpoint. Port int32 `json:"port"` // The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. Protocol *string `json:"protocol,omitempty"` }
EndpointPortV1 EndpointPort is a tuple that describes a single port.
type EndpointSliceListV1 ¶
type EndpointSliceListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of endpoint slices Items []EndpointSliceV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
EndpointSliceListV1 EndpointSliceList represents a list of endpoint slices
type EndpointSliceV1 ¶
type EndpointSliceV1 struct { // addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. AddressType string `json:"addressType"` // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. Endpoints []EndpointV1 `json:"endpoints"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. Ports []EndpointPortV1 `json:"ports,omitempty"` }
EndpointSliceV1 EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
type EndpointSubsetV1 ¶
type EndpointSubsetV1 struct { // IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. Addresses []EndpointAddressV1 `json:"addresses,omitempty"` // IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. NotReadyAddresses []EndpointAddressV1 `json:"notReadyAddresses,omitempty"` // Port numbers available on the related IP addresses. Ports []EndpointPortV1 `json:"ports,omitempty"` }
EndpointSubsetV1 EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]
type EndpointV1 ¶
type EndpointV1 struct { // addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 Addresses []string `json:"addresses"` // EndpointConditions represents the current condition of an endpoint. Conditions *EndpointConditionsV1 `json:"conditions,omitempty"` // deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. DeprecatedTopology *map[string]string `json:"deprecatedTopology,omitempty"` // EndpointHints provides hints describing how an endpoint should be consumed. Hints *EndpointHintsV1 `json:"hints,omitempty"` // hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. Hostname *string `json:"hostname,omitempty"` // nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. NodeName *string `json:"nodeName,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. TargetRef *ObjectReferenceV1 `json:"targetRef,omitempty"` // zone is the name of the Zone this endpoint exists in. Zone *string `json:"zone,omitempty"` }
EndpointV1 Endpoint represents a single logical "backend" implementing a service.
type EndpointsListV1 ¶
type EndpointsListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of endpoints. Items []EndpointsV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
EndpointsListV1 EndpointsList is a list of endpoints.
type EndpointsV1 ¶
type EndpointsV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. Subsets []EndpointSubsetV1 `json:"subsets,omitempty"` }
EndpointsV1 Endpoints is a collection of endpoints that implement the actual service. Example: Name: "mysvc", Subsets: [ { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }, { Addresses: [{"ip": "10.10.3.3"}], Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ]
type EnvFromSourceV1 ¶
type EnvFromSourceV1 struct { // ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. ConfigMapRef *ConfigMapEnvSourceV1 `json:"configMapRef,omitempty"` // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. Prefix *string `json:"prefix,omitempty"` // SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. SecretRef *SecretEnvSourceV1 `json:"secretRef,omitempty"` }
EnvFromSourceV1 EnvFromSource represents the source of a set of ConfigMaps
type EnvVarSourceV1 ¶
type EnvVarSourceV1 struct { // Selects a key from a ConfigMap. ConfigMapKeyRef *ConfigMapKeySelectorV1 `json:"configMapKeyRef,omitempty"` // ObjectFieldSelector selects an APIVersioned field of an object. FieldRef *ObjectFieldSelectorV1 `json:"fieldRef,omitempty"` // ResourceFieldSelector represents container resources (cpu, memory) and their output format ResourceFieldRef *ResourceFieldSelectorV1 `json:"resourceFieldRef,omitempty"` // SecretKeySelector selects a key of a Secret. SecretKeyRef *SecretKeySelectorV1 `json:"secretKeyRef,omitempty"` }
EnvVarSourceV1 EnvVarSource represents a source for the value of an EnvVar.
type EnvVarV1 ¶
type EnvVarV1 struct { // Name of the environment variable. Must be a C_IDENTIFIER. Name string `json:"name"` // Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". Value *string `json:"value,omitempty"` // EnvVarSource represents a source for the value of an EnvVar. ValueFrom *EnvVarSourceV1 `json:"valueFrom,omitempty"` }
EnvVarV1 EnvVar represents an environment variable present in a Container.
type EphemeralContainerV1 ¶
type EphemeralContainerV1 struct { // Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell Args []string `json:"args,omitempty"` // Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell Command []string `json:"command,omitempty"` // List of environment variables to set in the container. Cannot be updated. Env []EnvVarV1 `json:"env,omitempty"` // List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. EnvFrom []EnvFromSourceV1 `json:"envFrom,omitempty"` // Container image name. More info: https://kubernetes.io/docs/concepts/containers/images Image *string `json:"image,omitempty"` // Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` // Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. Lifecycle *LifecycleV1 `json:"lifecycle,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. LivenessProbe *ProbeV1 `json:"livenessProbe,omitempty"` // Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. Name string `json:"name"` // Ports are not allowed for ephemeral containers. Ports []ContainerPortV1 `json:"ports,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. ReadinessProbe *ProbeV1 `json:"readinessProbe,omitempty"` // Resources resize policy for the container. ResizePolicy []ContainerResizePolicyV1 `json:"resizePolicy,omitempty"` // ResourceRequirements describes the compute resource requirements. Resources *ResourceRequirementsV1 `json:"resources,omitempty"` // Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. RestartPolicy *string `json:"restartPolicy,omitempty"` // SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. SecurityContext *SecurityContextV1 `json:"securityContext,omitempty"` // Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. StartupProbe *ProbeV1 `json:"startupProbe,omitempty"` // Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. Stdin *bool `json:"stdin,omitempty"` // Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false StdinOnce *bool `json:"stdinOnce,omitempty"` // If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. TargetContainerName *string `json:"targetContainerName,omitempty"` // Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` // Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. TerminationMessagePolicy *string `json:"terminationMessagePolicy,omitempty"` // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. TTY *bool `json:"tty,omitempty"` // volumeDevices is the list of block devices to be used by the container. VolumeDevices []VolumeDeviceV1 `json:"volumeDevices,omitempty"` // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. VolumeMounts []VolumeMountV1 `json:"volumeMounts,omitempty"` // Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. WorkingDir *string `json:"workingDir,omitempty"` }
EphemeralContainerV1 An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.
type EphemeralVolumeSourceV1 ¶
type EphemeralVolumeSourceV1 struct { // PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. VolumeClaimTemplate *PersistentVolumeClaimTemplateV1 `json:"volumeClaimTemplate,omitempty"` }
EphemeralVolumeSourceV1 Represents an ephemeral volume that is handled by a normal storage driver.
type EventListV1 ¶
type EventListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of events Items []EventV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
EventListV1 EventList is a list of events.
type EventSeriesV1 ¶
type EventSeriesV1 struct { // Number of occurrences in this series up to the last heartbeat time Count *int32 `json:"count,omitempty"` // MicroTime is version of Time with microsecond level precision. LastObservedTime *time.Time `json:"lastObservedTime,omitempty"` }
EventSeriesV1 EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.
type EventSourceV1 ¶
type EventSourceV1 struct { // Component from which the event is generated. Component *string `json:"component,omitempty"` // Node name on which the event is generated. Host *string `json:"host,omitempty"` }
EventSourceV1 EventSource contains information for an event.
type EventV1 ¶
type EventV1 struct { // What action was taken/failed regarding to the Regarding object. Action *string `json:"action,omitempty"` // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // The number of times this event has occurred. Count *int32 `json:"count,omitempty"` // MicroTime is version of Time with microsecond level precision. EventTime *time.Time `json:"eventTime,omitempty"` // 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. FirstTimestamp *time.Time `json:"firstTimestamp,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. InvolvedObject ObjectReferenceV1 `json:"involvedObject"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // 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. LastTimestamp *time.Time `json:"lastTimestamp,omitempty"` // A human-readable description of the status of this operation. Message *string `json:"message,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata ObjectMetaV1 `json:"metadata"` // This should be a short, machine understandable string that gives the reason for the transition into the object's current status. Reason *string `json:"reason,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. Related *ObjectReferenceV1 `json:"related,omitempty"` // Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. ReportingComponent *string `json:"reportingComponent,omitempty"` // ID of the controller instance, e.g. `kubelet-xyzf`. ReportingInstance *string `json:"reportingInstance,omitempty"` // EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. Series *EventSeriesV1 `json:"series,omitempty"` // EventSource contains information for an event. Source *EventSourceV1 `json:"source,omitempty"` // Type of this event (Normal, Warning), new types could be added in the future Type *string `json:"type,omitempty"` }
EventV1 Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EvictionV1 ¶
type EvictionV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // DeleteOptions may be provided when deleting an API object. DeleteOptions *DeleteOptionsV1 `json:"deleteOptions,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` }
EvictionV1 Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.
type ExecActionV1 ¶
type ExecActionV1 struct { // Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. Command []string `json:"command,omitempty"` }
ExecActionV1 ExecAction describes a "run in container" action.
type ExemptPriorityLevelConfigurationV1 ¶
type ExemptPriorityLevelConfigurationV1 struct { // `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) LendablePercent *int32 `json:"lendablePercent,omitempty"` NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"` }
ExemptPriorityLevelConfigurationV1 ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.
type ExemptPriorityLevelConfigurationV1beta3 ¶
type ExemptPriorityLevelConfigurationV1beta3 struct { // `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) LendablePercent *int32 `json:"lendablePercent,omitempty"` NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"` }
ExemptPriorityLevelConfigurationV1beta3 ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.
type ExpressionWarningV1 ¶
type ExpressionWarningV1 struct { // The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" FieldRef string `json:"fieldRef"` // The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. Warning string `json:"warning"` }
ExpressionWarningV1 ExpressionWarning is a warning information that targets a specific expression.
type ExpressionWarningV1alpha1 ¶
type ExpressionWarningV1alpha1 struct { // The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" FieldRef string `json:"fieldRef"` // The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. Warning string `json:"warning"` }
ExpressionWarningV1alpha1 ExpressionWarning is a warning information that targets a specific expression.
type ExpressionWarningV1beta1 ¶
type ExpressionWarningV1beta1 struct { // The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" FieldRef string `json:"fieldRef"` // The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. Warning string `json:"warning"` }
ExpressionWarningV1beta1 ExpressionWarning is a warning information that targets a specific expression.
type ExternalDocumentationV1 ¶
type ExternalDocumentationV1 struct { Description *string `json:"description,omitempty"` URL *string `json:"url,omitempty"` }
ExternalDocumentationV1 ExternalDocumentation allows referencing an external resource for extended documentation.
type ExternalMetricSourceV2 ¶
type ExternalMetricSourceV2 struct { // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` // MetricTarget defines the target value, average value, or average utilization of a specific metric Target MetricTargetV2 `json:"target"` }
ExternalMetricSourceV2 ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
type ExternalMetricStatusV2 ¶
type ExternalMetricStatusV2 struct { // MetricValueStatus holds the current value for a metric Current MetricValueStatusV2 `json:"current"` // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` }
ExternalMetricStatusV2 ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
type FCVolumeSourceV1 ¶
type FCVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // lun is Optional: FC target lun number Lun *int32 `json:"lun,omitempty"` // readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // targetWWNs is Optional: FC target worldwide names (WWNs) TargetWwNs []string `json:"targetWWNs,omitempty"` // wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. Wwids []string `json:"wwids,omitempty"` }
FCVolumeSourceV1 Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.
type FieldSelectorAttributesV1 ¶
type FieldSelectorAttributesV1 struct { // rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present. RawSelector *string `json:"rawSelector,omitempty"` // requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood. Requirements []FieldSelectorRequirementV1 `json:"requirements,omitempty"` }
FieldSelectorAttributesV1 FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.
type FieldSelectorRequirementV1 ¶
type FieldSelectorRequirementV1 struct { // key is the field selector key that the requirement applies to. Key string `json:"key"` // operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future. Operator string `json:"operator"` // 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. Values []string `json:"values,omitempty"` }
FieldSelectorRequirementV1 FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.
type FlexPersistentVolumeSourceV1 ¶
type FlexPersistentVolumeSourceV1 struct { // driver is the name of the driver to use for this volume. Driver string `json:"driver"` // fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. FSType *string `json:"fsType,omitempty"` // options is Optional: this field holds extra command options if any. Options *map[string]string `json:"options,omitempty"` // readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef *SecretReferenceV1 `json:"secretRef,omitempty"` }
FlexPersistentVolumeSourceV1 FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
type FlexVolumeSourceV1 ¶
type FlexVolumeSourceV1 struct { // driver is the name of the driver to use for this volume. Driver string `json:"driver"` // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. FSType *string `json:"fsType,omitempty"` // options is Optional: this field holds extra command options if any. Options *map[string]string `json:"options,omitempty"` // readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` }
FlexVolumeSourceV1 FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
type FlockerVolumeSourceV1 ¶
type FlockerVolumeSourceV1 struct { // datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated DatasetName *string `json:"datasetName,omitempty"` // datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset DatasetUUID *string `json:"datasetUUID,omitempty"` }
FlockerVolumeSourceV1 Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.
type FlowDistinguisherMethodV1 ¶
type FlowDistinguisherMethodV1 struct { // `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. Type string `json:"type"` }
FlowDistinguisherMethodV1 FlowDistinguisherMethod specifies the method of a flow distinguisher.
type FlowDistinguisherMethodV1beta3 ¶
type FlowDistinguisherMethodV1beta3 struct { // `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. Type string `json:"type"` }
FlowDistinguisherMethodV1beta3 FlowDistinguisherMethod specifies the method of a flow distinguisher.
type FlowSchemaConditionV1 ¶
type FlowSchemaConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // `message` is a human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // `status` is the status of the condition. Can be True, False, Unknown. Required. Status *string `json:"status,omitempty"` // `type` is the type of the condition. Required. Type *string `json:"type,omitempty"` }
FlowSchemaConditionV1 FlowSchemaCondition describes conditions for a FlowSchema.
type FlowSchemaConditionV1beta3 ¶
type FlowSchemaConditionV1beta3 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // `message` is a human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // `status` is the status of the condition. Can be True, False, Unknown. Required. Status *string `json:"status,omitempty"` // `type` is the type of the condition. Required. Type *string `json:"type,omitempty"` }
FlowSchemaConditionV1beta3 FlowSchemaCondition describes conditions for a FlowSchema.
type FlowSchemaListV1 ¶
type FlowSchemaListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // `items` is a list of FlowSchemas. Items []FlowSchemaV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
FlowSchemaListV1 FlowSchemaList is a list of FlowSchema objects.
type FlowSchemaListV1beta3 ¶
type FlowSchemaListV1beta3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // `items` is a list of FlowSchemas. Items []FlowSchemaV1beta3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
FlowSchemaListV1beta3 FlowSchemaList is a list of FlowSchema objects.
type FlowSchemaSpecV1 ¶
type FlowSchemaSpecV1 struct { // FlowDistinguisherMethod specifies the method of a flow distinguisher. DistinguisherMethod *FlowDistinguisherMethodV1 `json:"distinguisherMethod,omitempty"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. MatchingPrecedence *int32 `json:"matchingPrecedence,omitempty"` // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. PriorityLevelConfiguration PriorityLevelConfigurationReferenceV1 `json:"priorityLevelConfiguration"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. Rules []PolicyRulesWithSubjectsV1 `json:"rules,omitempty"` }
FlowSchemaSpecV1 FlowSchemaSpec describes how the FlowSchema's specification looks like.
type FlowSchemaSpecV1beta3 ¶
type FlowSchemaSpecV1beta3 struct { // FlowDistinguisherMethod specifies the method of a flow distinguisher. DistinguisherMethod *FlowDistinguisherMethodV1beta3 `json:"distinguisherMethod,omitempty"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. MatchingPrecedence *int32 `json:"matchingPrecedence,omitempty"` // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. PriorityLevelConfiguration PriorityLevelConfigurationReferenceV1beta3 `json:"priorityLevelConfiguration"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. Rules []PolicyRulesWithSubjectsV1beta3 `json:"rules,omitempty"` }
FlowSchemaSpecV1beta3 FlowSchemaSpec describes how the FlowSchema's specification looks like.
type FlowSchemaStatusV1 ¶
type FlowSchemaStatusV1 struct { // `conditions` is a list of the current states of FlowSchema. Conditions []FlowSchemaConditionV1 `json:"conditions,omitempty"` }
FlowSchemaStatusV1 FlowSchemaStatus represents the current state of a FlowSchema.
type FlowSchemaStatusV1beta3 ¶
type FlowSchemaStatusV1beta3 struct { // `conditions` is a list of the current states of FlowSchema. Conditions []FlowSchemaConditionV1beta3 `json:"conditions,omitempty"` }
FlowSchemaStatusV1beta3 FlowSchemaStatus represents the current state of a FlowSchema.
type FlowSchemaV1 ¶
type FlowSchemaV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // FlowSchemaSpec describes how the FlowSchema's specification looks like. Spec *FlowSchemaSpecV1 `json:"spec,omitempty"` // FlowSchemaStatus represents the current state of a FlowSchema. Status *FlowSchemaStatusV1 `json:"status,omitempty"` }
FlowSchemaV1 FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
type FlowSchemaV1beta3 ¶
type FlowSchemaV1beta3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // FlowSchemaSpec describes how the FlowSchema's specification looks like. Spec *FlowSchemaSpecV1beta3 `json:"spec,omitempty"` // FlowSchemaStatus represents the current state of a FlowSchema. Status *FlowSchemaStatusV1beta3 `json:"status,omitempty"` }
FlowSchemaV1beta3 FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
type ForZoneV1 ¶
type ForZoneV1 struct { // name represents the name of the zone. Name string `json:"name"` }
ForZoneV1 ForZone provides information about which zones should consume this endpoint.
type GCEPersistentDiskVolumeSourceV1 ¶
type GCEPersistentDiskVolumeSourceV1 struct { // fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk FSType *string `json:"fsType,omitempty"` // partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk Partition *int32 `json:"partition,omitempty"` // pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk PdName string `json:"pdName"` // readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk ReadOnly *bool `json:"readOnly,omitempty"` }
GCEPersistentDiskVolumeSourceV1 Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.
type GRPCActionV1 ¶
type GRPCActionV1 struct { // Port number of the gRPC service. Number must be in the range 1 to 65535. Port int32 `json:"port"` // Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. Service *string `json:"service,omitempty"` }
GRPCActionV1
type GitRepoVolumeSourceV1 ¶
type GitRepoVolumeSourceV1 struct { // directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. Directory *string `json:"directory,omitempty"` // repository is the URL Repository string `json:"repository"` // revision is the commit hash for the specified revision. Revision *string `json:"revision,omitempty"` }
GitRepoVolumeSourceV1 Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
type GlusterfsPersistentVolumeSourceV1 ¶
type GlusterfsPersistentVolumeSourceV1 struct { // endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod Endpoints string `json:"endpoints"` // endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod EndpointsNamespace *string `json:"endpointsNamespace,omitempty"` // path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod Path string `json:"path"` // readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod ReadOnly *bool `json:"readOnly,omitempty"` }
GlusterfsPersistentVolumeSourceV1 Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
type GlusterfsVolumeSourceV1 ¶
type GlusterfsVolumeSourceV1 struct { // endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod Endpoints string `json:"endpoints"` // path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod Path string `json:"path"` // readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod ReadOnly *bool `json:"readOnly,omitempty"` }
GlusterfsVolumeSourceV1 Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
type GroupSubjectV1 ¶
type GroupSubjectV1 struct { // name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. Name string `json:"name"` }
GroupSubjectV1 GroupSubject holds detailed information for group-kind subject.
type GroupSubjectV1beta3 ¶
type GroupSubjectV1beta3 struct { // name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. Name string `json:"name"` }
GroupSubjectV1beta3 GroupSubject holds detailed information for group-kind subject.
type GroupVersionForDiscoveryV1 ¶
type GroupVersionForDiscoveryV1 struct { // groupVersion specifies the API group and version in the form "group/version" GroupVersion string `json:"groupVersion"` // version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion. Version string `json:"version"` }
GroupVersionForDiscoveryV1 GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
type GroupVersionResourceV1alpha1 ¶
type GroupVersionResourceV1alpha1 struct { // The name of the group. Group *string `json:"group,omitempty"` // The name of the resource. Resource *string `json:"resource,omitempty"` // The name of the version. Version *string `json:"version,omitempty"` }
GroupVersionResourceV1alpha1 The names of the group, the version, and the resource.
type HPAScalingPolicyV2 ¶
type HPAScalingPolicyV2 struct { // periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). PeriodSeconds int32 `json:"periodSeconds"` // type is used to specify the scaling policy. Type string `json:"type"` // value contains the amount of change which is permitted by the policy. It must be greater than zero Value int32 `json:"value"` }
HPAScalingPolicyV2 HPAScalingPolicy is a single policy which must hold true for a specified past interval.
type HPAScalingRulesV2 ¶
type HPAScalingRulesV2 struct { // policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid Policies []HPAScalingPolicyV2 `json:"policies,omitempty"` // selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. SelectPolicy *string `json:"selectPolicy,omitempty"` // stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"` }
HPAScalingRulesV2 HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
type HTTPGetActionV1 ¶
type HTTPGetActionV1 struct { // Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. Host *string `json:"host,omitempty"` // Custom headers to set in the request. HTTP allows repeated headers. HTTPHeaders []HTTPHeaderV1 `json:"httpHeaders,omitempty"` // Path to access on the HTTP server. Path *string `json:"path,omitempty"` // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. Port string `json:"port"` // Scheme to use for connecting to the host. Defaults to HTTP. Scheme *string `json:"scheme,omitempty"` }
HTTPGetActionV1 HTTPGetAction describes an action based on HTTP Get requests.
type HTTPHeaderV1 ¶
type HTTPHeaderV1 struct { // The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. Name string `json:"name"` // The header field value Value string `json:"value"` }
HTTPHeaderV1 HTTPHeader describes a custom header to be used in HTTP probes
type HTTPIngressPathV1 ¶
type HTTPIngressPathV1 struct { // IngressBackend describes all endpoints for a given service and port. Backend IngressBackendV1 `json:"backend"` // path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". Path *string `json:"path,omitempty"` // pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is done on a path element by element basis. A path element refers is the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types. Implementations are required to support all path types. PathType string `json:"pathType"` }
HTTPIngressPathV1 HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.
type HTTPIngressRuleValueV1 ¶
type HTTPIngressRuleValueV1 struct { // paths is a collection of paths that map requests to backends. Paths []HTTPIngressPathV1 `json:"paths"` }
HTTPIngressRuleValueV1 HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.
type HorizontalPodAutoscalerBehaviorV2 ¶
type HorizontalPodAutoscalerBehaviorV2 struct { // HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. ScaleDown *HPAScalingRulesV2 `json:"scaleDown,omitempty"` // HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. ScaleUp *HPAScalingRulesV2 `json:"scaleUp,omitempty"` }
HorizontalPodAutoscalerBehaviorV2 HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
type HorizontalPodAutoscalerConditionV2 ¶
type HorizontalPodAutoscalerConditionV2 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // message is a human-readable explanation containing details about the transition Message *string `json:"message,omitempty"` // reason is the reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // status is the status of the condition (True, False, Unknown) Status string `json:"status"` // type describes the current condition Type string `json:"type"` }
HorizontalPodAutoscalerConditionV2 HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
type HorizontalPodAutoscalerListV1 ¶
type HorizontalPodAutoscalerListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of horizontal pod autoscaler objects. Items []HorizontalPodAutoscalerV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
HorizontalPodAutoscalerListV1 list of horizontal pod autoscaler objects.
type HorizontalPodAutoscalerListV2 ¶
type HorizontalPodAutoscalerListV2 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of horizontal pod autoscaler objects. Items []HorizontalPodAutoscalerV2 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
HorizontalPodAutoscalerListV2 HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.
type HorizontalPodAutoscalerSpecV1 ¶
type HorizontalPodAutoscalerSpecV1 struct { // maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas int32 `json:"maxReplicas"` // minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. MinReplicas *int32 `json:"minReplicas,omitempty"` // CrossVersionObjectReference contains enough information to let you identify the referred resource. ScaleTargetRef CrossVersionObjectReferenceV1 `json:"scaleTargetRef"` // targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"` }
HorizontalPodAutoscalerSpecV1 specification of a horizontal pod autoscaler.
type HorizontalPodAutoscalerSpecV2 ¶
type HorizontalPodAutoscalerSpecV2 struct { // HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). Behavior *HorizontalPodAutoscalerBehaviorV2 `json:"behavior,omitempty"` // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. MaxReplicas int32 `json:"maxReplicas"` // metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. Metrics []MetricSpecV2 `json:"metrics,omitempty"` // minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. MinReplicas *int32 `json:"minReplicas,omitempty"` // CrossVersionObjectReference contains enough information to let you identify the referred resource. ScaleTargetRef CrossVersionObjectReferenceV2 `json:"scaleTargetRef"` }
HorizontalPodAutoscalerSpecV2 HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
type HorizontalPodAutoscalerStatusV1 ¶
type HorizontalPodAutoscalerStatusV1 struct { // currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"` // currentReplicas is the current number of replicas of pods managed by this autoscaler. CurrentReplicas int32 `json:"currentReplicas"` // desiredReplicas is the desired number of replicas of pods managed by this autoscaler. DesiredReplicas int32 `json:"desiredReplicas"` // 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. LastScaleTime *time.Time `json:"lastScaleTime,omitempty"` // observedGeneration is the most recent generation observed by this autoscaler. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` }
HorizontalPodAutoscalerStatusV1 current status of a horizontal pod autoscaler
type HorizontalPodAutoscalerStatusV2 ¶
type HorizontalPodAutoscalerStatusV2 struct { // conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. Conditions []HorizontalPodAutoscalerConditionV2 `json:"conditions,omitempty"` // currentMetrics is the last read state of the metrics used by this autoscaler. CurrentMetrics []MetricStatusV2 `json:"currentMetrics,omitempty"` // currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. CurrentReplicas *int32 `json:"currentReplicas,omitempty"` // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. DesiredReplicas int32 `json:"desiredReplicas"` // 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. LastScaleTime *time.Time `json:"lastScaleTime,omitempty"` // observedGeneration is the most recent generation observed by this autoscaler. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` }
HorizontalPodAutoscalerStatusV2 HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
type HorizontalPodAutoscalerV1 ¶
type HorizontalPodAutoscalerV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // specification of a horizontal pod autoscaler. Spec *HorizontalPodAutoscalerSpecV1 `json:"spec,omitempty"` // current status of a horizontal pod autoscaler Status *HorizontalPodAutoscalerStatusV1 `json:"status,omitempty"` }
HorizontalPodAutoscalerV1 configuration of a horizontal pod autoscaler.
type HorizontalPodAutoscalerV2 ¶
type HorizontalPodAutoscalerV2 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. Spec *HorizontalPodAutoscalerSpecV2 `json:"spec,omitempty"` // HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. Status *HorizontalPodAutoscalerStatusV2 `json:"status,omitempty"` }
HorizontalPodAutoscalerV2 HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.
type HostAliasV1 ¶
type HostAliasV1 struct { // Hostnames for the above IP address. Hostnames []string `json:"hostnames,omitempty"` // IP address of the host file entry. IP string `json:"ip"` }
HostAliasV1 HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
type HostIPV1 ¶
type HostIPV1 struct { // IP is the IP address assigned to the host IP string `json:"ip"` }
HostIPV1 HostIP represents a single IP address allocated to the host.
type HostPathVolumeSourceV1 ¶
type HostPathVolumeSourceV1 struct { // path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath Path string `json:"path"` // type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath Type *string `json:"type,omitempty"` }
HostPathVolumeSourceV1 Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
type IPAddressListV1beta1 ¶
type IPAddressListV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of IPAddresses. Items []IPAddressV1beta1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
IPAddressListV1beta1 IPAddressList contains a list of IPAddress.
type IPAddressSpecV1beta1 ¶
type IPAddressSpecV1beta1 struct { // ParentReference describes a reference to a parent object. ParentRef ParentReferenceV1beta1 `json:"parentRef"` }
IPAddressSpecV1beta1 IPAddressSpec describe the attributes in an IP Address.
type IPAddressV1beta1 ¶
type IPAddressV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // IPAddressSpec describe the attributes in an IP Address. Spec *IPAddressSpecV1beta1 `json:"spec,omitempty"` }
IPAddressV1beta1 IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
type IPBlockV1 ¶
type IPBlockV1 struct { // cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" CIDR string `json:"cidr"` // except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range Except []string `json:"except,omitempty"` }
IPBlockV1 IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
type ISCSIPersistentVolumeSourceV1 ¶
type ISCSIPersistentVolumeSourceV1 struct { // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication ChapAuthDiscovery *bool `json:"chapAuthDiscovery,omitempty"` // chapAuthSession defines whether support iSCSI Session CHAP authentication ChapAuthSession *bool `json:"chapAuthSession,omitempty"` // fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi FSType *string `json:"fsType,omitempty"` // initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. InitiatorName *string `json:"initiatorName,omitempty"` // iqn is Target iSCSI Qualified Name. Iqn string `json:"iqn"` // iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). ISCSIInterface *string `json:"iscsiInterface,omitempty"` // lun is iSCSI Target Lun number. Lun int32 `json:"lun"` // portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). Portals []string `json:"portals,omitempty"` // readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. ReadOnly *bool `json:"readOnly,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef *SecretReferenceV1 `json:"secretRef,omitempty"` // targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). TargetPortal string `json:"targetPortal"` }
ISCSIPersistentVolumeSourceV1 ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
type ISCSIVolumeSourceV1 ¶
type ISCSIVolumeSourceV1 struct { // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication ChapAuthDiscovery *bool `json:"chapAuthDiscovery,omitempty"` // chapAuthSession defines whether support iSCSI Session CHAP authentication ChapAuthSession *bool `json:"chapAuthSession,omitempty"` // fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi FSType *string `json:"fsType,omitempty"` // initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. InitiatorName *string `json:"initiatorName,omitempty"` // iqn is the target iSCSI Qualified Name. Iqn string `json:"iqn"` // iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). ISCSIInterface *string `json:"iscsiInterface,omitempty"` // lun represents iSCSI Target Lun number. Lun int32 `json:"lun"` // portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). Portals []string `json:"portals,omitempty"` // readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` // targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). TargetPortal string `json:"targetPortal"` }
ISCSIVolumeSourceV1 Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
type ImageVolumeSourceV1 ¶
type ImageVolumeSourceV1 struct { // Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. PullPolicy *string `json:"pullPolicy,omitempty"` // Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. Reference *string `json:"reference,omitempty"` }
ImageVolumeSourceV1 ImageVolumeSource represents a image volume resource.
type InfoVersion ¶
type InfoVersion struct { BuildDate string `json:"buildDate"` Compiler string `json:"compiler"` GitCommit string `json:"gitCommit"` GitTreeState string `json:"gitTreeState"` GitVersion string `json:"gitVersion"` GoVersion string `json:"goVersion"` Major string `json:"major"` Minor string `json:"minor"` Platform string `json:"platform"` }
InfoVersion Info contains versioning information. how we'll want to distribute that information.
type IngressBackendV1 ¶
type IngressBackendV1 struct { // TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. Resource *TypedLocalObjectReferenceV1 `json:"resource,omitempty"` // IngressServiceBackend references a Kubernetes Service as a Backend. Service *IngressServiceBackendV1 `json:"service,omitempty"` }
IngressBackendV1 IngressBackend describes all endpoints for a given service and port.
type IngressClassListV1 ¶
type IngressClassListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of IngressClasses. Items []IngressClassV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
IngressClassListV1 IngressClassList is a collection of IngressClasses.
type IngressClassParametersReferenceV1 ¶
type IngressClassParametersReferenceV1 struct { // 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. APIGroup *string `json:"apiGroup,omitempty"` // kind is the type of resource being referenced. Kind string `json:"kind"` // name is the name of resource being referenced. Name string `json:"name"` // namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". Namespace *string `json:"namespace,omitempty"` // scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". Scope *string `json:"scope,omitempty"` }
IngressClassParametersReferenceV1 IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.
type IngressClassSpecV1 ¶
type IngressClassSpecV1 struct { // controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. Controller *string `json:"controller,omitempty"` // IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. Parameters *IngressClassParametersReferenceV1 `json:"parameters,omitempty"` }
IngressClassSpecV1 IngressClassSpec provides information about the class of an Ingress.
type IngressClassV1 ¶
type IngressClassV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // IngressClassSpec provides information about the class of an Ingress. Spec *IngressClassSpecV1 `json:"spec,omitempty"` }
IngressClassV1 IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.
type IngressListV1 ¶
type IngressListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of Ingress. Items []IngressV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
IngressListV1 IngressList is a collection of Ingress.
type IngressLoadBalancerIngressV1 ¶
type IngressLoadBalancerIngressV1 struct { // hostname is set for load-balancer ingress points that are DNS based. Hostname *string `json:"hostname,omitempty"` // ip is set for load-balancer ingress points that are IP based. IP *string `json:"ip,omitempty"` // ports provides information about the ports exposed by this LoadBalancer. Ports []IngressPortStatusV1 `json:"ports,omitempty"` }
IngressLoadBalancerIngressV1 IngressLoadBalancerIngress represents the status of a load-balancer ingress point.
type IngressLoadBalancerStatusV1 ¶
type IngressLoadBalancerStatusV1 struct { // ingress is a list containing ingress points for the load-balancer. Ingress []IngressLoadBalancerIngressV1 `json:"ingress,omitempty"` }
IngressLoadBalancerStatusV1 IngressLoadBalancerStatus represents the status of a load-balancer.
type IngressPortStatusV1 ¶
type IngressPortStatusV1 struct { // error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. Error *string `json:"error,omitempty"` // port is the port number of the ingress port. Port int32 `json:"port"` // protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP" Protocol string `json:"protocol"` }
IngressPortStatusV1 IngressPortStatus represents the error condition of a service port
type IngressRuleV1 ¶
type IngressRuleV1 struct { // host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. Host *string `json:"host,omitempty"` // HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. HTTP *HTTPIngressRuleValueV1 `json:"http,omitempty"` }
IngressRuleV1 IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
type IngressServiceBackendV1 ¶
type IngressServiceBackendV1 struct { // name is the referenced service. The service must exist in the same namespace as the Ingress object. Name string `json:"name"` // ServiceBackendPort is the service port being referenced. Port *ServiceBackendPortV1 `json:"port,omitempty"` }
IngressServiceBackendV1 IngressServiceBackend references a Kubernetes Service as a Backend.
type IngressSpecV1 ¶
type IngressSpecV1 struct { // IngressBackend describes all endpoints for a given service and port. DefaultBackend *IngressBackendV1 `json:"defaultBackend,omitempty"` // ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. IngressClassName *string `json:"ingressClassName,omitempty"` // rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. Rules []IngressRuleV1 `json:"rules,omitempty"` // tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. TLS []IngressTLSV1 `json:"tls,omitempty"` }
IngressSpecV1 IngressSpec describes the Ingress the user wishes to exist.
type IngressStatusV1 ¶
type IngressStatusV1 struct { // IngressLoadBalancerStatus represents the status of a load-balancer. LoadBalancer *IngressLoadBalancerStatusV1 `json:"loadBalancer,omitempty"` }
IngressStatusV1 IngressStatus describe the current state of the Ingress.
type IngressTLSV1 ¶
type IngressTLSV1 struct { // hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. Hosts []string `json:"hosts,omitempty"` // secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. SecretName *string `json:"secretName,omitempty"` }
IngressTLSV1 IngressTLS describes the transport layer security associated with an ingress.
type IngressV1 ¶
type IngressV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // IngressSpec describes the Ingress the user wishes to exist. Spec *IngressSpecV1 `json:"spec,omitempty"` // IngressStatus describe the current state of the Ingress. Status *IngressStatusV1 `json:"status,omitempty"` }
IngressV1 Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.
type JSONSchemaPropsV1 ¶
type JSONSchemaPropsV1 struct { Ref *string `json:"$ref,omitempty"` Schema *string `json:"$schema,omitempty"` // JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. AdditionalItems map[string]interface{} `json:"additionalItems,omitempty"` // JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. AdditionalProperties map[string]interface{} `json:"additionalProperties,omitempty"` AllOf []JSONSchemaPropsV1 `json:"allOf,omitempty"` AnyOf []JSONSchemaPropsV1 `json:"anyOf,omitempty"` // JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. Default map[string]interface{} `json:"default,omitempty"` Definitions map[string]JSONSchemaPropsV1 `json:"definitions,omitempty"` Dependencies *map[string]interface{} `json:"dependencies,omitempty"` Description *string `json:"description,omitempty"` Enum []map[string]interface{} `json:"enum,omitempty"` // JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. Example map[string]interface{} `json:"example,omitempty"` ExclusiveMaximum *bool `json:"exclusiveMaximum,omitempty"` ExclusiveMinimum *bool `json:"exclusiveMinimum,omitempty"` // ExternalDocumentation allows referencing an external resource for extended documentation. ExternalDocs *ExternalDocumentationV1 `json:"externalDocs,omitempty"` // format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. Format *string `json:"format,omitempty"` ID *string `json:"id,omitempty"` // JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. Items map[string]interface{} `json:"items,omitempty"` MaxItems *int64 `json:"maxItems,omitempty"` MaxLength *int64 `json:"maxLength,omitempty"` MaxProperties *int64 `json:"maxProperties,omitempty"` Maximum *float64 `json:"maximum,omitempty"` MinItems *int64 `json:"minItems,omitempty"` MinLength *int64 `json:"minLength,omitempty"` MinProperties *int64 `json:"minProperties,omitempty"` Minimum *float64 `json:"minimum,omitempty"` MultipleOf *float64 `json:"multipleOf,omitempty"` // JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). Not *JSONSchemaPropsV1 `json:"not,omitempty"` Nullable *bool `json:"nullable,omitempty"` OneOf []JSONSchemaPropsV1 `json:"oneOf,omitempty"` Pattern *string `json:"pattern,omitempty"` PatternProperties map[string]JSONSchemaPropsV1 `json:"patternProperties,omitempty"` Properties map[string]JSONSchemaPropsV1 `json:"properties,omitempty"` Required []string `json:"required,omitempty"` Title *string `json:"title,omitempty"` Type *string `json:"type,omitempty"` UniqueItems *bool `json:"uniqueItems,omitempty"` // x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). XKubernetesEmbeddedResource *bool `json:"x-kubernetes-embedded-resource,omitempty"` // x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more XKubernetesIntOrString *bool `json:"x-kubernetes-int-or-string,omitempty"` // x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). The properties specified must either be required or have a default value, to ensure those properties are present for all list items. XKubernetesListMapKeys []string `json:"x-kubernetes-list-map-keys,omitempty"` // x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: 1) `atomic`: the list is treated as a single entity, like a scalar. Atomic lists will be entirely replaced when updated. This extension may be used on any type of list (struct, scalar, ...). 2) `set`: Sets are lists that must not have multiple items with the same value. Each value must be a scalar, an object with x-kubernetes-map-type `atomic` or an array with x-kubernetes-list-type `atomic`. 3) `map`: These lists are like maps in that their elements have a non-index key used to identify them. Order is preserved upon merge. The map tag must only be used on a list with elements of type object. Defaults to atomic for arrays. XKubernetesListType *string `json:"x-kubernetes-list-type,omitempty"` // x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: 1) `granular`: These maps are actual maps (key-value pairs) and each fields are independent from each other (they can each be manipulated by separate actors). This is the default behaviour for all maps. 2) `atomic`: the list is treated as a single entity, like a scalar. Atomic maps will be entirely replaced when updated. XKubernetesMapType *string `json:"x-kubernetes-map-type,omitempty"` // x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. XKubernetesPreserveUnknownFields *bool `json:"x-kubernetes-preserve-unknown-fields,omitempty"` // x-kubernetes-validations describes a list of validation rules written in the CEL expression language. XKubernetesValidations []ValidationRuleV1 `json:"x-kubernetes-validations,omitempty"` }
JSONSchemaPropsV1 JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
type JobConditionV1 ¶
type JobConditionV1 struct { // 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. LastProbeTime *time.Time `json:"lastProbeTime,omitempty"` // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // Human readable message indicating details about last transition. Message *string `json:"message,omitempty"` // (brief) reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of job condition, Complete or Failed. Type string `json:"type"` }
JobConditionV1 JobCondition describes current state of a job.
type JobListV1 ¶
type JobListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of Jobs. Items []JobV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
JobListV1 JobList is a collection of jobs.
type JobSpecV1 ¶
type JobSpecV1 struct { // Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` // Specifies the number of retries before marking this job failed. Defaults to 6 BackoffLimit *int32 `json:"backoffLimit,omitempty"` // Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). BackoffLimitPerIndex *int32 `json:"backoffLimitPerIndex,omitempty"` // completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. CompletionMode *string `json:"completionMode,omitempty"` // Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Completions *int32 `json:"completions,omitempty"` // ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable. This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default). ManagedBy *string `json:"managedBy,omitempty"` // manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector ManualSelector *bool `json:"manualSelector,omitempty"` // Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). MaxFailedIndexes *int32 `json:"maxFailedIndexes,omitempty"` // Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Parallelism *int32 `json:"parallelism,omitempty"` // PodFailurePolicy describes how failed pods influence the backoffLimit. PodFailurePolicy *PodFailurePolicyV1 `json:"podFailurePolicy,omitempty"` // podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. PodReplacementPolicy *string `json:"podReplacementPolicy,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` // SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. SuccessPolicy *SuccessPolicyV1 `json:"successPolicy,omitempty"` // suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. Suspend *bool `json:"suspend,omitempty"` // PodTemplateSpec describes the data a pod should have when created from a template Template PodTemplateSpecV1 `json:"template"` // ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` }
JobSpecV1 JobSpec describes how the job execution will look like.
type JobStatusV1 ¶
type JobStatusV1 struct { // The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs. Active *int32 `json:"active,omitempty"` // completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". CompletedIndexes *string `json:"completedIndexes,omitempty"` // 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. CompletionTime *time.Time `json:"completionTime,omitempty"` // The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Conditions []JobConditionV1 `json:"conditions,omitempty"` // The number of pods which reached phase Failed. The value increases monotonically. Failed *int32 `json:"failed,omitempty"` // FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). FailedIndexes *string `json:"failedIndexes,omitempty"` // The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). Ready *int32 `json:"ready,omitempty"` // 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. StartTime *time.Time `json:"startTime,omitempty"` // The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. Succeeded *int32 `json:"succeeded,omitempty"` // The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default). Terminating *int32 `json:"terminating,omitempty"` // UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. UncountedTerminatedPods *UncountedTerminatedPodsV1 `json:"uncountedTerminatedPods,omitempty"` }
JobStatusV1 JobStatus represents the current state of a Job.
type JobTemplateSpecV1 ¶
type JobTemplateSpecV1 struct { // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // JobSpec describes how the job execution will look like. Spec *JobSpecV1 `json:"spec,omitempty"` }
JobTemplateSpecV1 JobTemplateSpec describes the data a Job should have when created from a template
type JobV1 ¶
type JobV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // JobSpec describes how the job execution will look like. Spec *JobSpecV1 `json:"spec,omitempty"` // JobStatus represents the current state of a Job. Status *JobStatusV1 `json:"status,omitempty"` }
JobV1 Job represents the configuration of a single job.
type KeyToPathV1 ¶
type KeyToPathV1 struct { // key is the key to project. Key string `json:"key"` // mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. Mode *int32 `json:"mode,omitempty"` // path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. Path string `json:"path"` }
KeyToPathV1 Maps a string key to a path within a volume.
type LabelSelectorAttributesV1 ¶
type LabelSelectorAttributesV1 struct { // rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present. RawSelector *string `json:"rawSelector,omitempty"` // requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood. Requirements []LabelSelectorRequirementV1 `json:"requirements,omitempty"` }
LabelSelectorAttributesV1 LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.
type LabelSelectorRequirementV1 ¶
type LabelSelectorRequirementV1 struct { // key is the label key that the selector applies to. Key string `json:"key"` // operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. Operator string `json:"operator"` // 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. Values []string `json:"values,omitempty"` }
LabelSelectorRequirementV1 A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
type LabelSelectorV1 ¶
type LabelSelectorV1 struct { // matchExpressions is a list of label selector requirements. The requirements are ANDed. MatchExpressions []LabelSelectorRequirementV1 `json:"matchExpressions,omitempty"` // 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. MatchLabels *map[string]string `json:"matchLabels,omitempty"` }
LabelSelectorV1 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.
type LeaseCandidateListV1alpha1 ¶
type LeaseCandidateListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of schema objects. Items []LeaseCandidateV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
LeaseCandidateListV1alpha1 LeaseCandidateList is a list of Lease objects.
type LeaseCandidateSpecV1alpha1 ¶
type LeaseCandidateSpecV1alpha1 struct { // BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion" BinaryVersion *string `json:"binaryVersion,omitempty"` // EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion" EmulationVersion *string `json:"emulationVersion,omitempty"` // LeaseName is the name of the lease for which this candidate is contending. This field is immutable. LeaseName string `json:"leaseName"` // MicroTime is version of Time with microsecond level precision. PingTime *time.Time `json:"pingTime,omitempty"` // PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y will be used. - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. PreferredStrategies []string `json:"preferredStrategies"` // MicroTime is version of Time with microsecond level precision. RenewTime *time.Time `json:"renewTime,omitempty"` }
LeaseCandidateSpecV1alpha1 LeaseCandidateSpec is a specification of a Lease.
type LeaseCandidateV1alpha1 ¶
type LeaseCandidateV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // LeaseCandidateSpec is a specification of a Lease. Spec *LeaseCandidateSpecV1alpha1 `json:"spec,omitempty"` }
LeaseCandidateV1alpha1 LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
type LeaseListV1 ¶
type LeaseListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of schema objects. Items []LeaseV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
LeaseListV1 LeaseList is a list of Lease objects.
type LeaseSpecV1 ¶
type LeaseSpecV1 struct { // MicroTime is version of Time with microsecond level precision. AcquireTime *time.Time `json:"acquireTime,omitempty"` // holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field. HolderIdentity *string `json:"holderIdentity,omitempty"` // leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime. LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"` // leaseTransitions is the number of transitions of a lease between holders. LeaseTransitions *int32 `json:"leaseTransitions,omitempty"` // PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set. PreferredHolder *string `json:"preferredHolder,omitempty"` // MicroTime is version of Time with microsecond level precision. RenewTime *time.Time `json:"renewTime,omitempty"` // Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. Strategy *string `json:"strategy,omitempty"` }
LeaseSpecV1 LeaseSpec is a specification of a Lease.
type LeaseV1 ¶
type LeaseV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // LeaseSpec is a specification of a Lease. Spec *LeaseSpecV1 `json:"spec,omitempty"` }
LeaseV1 Lease defines a lease concept.
type LifecycleHandlerV1 ¶
type LifecycleHandlerV1 struct { // ExecAction describes a "run in container" action. Exec *ExecActionV1 `json:"exec,omitempty"` // HTTPGetAction describes an action based on HTTP Get requests. HTTPGet *HTTPGetActionV1 `json:"httpGet,omitempty"` // SleepAction describes a "sleep" action. Sleep *SleepActionV1 `json:"sleep,omitempty"` // TCPSocketAction describes an action based on opening a socket TCPSocket *TCPSocketActionV1 `json:"tcpSocket,omitempty"` }
LifecycleHandlerV1 LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
type LifecycleV1 ¶
type LifecycleV1 struct { // LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. PostStart *LifecycleHandlerV1 `json:"postStart,omitempty"` // LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. PreStop *LifecycleHandlerV1 `json:"preStop,omitempty"` }
LifecycleV1 Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
type LimitRangeItemV1 ¶
type LimitRangeItemV1 struct { // Default resource requirement limit value by resource name if resource limit is omitted. Default *map[string]string `json:"default,omitempty"` // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. DefaultRequest *map[string]string `json:"defaultRequest,omitempty"` // Max usage constraints on this kind by resource name. Max *map[string]string `json:"max,omitempty"` // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. MaxLimitRequestRatio *map[string]string `json:"maxLimitRequestRatio,omitempty"` // Min usage constraints on this kind by resource name. Min *map[string]string `json:"min,omitempty"` // Type of resource that this limit applies to. Type string `json:"type"` }
LimitRangeItemV1 LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
type LimitRangeListV1 ¶
type LimitRangeListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Items []LimitRangeV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
LimitRangeListV1 LimitRangeList is a list of LimitRange items.
type LimitRangeSpecV1 ¶
type LimitRangeSpecV1 struct { // Limits is the list of LimitRangeItem objects that are enforced. Limits []LimitRangeItemV1 `json:"limits"` }
LimitRangeSpecV1 LimitRangeSpec defines a min/max usage limit for resources that match on kind.
type LimitRangeV1 ¶
type LimitRangeV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // LimitRangeSpec defines a min/max usage limit for resources that match on kind. Spec *LimitRangeSpecV1 `json:"spec,omitempty"` }
LimitRangeV1 LimitRange sets resource usage limits for each kind of resource in a Namespace.
type LimitResponseV1 ¶
type LimitResponseV1 struct { // QueuingConfiguration holds the configuration parameters for queuing Queuing *QueuingConfigurationV1 `json:"queuing,omitempty"` // `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. Type string `json:"type"` }
LimitResponseV1 LimitResponse defines how to handle requests that can not be executed right now.
type LimitResponseV1beta3 ¶
type LimitResponseV1beta3 struct { // QueuingConfiguration holds the configuration parameters for queuing Queuing *QueuingConfigurationV1beta3 `json:"queuing,omitempty"` // `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. Type string `json:"type"` }
LimitResponseV1beta3 LimitResponse defines how to handle requests that can not be executed right now.
type LimitedPriorityLevelConfigurationV1 ¶
type LimitedPriorityLevelConfigurationV1 struct { // `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"` // `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) LendablePercent *int32 `json:"lendablePercent,omitempty"` // LimitResponse defines how to handle requests that can not be executed right now. LimitResponse *LimitResponseV1 `json:"limitResponse,omitempty"` NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"` }
LimitedPriorityLevelConfigurationV1 LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit?
type LimitedPriorityLevelConfigurationV1beta3 ¶
type LimitedPriorityLevelConfigurationV1beta3 struct { // `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"` // `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) LendablePercent *int32 `json:"lendablePercent,omitempty"` // LimitResponse defines how to handle requests that can not be executed right now. LimitResponse *LimitResponseV1beta3 `json:"limitResponse,omitempty"` NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"` }
LimitedPriorityLevelConfigurationV1beta3 LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit?
type LinuxContainerUserV1 ¶
type LinuxContainerUserV1 struct { // GID is the primary gid initially attached to the first process in the container GID int64 `json:"gid"` // SupplementalGroups are the supplemental groups initially attached to the first process in the container SupplementalGroups []int64 `json:"supplementalGroups,omitempty"` // UID is the primary uid initially attached to the first process in the container UID int64 `json:"uid"` }
LinuxContainerUserV1 LinuxContainerUser represents user identity information in Linux containers
type ListMetaV1 ¶
type ListMetaV1 struct { // 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. Continue *string `json:"continue,omitempty"` // 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. RemainingItemCount *int64 `json:"remainingItemCount,omitempty"` // 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 ResourceVersion *string `json:"resourceVersion,omitempty"` // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. SelfLink *string `json:"selfLink,omitempty"` }
ListMetaV1 ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
type LoadBalancerIngressV1 ¶
type LoadBalancerIngressV1 struct { // Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) Hostname *string `json:"hostname,omitempty"` // IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) IP *string `json:"ip,omitempty"` // IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. IPMode *string `json:"ipMode,omitempty"` // Ports is a list of records of service ports If used, every port defined in the service should have an entry in it Ports []PortStatusV1 `json:"ports,omitempty"` }
LoadBalancerIngressV1 LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.
type LoadBalancerStatusV1 ¶
type LoadBalancerStatusV1 struct { // Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. Ingress []LoadBalancerIngressV1 `json:"ingress,omitempty"` }
LoadBalancerStatusV1 LoadBalancerStatus represents the status of a load-balancer.
type LocalObjectReferenceV1 ¶
type LocalObjectReferenceV1 struct { // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` }
LocalObjectReferenceV1 LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
type LocalSubjectAccessReviewV1 ¶
type LocalSubjectAccessReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set Spec SubjectAccessReviewSpecV1 `json:"spec"` // SubjectAccessReviewStatus Status *SubjectAccessReviewStatusV1 `json:"status,omitempty"` }
LocalSubjectAccessReviewV1 LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.
type LocalVolumeSourceV1 ¶
type LocalVolumeSourceV1 struct { // fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. FSType *string `json:"fsType,omitempty"` // path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). Path string `json:"path"` }
LocalVolumeSourceV1 Local represents directly-attached storage with node affinity (Beta feature)
type ManagedFieldsEntryV1 ¶
type ManagedFieldsEntryV1 struct { // 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. APIVersion *string `json:"apiVersion,omitempty"` // FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" FieldsType *string `json:"fieldsType,omitempty"` // 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:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> 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 FieldsV1 map[string]interface{} `json:"fieldsV1,omitempty"` // Manager is an identifier of the workflow managing these fields. Manager *string `json:"manager,omitempty"` // Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. Operation *string `json:"operation,omitempty"` // Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. Subresource *string `json:"subresource,omitempty"` // 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 *time.Time `json:"time,omitempty"` }
ManagedFieldsEntryV1 ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.
type MatchConditionV1 ¶
type MatchConditionV1 struct { // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. Expression string `json:"expression"` // Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. Name string `json:"name"` }
MatchConditionV1 MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
type MatchConditionV1alpha1 ¶
type MatchConditionV1alpha1 struct { // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. Expression string `json:"expression"` // Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. Name string `json:"name"` }
MatchConditionV1alpha1
type MatchConditionV1beta1 ¶
type MatchConditionV1beta1 struct { // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. Expression string `json:"expression"` // Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. Name string `json:"name"` }
MatchConditionV1beta1 MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.
type MatchResourcesV1 ¶
type MatchResourcesV1 struct { // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) ExcludeResourceRules []NamedRuleWithOperationsV1 `json:"excludeResourceRules,omitempty"` // matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to "Equivalent" MatchPolicy *string `json:"matchPolicy,omitempty"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. ObjectSelector *LabelSelectorV1 `json:"objectSelector,omitempty"` // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. ResourceRules []NamedRuleWithOperationsV1 `json:"resourceRules,omitempty"` }
MatchResourcesV1 MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
type MatchResourcesV1alpha1 ¶
type MatchResourcesV1alpha1 struct { // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) ExcludeResourceRules []NamedRuleWithOperationsV1alpha1 `json:"excludeResourceRules,omitempty"` // matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to "Equivalent" MatchPolicy *string `json:"matchPolicy,omitempty"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. ObjectSelector *LabelSelectorV1 `json:"objectSelector,omitempty"` // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. ResourceRules []NamedRuleWithOperationsV1alpha1 `json:"resourceRules,omitempty"` }
MatchResourcesV1alpha1 MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
type MatchResourcesV1beta1 ¶
type MatchResourcesV1beta1 struct { // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) ExcludeResourceRules []NamedRuleWithOperationsV1beta1 `json:"excludeResourceRules,omitempty"` // matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to "Equivalent" MatchPolicy *string `json:"matchPolicy,omitempty"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. ObjectSelector *LabelSelectorV1 `json:"objectSelector,omitempty"` // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. ResourceRules []NamedRuleWithOperationsV1beta1 `json:"resourceRules,omitempty"` }
MatchResourcesV1beta1 MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
type MetricIdentifierV2 ¶
type MetricIdentifierV2 struct { // name is the name of the given metric Name string `json:"name"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` }
MetricIdentifierV2 MetricIdentifier defines the name and optionally selector for a metric
type MetricSpecV2 ¶
type MetricSpecV2 struct { // ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. ContainerResource *ContainerResourceMetricSourceV2 `json:"containerResource,omitempty"` // ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). External *ExternalMetricSourceV2 `json:"external,omitempty"` // ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). Object *ObjectMetricSourceV2 `json:"object,omitempty"` // PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. Pods *PodsMetricSourceV2 `json:"pods,omitempty"` // ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. Resource *ResourceMetricSourceV2 `json:"resource,omitempty"` // type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled Type string `json:"type"` }
MetricSpecV2 MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
type MetricStatusV2 ¶
type MetricStatusV2 struct { // ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. ContainerResource *ContainerResourceMetricStatusV2 `json:"containerResource,omitempty"` // ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. External *ExternalMetricStatusV2 `json:"external,omitempty"` // ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). Object *ObjectMetricStatusV2 `json:"object,omitempty"` // PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). Pods *PodsMetricStatusV2 `json:"pods,omitempty"` // ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Resource *ResourceMetricStatusV2 `json:"resource,omitempty"` // type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled Type string `json:"type"` }
MetricStatusV2 MetricStatus describes the last-read state of a single metric.
type MetricTargetV2 ¶
type MetricTargetV2 struct { // averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type AverageUtilization *int32 `json:"averageUtilization,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. AverageValue *string `json:"averageValue,omitempty"` // type represents whether the metric type is Utilization, Value, or AverageValue Type string `json:"type"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. Value *string `json:"value,omitempty"` }
MetricTargetV2 MetricTarget defines the target value, average value, or average utilization of a specific metric
type MetricValueStatusV2 ¶
type MetricValueStatusV2 struct { // currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. AverageUtilization *int32 `json:"averageUtilization,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. AverageValue *string `json:"averageValue,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. Value *string `json:"value,omitempty"` }
MetricValueStatusV2 MetricValueStatus holds the current value for a metric
type MigrationConditionV1alpha1 ¶
type MigrationConditionV1alpha1 struct { // 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. LastUpdateTime *time.Time `json:"lastUpdateTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of the condition. Type string `json:"type"` }
MigrationConditionV1alpha1 Describes the state of a migration at a certain point.
type ModifyVolumeStatusV1 ¶
type ModifyVolumeStatusV1 struct { // status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. Status string `json:"status"` // targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled TargetVolumeAttributesClassName *string `json:"targetVolumeAttributesClassName,omitempty"` }
ModifyVolumeStatusV1 ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
type MutatingWebhookConfigurationListV1 ¶
type MutatingWebhookConfigurationListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of MutatingWebhookConfiguration. Items []MutatingWebhookConfigurationV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
MutatingWebhookConfigurationListV1 MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
type MutatingWebhookConfigurationV1 ¶
type MutatingWebhookConfigurationV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Webhooks is a list of webhooks and the affected resources and operations. Webhooks []MutatingWebhookV1 `json:"webhooks,omitempty"` }
MutatingWebhookConfigurationV1 MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
type MutatingWebhookV1 ¶
type MutatingWebhookV1 struct { // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. AdmissionReviewVersions []string `json:"admissionReviewVersions"` // WebhookClientConfig contains the information to make a TLS connection with the webhook ClientConfig WebhookClientConfigV1 `json:"clientConfig"` // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. FailurePolicy *string `json:"failurePolicy,omitempty"` // MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped MatchConditions []MatchConditionV1 `json:"matchConditions,omitempty"` // matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to "Equivalent" MatchPolicy *string `json:"matchPolicy,omitempty"` // The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. Name string `json:"name"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. ObjectSelector *LabelSelectorV1 `json:"objectSelector,omitempty"` // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to "Never". ReinvocationPolicy *string `json:"reinvocationPolicy,omitempty"` // Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. Rules []RuleWithOperationsV1 `json:"rules,omitempty"` // SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. SideEffects string `json:"sideEffects"` // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
MutatingWebhookV1 MutatingWebhook describes an admission webhook and the resources and operations it applies to.
type NFSVolumeSourceV1 ¶
type NFSVolumeSourceV1 struct { // path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs Path string `json:"path"` // readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs ReadOnly *bool `json:"readOnly,omitempty"` // server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs Server string `json:"server"` }
NFSVolumeSourceV1 Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
type NamedRuleWithOperationsV1 ¶
type NamedRuleWithOperationsV1 struct { // APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. APIGroups []string `json:"apiGroups,omitempty"` // APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. APIVersions []string `json:"apiVersions,omitempty"` // Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. Operations []string `json:"operations,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty"` // Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. Resources []string `json:"resources,omitempty"` // scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". Scope *string `json:"scope,omitempty"` }
NamedRuleWithOperationsV1 NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
type NamedRuleWithOperationsV1alpha1 ¶
type NamedRuleWithOperationsV1alpha1 struct { // APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. APIGroups []string `json:"apiGroups,omitempty"` // APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. APIVersions []string `json:"apiVersions,omitempty"` // Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. Operations []string `json:"operations,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty"` // Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. Resources []string `json:"resources,omitempty"` // scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". Scope *string `json:"scope,omitempty"` }
NamedRuleWithOperationsV1alpha1 NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
type NamedRuleWithOperationsV1beta1 ¶
type NamedRuleWithOperationsV1beta1 struct { // APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. APIGroups []string `json:"apiGroups,omitempty"` // APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. APIVersions []string `json:"apiVersions,omitempty"` // Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. Operations []string `json:"operations,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty"` // Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. Resources []string `json:"resources,omitempty"` // scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". Scope *string `json:"scope,omitempty"` }
NamedRuleWithOperationsV1beta1 NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
type NamespaceConditionV1 ¶
type NamespaceConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of namespace controller condition. Type string `json:"type"` }
NamespaceConditionV1 NamespaceCondition contains details about state of namespace.
type NamespaceListV1 ¶
type NamespaceListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ Items []NamespaceV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
NamespaceListV1 NamespaceList is a list of Namespaces.
type NamespaceSpecV1 ¶
type NamespaceSpecV1 struct { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ Finalizers []string `json:"finalizers,omitempty"` }
NamespaceSpecV1 NamespaceSpec describes the attributes on a Namespace.
type NamespaceStatusV1 ¶
type NamespaceStatusV1 struct { // Represents the latest available observations of a namespace's current state. Conditions []NamespaceConditionV1 `json:"conditions,omitempty"` // Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ Phase *string `json:"phase,omitempty"` }
NamespaceStatusV1 NamespaceStatus is information about the current status of a Namespace.
type NamespaceV1 ¶
type NamespaceV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // NamespaceSpec describes the attributes on a Namespace. Spec *NamespaceSpecV1 `json:"spec,omitempty"` // NamespaceStatus is information about the current status of a Namespace. Status *NamespaceStatusV1 `json:"status,omitempty"` }
NamespaceV1 Namespace provides a scope for Names. Use of multiple namespaces is optional.
type NetworkPolicyEgressRuleV1 ¶
type NetworkPolicyEgressRuleV1 struct { // ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. Ports []NetworkPolicyPortV1 `json:"ports,omitempty"` // to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. To []NetworkPolicyPeerV1 `json:"to,omitempty"` }
NetworkPolicyEgressRuleV1 NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
type NetworkPolicyIngressRuleV1 ¶
type NetworkPolicyIngressRuleV1 struct { // from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. From []NetworkPolicyPeerV1 `json:"from,omitempty"` // ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. Ports []NetworkPolicyPortV1 `json:"ports,omitempty"` }
NetworkPolicyIngressRuleV1 NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
type NetworkPolicyListV1 ¶
type NetworkPolicyListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of schema objects. Items []NetworkPolicyV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
NetworkPolicyListV1 NetworkPolicyList is a list of NetworkPolicy objects.
type NetworkPolicyPeerV1 ¶
type NetworkPolicyPeerV1 struct { // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. IPBlock *IPBlockV1 `json:"ipBlock,omitempty"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. PodSelector *LabelSelectorV1 `json:"podSelector,omitempty"` }
NetworkPolicyPeerV1 NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
type NetworkPolicyPortV1 ¶
type NetworkPolicyPortV1 struct { // endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. EndPort *int32 `json:"endPort,omitempty"` // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. Port *string `json:"port,omitempty"` // protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. Protocol *string `json:"protocol,omitempty"` }
NetworkPolicyPortV1 NetworkPolicyPort describes a port to allow traffic on
type NetworkPolicySpecV1 ¶
type NetworkPolicySpecV1 struct { // egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 Egress []NetworkPolicyEgressRuleV1 `json:"egress,omitempty"` // ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) Ingress []NetworkPolicyIngressRuleV1 `json:"ingress,omitempty"` // 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. PodSelector LabelSelectorV1 `json:"podSelector"` // policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 PolicyTypes []string `json:"policyTypes,omitempty"` }
NetworkPolicySpecV1 NetworkPolicySpec provides the specification of a NetworkPolicy
type NetworkPolicyV1 ¶
type NetworkPolicyV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // NetworkPolicySpec provides the specification of a NetworkPolicy Spec *NetworkPolicySpecV1 `json:"spec,omitempty"` }
NetworkPolicyV1 NetworkPolicy describes what network traffic is allowed for a set of Pods
type NodeAddressV1 ¶
type NodeAddressV1 struct { // The node address. Address string `json:"address"` // Node address type, one of Hostname, ExternalIP or InternalIP. Type string `json:"type"` }
NodeAddressV1 NodeAddress contains information for the node's address.
type NodeAffinityV1 ¶
type NodeAffinityV1 struct { // The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTermV1 `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` // A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. RequiredDuringSchedulingIgnoredDuringExecution *NodeSelectorV1 `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
NodeAffinityV1 Node affinity is a group of node affinity scheduling rules.
type NodeConditionV1 ¶
type NodeConditionV1 struct { // 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. LastHeartbeatTime *time.Time `json:"lastHeartbeatTime,omitempty"` // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // Human readable message indicating details about last transition. Message *string `json:"message,omitempty"` // (brief) reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of node condition. Type string `json:"type"` }
NodeConditionV1 NodeCondition contains condition information for a node.
type NodeConfigSourceV1 ¶
type NodeConfigSourceV1 struct { // ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration ConfigMap *ConfigMapNodeConfigSourceV1 `json:"configMap,omitempty"` }
NodeConfigSourceV1 NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22
type NodeConfigStatusV1 ¶
type NodeConfigStatusV1 struct { // NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 Active *NodeConfigSourceV1 `json:"active,omitempty"` // NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 Assigned *NodeConfigSourceV1 `json:"assigned,omitempty"` // Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. Error *string `json:"error,omitempty"` // NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 LastKnownGood *NodeConfigSourceV1 `json:"lastKnownGood,omitempty"` }
NodeConfigStatusV1 NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
type NodeDaemonEndpointsV1 ¶
type NodeDaemonEndpointsV1 struct { // DaemonEndpoint contains information about a single Daemon endpoint. KubeletEndpoint *DaemonEndpointV1 `json:"kubeletEndpoint,omitempty"` }
NodeDaemonEndpointsV1 NodeDaemonEndpoints lists ports opened by daemons running on the Node.
type NodeFeaturesV1 ¶
type NodeFeaturesV1 struct { // SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. SupplementalGroupsPolicy *bool `json:"supplementalGroupsPolicy,omitempty"` }
NodeFeaturesV1 NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.
type NodeListV1 ¶
type NodeListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of nodes Items []NodeV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
NodeListV1 NodeList is the whole list of all Nodes which have been registered with master.
type NodeRuntimeHandlerFeaturesV1 ¶
type NodeRuntimeHandlerFeaturesV1 struct { // RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty"` // UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. UserNamespaces *bool `json:"userNamespaces,omitempty"` }
NodeRuntimeHandlerFeaturesV1 NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.
type NodeRuntimeHandlerV1 ¶
type NodeRuntimeHandlerV1 struct { // NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. Features *NodeRuntimeHandlerFeaturesV1 `json:"features,omitempty"` // Runtime handler name. Empty for the default runtime handler. Name *string `json:"name,omitempty"` }
NodeRuntimeHandlerV1 NodeRuntimeHandler is a set of runtime handler information.
type NodeSelectorRequirementV1 ¶
type NodeSelectorRequirementV1 struct { // The label key that the selector applies to. Key string `json:"key"` // Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Operator string `json:"operator"` // 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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. Values []string `json:"values,omitempty"` }
NodeSelectorRequirementV1 A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
type NodeSelectorTermV1 ¶
type NodeSelectorTermV1 struct { // A list of node selector requirements by node's labels. MatchExpressions []NodeSelectorRequirementV1 `json:"matchExpressions,omitempty"` // A list of node selector requirements by node's fields. MatchFields []NodeSelectorRequirementV1 `json:"matchFields,omitempty"` }
NodeSelectorTermV1 A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
type NodeSelectorV1 ¶
type NodeSelectorV1 struct { // Required. A list of node selector terms. The terms are ORed. NodeSelectorTerms []NodeSelectorTermV1 `json:"nodeSelectorTerms"` }
NodeSelectorV1 A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
type NodeSpecV1 ¶
type NodeSpecV1 struct { // NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 ConfigSource *NodeConfigSourceV1 `json:"configSource,omitempty"` // Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 ExternalID *string `json:"externalID,omitempty"` // PodCIDR represents the pod IP range assigned to the node. PodCIDR *string `json:"podCIDR,omitempty"` // podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. PodCidRs []string `json:"podCIDRs,omitempty"` // ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> ProviderID *string `json:"providerID,omitempty"` // If specified, the node's taints. Taints []TaintV1 `json:"taints,omitempty"` // Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration Unschedulable *bool `json:"unschedulable,omitempty"` }
NodeSpecV1 NodeSpec describes the attributes that a node is created with.
type NodeStatusV1 ¶
type NodeStatusV1 struct { // List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). Addresses []NodeAddressV1 `json:"addresses,omitempty"` // Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. Allocatable *map[string]string `json:"allocatable,omitempty"` // Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity Capacity *map[string]string `json:"capacity,omitempty"` // Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition Conditions []NodeConditionV1 `json:"conditions,omitempty"` // NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. Config *NodeConfigStatusV1 `json:"config,omitempty"` // NodeDaemonEndpoints lists ports opened by daemons running on the Node. DaemonEndpoints *NodeDaemonEndpointsV1 `json:"daemonEndpoints,omitempty"` // NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. Features *NodeFeaturesV1 `json:"features,omitempty"` // List of container images on this node Images []ContainerImageV1 `json:"images,omitempty"` // NodeSystemInfo is a set of ids/uuids to uniquely identify the node. NodeInfo *NodeSystemInfoV1 `json:"nodeInfo,omitempty"` // NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. Phase *string `json:"phase,omitempty"` // The available runtime handlers. RuntimeHandlers []NodeRuntimeHandlerV1 `json:"runtimeHandlers,omitempty"` // List of volumes that are attached to the node. VolumesAttached []AttachedVolumeV1 `json:"volumesAttached,omitempty"` // List of attachable volumes in use (mounted) by the node. VolumesInUse []string `json:"volumesInUse,omitempty"` }
NodeStatusV1 NodeStatus is information about the current status of a node.
type NodeSystemInfoV1 ¶
type NodeSystemInfoV1 struct { // The Architecture reported by the node Architecture string `json:"architecture"` // Boot ID reported by the node. BootID string `json:"bootID"` // ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). ContainerRuntimeVersion string `json:"containerRuntimeVersion"` // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). KernelVersion string `json:"kernelVersion"` // Deprecated: KubeProxy Version reported by the node. KubeProxyVersion string `json:"kubeProxyVersion"` // Kubelet Version reported by the node. KubeletVersion string `json:"kubeletVersion"` // MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html MachineID string `json:"machineID"` // The Operating System reported by the node OperatingSystem string `json:"operatingSystem"` // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). OSImage string `json:"osImage"` // SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid SystemUUID string `json:"systemUUID"` }
NodeSystemInfoV1 NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
type NodeV1 ¶
type NodeV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // NodeSpec describes the attributes that a node is created with. Spec *NodeSpecV1 `json:"spec,omitempty"` // NodeStatus is information about the current status of a node. Status *NodeStatusV1 `json:"status,omitempty"` }
NodeV1 Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).
type NonResourceAttributesV1 ¶
type NonResourceAttributesV1 struct { // Path is the URL path of the request Path *string `json:"path,omitempty"` // Verb is the standard HTTP verb Verb *string `json:"verb,omitempty"` }
NonResourceAttributesV1 NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface
type NonResourcePolicyRuleV1 ¶
type NonResourcePolicyRuleV1 struct { // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - "/healthz" is legal - "/hea*" is illegal - "/hea" is legal but matches nothing - "/hea/*" also matches nothing - "/healthz/*" matches all per-component health checks. "*" matches all non-resource urls. if it is present, it must be the only entry. Required. NonResourceUrLs []string `json:"nonResourceURLs"` // `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. Verbs []string `json:"verbs"` }
NonResourcePolicyRuleV1 NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
type NonResourcePolicyRuleV1beta3 ¶
type NonResourcePolicyRuleV1beta3 struct { // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - "/healthz" is legal - "/hea*" is illegal - "/hea" is legal but matches nothing - "/hea/*" also matches nothing - "/healthz/*" matches all per-component health checks. "*" matches all non-resource urls. if it is present, it must be the only entry. Required. NonResourceUrLs []string `json:"nonResourceURLs"` // `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. Verbs []string `json:"verbs"` }
NonResourcePolicyRuleV1beta3 NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
type NonResourceRuleV1 ¶
type NonResourceRuleV1 struct { // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. NonResourceUrLs []string `json:"nonResourceURLs,omitempty"` // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. Verbs []string `json:"verbs"` }
NonResourceRuleV1 NonResourceRule holds information that describes a rule for the non-resource
type ObjectFieldSelectorV1 ¶
type ObjectFieldSelectorV1 struct { // Version of the schema the FieldPath is written in terms of, defaults to "v1". APIVersion *string `json:"apiVersion,omitempty"` // Path of the field to select in the specified API version. FieldPath string `json:"fieldPath"` }
ObjectFieldSelectorV1 ObjectFieldSelector selects an APIVersioned field of an object.
type ObjectMetaV1 ¶
type ObjectMetaV1 struct { // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Annotations *map[string]string `json:"annotations,omitempty"` // 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. CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"` // 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. DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` // 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. DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"` // 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. Finalizers []string `json:"finalizers,omitempty"` // 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 return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency GenerateName *string `json:"generateName,omitempty"` // A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. Generation *int64 `json:"generation,omitempty"` // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Labels *map[string]string `json:"labels,omitempty"` // 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. ManagedFields []ManagedFieldsEntryV1 `json:"managedFields,omitempty"` // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names Name *string `json:"name,omitempty"` // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces Namespace *string `json:"namespace,omitempty"` // 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. OwnerReferences []OwnerReferenceV1 `json:"ownerReferences,omitempty"` // 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 ResourceVersion *string `json:"resourceVersion,omitempty"` // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. SelfLink *string `json:"selfLink,omitempty"` // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids UID *string `json:"uid,omitempty"` }
ObjectMetaV1 ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
type ObjectMetricSourceV2 ¶
type ObjectMetricSourceV2 struct { // CrossVersionObjectReference contains enough information to let you identify the referred resource. DescribedObject CrossVersionObjectReferenceV2 `json:"describedObject"` // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` // MetricTarget defines the target value, average value, or average utilization of a specific metric Target MetricTargetV2 `json:"target"` }
ObjectMetricSourceV2 ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
type ObjectMetricStatusV2 ¶
type ObjectMetricStatusV2 struct { // MetricValueStatus holds the current value for a metric Current MetricValueStatusV2 `json:"current"` // CrossVersionObjectReference contains enough information to let you identify the referred resource. DescribedObject CrossVersionObjectReferenceV2 `json:"describedObject"` // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` }
ObjectMetricStatusV2 ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
type ObjectReferenceV1 ¶
type ObjectReferenceV1 struct { // API version of the referent. APIVersion *string `json:"apiVersion,omitempty"` // If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. FieldPath *string `json:"fieldPath,omitempty"` // Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ Namespace *string `json:"namespace,omitempty"` // Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency ResourceVersion *string `json:"resourceVersion,omitempty"` // UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids UID *string `json:"uid,omitempty"` }
ObjectReferenceV1 ObjectReference contains enough information to let you inspect or modify the referred object.
type OpaqueDeviceConfigurationV1alpha3 ¶
type OpaqueDeviceConfigurationV1alpha3 struct { // Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. Driver string `json:"driver"` // RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.Object `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.RawExtension `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // On the wire, the JSON will look something like this: { "kind":"MyAPIObject", "apiVersion":"v1", "myPlugin": { "kind":"PluginA", "aOption":"foo", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) Parameters map[string]interface{} `json:"parameters"` }
OpaqueDeviceConfigurationV1alpha3 OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
type OverheadV1 ¶
type OverheadV1 struct { // podFixed represents the fixed resource overhead associated with running a pod. PodFixed *map[string]string `json:"podFixed,omitempty"` }
OverheadV1 Overhead structure represents the resource overhead associated with running a pod.
type OwnerReferenceV1 ¶
type OwnerReferenceV1 struct { // API version of the referent. APIVersion string `json:"apiVersion"` // 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. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"` // If true, this reference points to the managing controller. Controller *bool `json:"controller,omitempty"` // Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind"` // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names Name string `json:"name"` // UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids UID string `json:"uid"` }
OwnerReferenceV1 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.
type ParamKindV1 ¶
type ParamKindV1 struct { // APIVersion is the API group version the resources belong to. In format of "group/version". Required. APIVersion *string `json:"apiVersion,omitempty"` // Kind is the API kind the resources belong to. Required. Kind *string `json:"kind,omitempty"` }
ParamKindV1 ParamKind is a tuple of Group Kind and Version.
type ParamKindV1alpha1 ¶
type ParamKindV1alpha1 struct { // APIVersion is the API group version the resources belong to. In format of "group/version". Required. APIVersion *string `json:"apiVersion,omitempty"` // Kind is the API kind the resources belong to. Required. Kind *string `json:"kind,omitempty"` }
ParamKindV1alpha1 ParamKind is a tuple of Group Kind and Version.
type ParamKindV1beta1 ¶
type ParamKindV1beta1 struct { // APIVersion is the API group version the resources belong to. In format of "group/version". Required. APIVersion *string `json:"apiVersion,omitempty"` // Kind is the API kind the resources belong to. Required. Kind *string `json:"kind,omitempty"` }
ParamKindV1beta1 ParamKind is a tuple of Group Kind and Version.
type ParamRefV1 ¶
type ParamRefV1 struct { // name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. Name *string `json:"name,omitempty"` // namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. Namespace *string `json:"namespace,omitempty"` // `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required ParameterNotFoundAction *string `json:"parameterNotFoundAction,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` }
ParamRefV1 ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
type ParamRefV1alpha1 ¶
type ParamRefV1alpha1 struct { // `name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. Name *string `json:"name,omitempty"` // namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. Namespace *string `json:"namespace,omitempty"` // `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` ParameterNotFoundAction *string `json:"parameterNotFoundAction,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` }
ParamRefV1alpha1 ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
type ParamRefV1beta1 ¶
type ParamRefV1beta1 struct { // name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. Name *string `json:"name,omitempty"` // namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. Namespace *string `json:"namespace,omitempty"` // `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required ParameterNotFoundAction *string `json:"parameterNotFoundAction,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` }
ParamRefV1beta1 ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
type ParentReferenceV1beta1 ¶
type ParentReferenceV1beta1 struct { // Group is the group of the object being referenced. Group *string `json:"group,omitempty"` // Name is the name of the object being referenced. Name string `json:"name"` // Namespace is the namespace of the object being referenced. Namespace *string `json:"namespace,omitempty"` // Resource is the resource of the object being referenced. Resource string `json:"resource"` }
ParentReferenceV1beta1 ParentReference describes a reference to a parent object.
type PersistentVolumeClaimConditionV1 ¶
type PersistentVolumeClaimConditionV1 struct { // 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. LastProbeTime *time.Time `json:"lastProbeTime,omitempty"` // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // message is the human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "Resizing" that means the underlying persistent volume is being resized. Reason *string `json:"reason,omitempty"` Status string `json:"status"` Type string `json:"type"` }
PersistentVolumeClaimConditionV1 PersistentVolumeClaimCondition contains details about state of pvc
type PersistentVolumeClaimListV1 ¶
type PersistentVolumeClaimListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims Items []PersistentVolumeClaimV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PersistentVolumeClaimListV1 PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
type PersistentVolumeClaimSpecV1 ¶
type PersistentVolumeClaimSpecV1 struct { // accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 AccessModes []string `json:"accessModes,omitempty"` // TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. DataSource *TypedLocalObjectReferenceV1 `json:"dataSource,omitempty"` DataSourceRef *TypedObjectReferenceV1 `json:"dataSourceRef,omitempty"` // VolumeResourceRequirements describes the storage resource requirements for a volume. Resources *VolumeResourceRequirementsV1 `json:"resources,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` // storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 StorageClassName *string `json:"storageClassName,omitempty"` // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` // volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. VolumeMode *string `json:"volumeMode,omitempty"` // volumeName is the binding reference to the PersistentVolume backing this claim. VolumeName *string `json:"volumeName,omitempty"` }
PersistentVolumeClaimSpecV1 PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
type PersistentVolumeClaimStatusV1 ¶
type PersistentVolumeClaimStatusV1 struct { // accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 AccessModes []string `json:"accessModes,omitempty"` // allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. AllocatedResourceStatuses *map[string]string `json:"allocatedResourceStatuses,omitempty"` // allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. AllocatedResources *map[string]string `json:"allocatedResources,omitempty"` // capacity represents the actual resources of the underlying volume. Capacity *map[string]string `json:"capacity,omitempty"` // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. Conditions []PersistentVolumeClaimConditionV1 `json:"conditions,omitempty"` // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). CurrentVolumeAttributesClassName *string `json:"currentVolumeAttributesClassName,omitempty"` // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation ModifyVolumeStatus *ModifyVolumeStatusV1 `json:"modifyVolumeStatus,omitempty"` // phase represents the current phase of PersistentVolumeClaim. Phase *string `json:"phase,omitempty"` }
PersistentVolumeClaimStatusV1 PersistentVolumeClaimStatus is the current status of a persistent volume claim.
type PersistentVolumeClaimTemplateV1 ¶
type PersistentVolumeClaimTemplateV1 struct { // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes Spec PersistentVolumeClaimSpecV1 `json:"spec"` }
PersistentVolumeClaimTemplateV1 PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
type PersistentVolumeClaimV1 ¶
type PersistentVolumeClaimV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes Spec *PersistentVolumeClaimSpecV1 `json:"spec,omitempty"` // PersistentVolumeClaimStatus is the current status of a persistent volume claim. Status *PersistentVolumeClaimStatusV1 `json:"status,omitempty"` }
PersistentVolumeClaimV1 PersistentVolumeClaim is a user's request for and claim to a persistent volume
type PersistentVolumeClaimVolumeSourceV1 ¶
type PersistentVolumeClaimVolumeSourceV1 struct { // claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims ClaimName string `json:"claimName"` // readOnly Will force the ReadOnly setting in VolumeMounts. Default false. ReadOnly *bool `json:"readOnly,omitempty"` }
PersistentVolumeClaimVolumeSourceV1 PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
type PersistentVolumeListV1 ¶
type PersistentVolumeListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes Items []PersistentVolumeV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PersistentVolumeListV1 PersistentVolumeList is a list of PersistentVolume items.
type PersistentVolumeSpecV1 ¶
type PersistentVolumeSpecV1 struct { // accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes AccessModes []string `json:"accessModes,omitempty"` // Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceV1 `json:"awsElasticBlockStore,omitempty"` // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. AzureDisk *AzureDiskVolumeSourceV1 `json:"azureDisk,omitempty"` // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. AzureFile *AzureFilePersistentVolumeSourceV1 `json:"azureFile,omitempty"` // capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity Capacity *map[string]string `json:"capacity,omitempty"` // Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. Cephfs *CephFSPersistentVolumeSourceV1 `json:"cephfs,omitempty"` // Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. Cinder *CinderPersistentVolumeSourceV1 `json:"cinder,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. ClaimRef *ObjectReferenceV1 `json:"claimRef,omitempty"` // Represents storage that is managed by an external CSI volume driver (Beta feature) CSI *CSIPersistentVolumeSourceV1 `json:"csi,omitempty"` // Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. FC *FCVolumeSourceV1 `json:"fc,omitempty"` // FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. FlexVolume *FlexPersistentVolumeSourceV1 `json:"flexVolume,omitempty"` // Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. Flocker *FlockerVolumeSourceV1 `json:"flocker,omitempty"` // Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. GCEPersistentDisk *GCEPersistentDiskVolumeSourceV1 `json:"gcePersistentDisk,omitempty"` // Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. Glusterfs *GlusterfsPersistentVolumeSourceV1 `json:"glusterfs,omitempty"` // Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. HostPath *HostPathVolumeSourceV1 `json:"hostPath,omitempty"` // ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. ISCSI *ISCSIPersistentVolumeSourceV1 `json:"iscsi,omitempty"` // Local represents directly-attached storage with node affinity (Beta feature) Local *LocalVolumeSourceV1 `json:"local,omitempty"` // mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options MountOptions []string `json:"mountOptions,omitempty"` // Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. NFS *NFSVolumeSourceV1 `json:"nfs,omitempty"` // VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. NodeAffinity *VolumeNodeAffinityV1 `json:"nodeAffinity,omitempty"` // persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming PersistentVolumeReclaimPolicy *string `json:"persistentVolumeReclaimPolicy,omitempty"` // Represents a Photon Controller persistent disk resource. PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceV1 `json:"photonPersistentDisk,omitempty"` // PortworxVolumeSource represents a Portworx volume resource. PortworxVolume *PortworxVolumeSourceV1 `json:"portworxVolume,omitempty"` // Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. Quobyte *QuobyteVolumeSourceV1 `json:"quobyte,omitempty"` // Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. RBD *RBDPersistentVolumeSourceV1 `json:"rbd,omitempty"` // ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume ScaleIO *ScaleIOPersistentVolumeSourceV1 `json:"scaleIO,omitempty"` // storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. StorageClassName *string `json:"storageClassName,omitempty"` // Represents a StorageOS persistent volume resource. Storageos *StorageOSPersistentVolumeSourceV1 `json:"storageos,omitempty"` // Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` // volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. VolumeMode *string `json:"volumeMode,omitempty"` // Represents a vSphere volume resource. VsphereVolume *VsphereVirtualDiskVolumeSourceV1 `json:"vsphereVolume,omitempty"` }
PersistentVolumeSpecV1 PersistentVolumeSpec is the specification of a persistent volume.
type PersistentVolumeStatusV1 ¶
type PersistentVolumeStatusV1 struct { // 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. LastPhaseTransitionTime *time.Time `json:"lastPhaseTransitionTime,omitempty"` // message is a human-readable message indicating details about why the volume is in this state. Message *string `json:"message,omitempty"` // phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase Phase *string `json:"phase,omitempty"` // reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. Reason *string `json:"reason,omitempty"` }
PersistentVolumeStatusV1 PersistentVolumeStatus is the current status of a persistent volume.
type PersistentVolumeV1 ¶
type PersistentVolumeV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PersistentVolumeSpec is the specification of a persistent volume. Spec *PersistentVolumeSpecV1 `json:"spec,omitempty"` // PersistentVolumeStatus is the current status of a persistent volume. Status *PersistentVolumeStatusV1 `json:"status,omitempty"` }
PersistentVolumeV1 PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
type PhotonPersistentDiskVolumeSourceV1 ¶
type PhotonPersistentDiskVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // pdID is the ID that identifies Photon Controller persistent disk PdID string `json:"pdID"` }
PhotonPersistentDiskVolumeSourceV1 Represents a Photon Controller persistent disk resource.
type PodAffinityTermV1 ¶
type PodAffinityTermV1 struct { // 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. LabelSelector *LabelSelectorV1 `json:"labelSelector,omitempty"` // MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). MatchLabelKeys []string `json:"matchLabelKeys,omitempty"` // MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). MismatchLabelKeys []string `json:"mismatchLabelKeys,omitempty"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". Namespaces []string `json:"namespaces,omitempty"` // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. TopologyKey string `json:"topologyKey"` }
PodAffinityTermV1 Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
type PodAffinityV1 ¶
type PodAffinityV1 struct { // The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTermV1 `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` // If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTermV1 `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
PodAffinityV1 Pod affinity is a group of inter pod affinity scheduling rules.
type PodAntiAffinityV1 ¶
type PodAntiAffinityV1 struct { // The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTermV1 `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` // If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTermV1 `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
PodAntiAffinityV1 Pod anti affinity is a group of inter pod anti affinity scheduling rules.
type PodConditionV1 ¶
type PodConditionV1 struct { // 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. LastProbeTime *time.Time `json:"lastProbeTime,omitempty"` // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // Human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions Status string `json:"status"` // Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions Type string `json:"type"` }
PodConditionV1 PodCondition contains details for the current condition of this pod.
type PodDNSConfigOptionV1 ¶
type PodDNSConfigOptionV1 struct { // Required. Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` }
PodDNSConfigOptionV1 PodDNSConfigOption defines DNS resolver options of a pod.
type PodDNSConfigV1 ¶
type PodDNSConfigV1 struct { // A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. Nameservers []string `json:"nameservers,omitempty"` // A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. Options []PodDNSConfigOptionV1 `json:"options,omitempty"` // A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. Searches []string `json:"searches,omitempty"` }
PodDNSConfigV1 PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
type PodDisruptionBudgetListV1 ¶
type PodDisruptionBudgetListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of PodDisruptionBudgets Items []PodDisruptionBudgetV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PodDisruptionBudgetListV1 PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
type PodDisruptionBudgetSpecV1 ¶
type PodDisruptionBudgetSpecV1 struct { string `json:"maxUnavailable,omitempty"` // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. MinAvailable *string `json:"minAvailable,omitempty"` // 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. Selector *LabelSelectorV1 `json:"selector,omitempty"` // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). UnhealthyPodEvictionPolicy *string `json:"unhealthyPodEvictionPolicy,omitempty"` }MaxUnavailable *
PodDisruptionBudgetSpecV1 PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type PodDisruptionBudgetStatusV1 ¶
type PodDisruptionBudgetStatusV1 struct { // Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. Conditions []ConditionV1 `json:"conditions,omitempty"` // current number of healthy pods CurrentHealthy int32 `json:"currentHealthy"` // minimum desired number of healthy pods DesiredHealthy int32 `json:"desiredHealthy"` // DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. DisruptedPods *map[string]string `json:"disruptedPods,omitempty"` // Number of pod disruptions that are currently allowed. DisruptionsAllowed int32 `json:"disruptionsAllowed"` // total number of pods counted by this disruption budget ExpectedPods int32 `json:"expectedPods"` // Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` }
PodDisruptionBudgetStatusV1 PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.
type PodDisruptionBudgetV1 ¶
type PodDisruptionBudgetV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. Spec *PodDisruptionBudgetSpecV1 `json:"spec,omitempty"` // PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. Status *PodDisruptionBudgetStatusV1 `json:"status,omitempty"` }
PodDisruptionBudgetV1 PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodFailurePolicyOnExitCodesRequirementV1 ¶
type PodFailurePolicyOnExitCodesRequirementV1 struct { // Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. ContainerName *string `json:"containerName,omitempty"` // Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. Operator string `json:"operator"` // Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. Values []int32 `json:"values"` }
PodFailurePolicyOnExitCodesRequirementV1 PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.
type PodFailurePolicyOnPodConditionsPatternV1 ¶
type PodFailurePolicyOnPodConditionsPatternV1 struct { // Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. Status string `json:"status"` // Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. Type string `json:"type"` }
PodFailurePolicyOnPodConditionsPatternV1 PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
type PodFailurePolicyRuleV1 ¶
type PodFailurePolicyRuleV1 struct { // Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. Action string `json:"action"` // PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. OnExitCodes *PodFailurePolicyOnExitCodesRequirementV1 `json:"onExitCodes,omitempty"` // Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. OnPodConditions []PodFailurePolicyOnPodConditionsPatternV1 `json:"onPodConditions,omitempty"` }
PodFailurePolicyRuleV1 PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
type PodFailurePolicyV1 ¶
type PodFailurePolicyV1 struct { // A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. Rules []PodFailurePolicyRuleV1 `json:"rules"` }
PodFailurePolicyV1 PodFailurePolicy describes how failed pods influence the backoffLimit.
type PodIPV1 ¶
type PodIPV1 struct { // IP is the IP address assigned to the pod IP string `json:"ip"` }
PodIPV1 PodIP represents a single IP address allocated to the pod.
type PodListV1 ¶
type PodListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md Items []PodV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PodListV1 PodList is a list of Pods.
type PodOSV1 ¶
type PodOSV1 struct { // Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null Name string `json:"name"` }
PodOSV1 PodOS defines the OS parameters of a pod.
type PodReadinessGateV1 ¶
type PodReadinessGateV1 struct { // ConditionType refers to a condition in the pod's condition list with matching type. ConditionType string `json:"conditionType"` }
PodReadinessGateV1 PodReadinessGate contains the reference to a pod condition
type PodResourceClaimStatusV1 ¶
type PodResourceClaimStatusV1 struct { // Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. Name string `json:"name"` // ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. ResourceClaimName *string `json:"resourceClaimName,omitempty"` }
PodResourceClaimStatusV1 PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.
type PodResourceClaimV1 ¶
type PodResourceClaimV1 struct { // Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. Name string `json:"name"` // ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. ResourceClaimName *string `json:"resourceClaimName,omitempty"` // ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. ResourceClaimTemplateName *string `json:"resourceClaimTemplateName,omitempty"` }
PodResourceClaimV1 PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
type PodSchedulingContextListV1alpha3 ¶
type PodSchedulingContextListV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of PodSchedulingContext objects. Items []PodSchedulingContextV1alpha3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PodSchedulingContextListV1alpha3 PodSchedulingContextList is a collection of Pod scheduling objects.
type PodSchedulingContextSpecV1alpha3 ¶
type PodSchedulingContextSpecV1alpha3 struct { // PotentialNodes lists nodes where the Pod might be able to run. The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. PotentialNodes []string `json:"potentialNodes,omitempty"` // SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted. SelectedNode *string `json:"selectedNode,omitempty"` }
PodSchedulingContextSpecV1alpha3 PodSchedulingContextSpec describes where resources for the Pod are needed.
type PodSchedulingContextStatusV1alpha3 ¶
type PodSchedulingContextStatusV1alpha3 struct { // ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode. ResourceClaims []ResourceClaimSchedulingStatusV1alpha3 `json:"resourceClaims,omitempty"` }
PodSchedulingContextStatusV1alpha3 PodSchedulingContextStatus describes where resources for the Pod can be allocated.
type PodSchedulingContextV1alpha3 ¶
type PodSchedulingContextV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PodSchedulingContextSpec describes where resources for the Pod are needed. Spec PodSchedulingContextSpecV1alpha3 `json:"spec"` // PodSchedulingContextStatus describes where resources for the Pod can be allocated. Status *PodSchedulingContextStatusV1alpha3 `json:"status,omitempty"` }
PodSchedulingContextV1alpha3 PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
type PodSchedulingGateV1 ¶
type PodSchedulingGateV1 struct { // Name of the scheduling gate. Each scheduling gate must have a unique name field. Name string `json:"name"` }
PodSchedulingGateV1 PodSchedulingGate is associated to a Pod to guard its scheduling.
type PodSecurityContextV1 ¶
type PodSecurityContextV1 struct { // AppArmorProfile defines a pod or container's AppArmor settings. AppArmorProfile *AppArmorProfileV1 `json:"appArmorProfile,omitempty"` // A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. FSGroup *int64 `json:"fsGroup,omitempty"` // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. FSGroupChangePolicy *string `json:"fsGroupChangePolicy,omitempty"` // The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. RunAsGroup *int64 `json:"runAsGroup,omitempty"` // Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` // The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. RunAsUser *int64 `json:"runAsUser,omitempty"` // SELinuxOptions are the labels to be applied to the container SELinuxOptions *SELinuxOptionsV1 `json:"seLinuxOptions,omitempty"` // SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. SeccompProfile *SeccompProfileV1 `json:"seccompProfile,omitempty"` // A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. SupplementalGroups []int64 `json:"supplementalGroups,omitempty"` // Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. SupplementalGroupsPolicy *string `json:"supplementalGroupsPolicy,omitempty"` // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. Sysctls []SysctlV1 `json:"sysctls,omitempty"` // WindowsSecurityContextOptions contain Windows-specific options and credentials. WindowsOptions *WindowsSecurityContextOptionsV1 `json:"windowsOptions,omitempty"` }
PodSecurityContextV1 PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
type PodSpecV1 ¶
type PodSpecV1 struct { // Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` // Affinity is a group of affinity scheduling rules. Affinity *AffinityV1 `json:"affinity,omitempty"` // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` // List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. Containers []ContainerV1 `json:"containers"` // PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. DNSConfig *PodDNSConfigV1 `json:"dnsConfig,omitempty"` // Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. DNSPolicy *string `json:"dnsPolicy,omitempty"` // EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. EphemeralContainers []EphemeralContainerV1 `json:"ephemeralContainers,omitempty"` // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. HostAliases []HostAliasV1 `json:"hostAliases,omitempty"` // Use the host's ipc namespace. Optional: Default to false. HostIPC *bool `json:"hostIPC,omitempty"` // Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. HostNetwork *bool `json:"hostNetwork,omitempty"` // Use the host's pid namespace. Optional: Default to false. HostPID *bool `json:"hostPID,omitempty"` // Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. HostUsers *bool `json:"hostUsers,omitempty"` // Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. Hostname *string `json:"hostname,omitempty"` // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod ImagePullSecrets []LocalObjectReferenceV1 `json:"imagePullSecrets,omitempty"` // List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ InitContainers []ContainerV1 `json:"initContainers,omitempty"` // NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename NodeName *string `json:"nodeName,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ NodeSelector *map[string]string `json:"nodeSelector,omitempty"` // PodOS defines the OS parameters of a pod. OS *PodOSV1 `json:"os,omitempty"` // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md Overhead *map[string]string `json:"overhead,omitempty"` // PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. PreemptionPolicy *string `json:"preemptionPolicy,omitempty"` // The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. Priority *int32 `json:"priority,omitempty"` // If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. PriorityClassName *string `json:"priorityClassName,omitempty"` // If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates ReadinessGates []PodReadinessGateV1 `json:"readinessGates,omitempty"` // ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. ResourceClaims []PodResourceClaimV1 `json:"resourceClaims,omitempty"` // Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy RestartPolicy *string `json:"restartPolicy,omitempty"` // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class RuntimeClassName *string `json:"runtimeClassName,omitempty"` // If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. SchedulerName *string `json:"schedulerName,omitempty"` // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. SchedulingGates []PodSchedulingGateV1 `json:"schedulingGates,omitempty"` // PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. SecurityContext *PodSecurityContextV1 `json:"securityContext,omitempty"` // DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. ServiceAccount *string `json:"serviceAccount,omitempty"` // ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ServiceAccountName *string `json:"serviceAccountName,omitempty"` // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. SetHostnameAsFqdn *bool `json:"setHostnameAsFQDN,omitempty"` ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` // If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>". If not specified, the pod will not have a domainname at all. Subdomain *string `json:"subdomain,omitempty"` // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // If specified, the pod's tolerations. Tolerations []TolerationV1 `json:"tolerations,omitempty"` // TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. TopologySpreadConstraints []TopologySpreadConstraintV1 `json:"topologySpreadConstraints,omitempty"` // List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes Volumes []VolumeV1 `json:"volumes,omitempty"` }
PodSpecV1 PodSpec is a description of a pod.
type PodStatusV1 ¶
type PodStatusV1 struct { // Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions Conditions []PodConditionV1 `json:"conditions,omitempty"` // The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status ContainerStatuses []ContainerStatusV1 `json:"containerStatuses,omitempty"` // Status for any ephemeral containers that have run in this pod. EphemeralContainerStatuses []ContainerStatusV1 `json:"ephemeralContainerStatuses,omitempty"` // hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod HostIP *string `json:"hostIP,omitempty"` // hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. HostIPs []HostIPV1 `json:"hostIPs,omitempty"` // The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status InitContainerStatuses []ContainerStatusV1 `json:"initContainerStatuses,omitempty"` // A human readable message indicating details about why the pod is in this condition. Message *string `json:"message,omitempty"` // nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. NominatedNodeName *string `json:"nominatedNodeName,omitempty"` // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase Phase *string `json:"phase,omitempty"` // podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. PodIP *string `json:"podIP,omitempty"` // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. PodIPs []PodIPV1 `json:"podIPs,omitempty"` // The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes QOSClass *string `json:"qosClass,omitempty"` // A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' Reason *string `json:"reason,omitempty"` // Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed" Resize *string `json:"resize,omitempty"` // Status of resource claims. ResourceClaimStatuses []PodResourceClaimStatusV1 `json:"resourceClaimStatuses,omitempty"` // 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. StartTime *time.Time `json:"startTime,omitempty"` }
PodStatusV1 PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.
type PodTemplateListV1 ¶
type PodTemplateListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of pod templates Items []PodTemplateV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PodTemplateListV1 PodTemplateList is a list of PodTemplates.
type PodTemplateSpecV1 ¶
type PodTemplateSpecV1 struct { // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PodSpec is a description of a pod. Spec *PodSpecV1 `json:"spec,omitempty"` }
PodTemplateSpecV1 PodTemplateSpec describes the data a pod should have when created from a template
type PodTemplateV1 ¶
type PodTemplateV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PodTemplateSpec describes the data a pod should have when created from a template Template *PodTemplateSpecV1 `json:"template,omitempty"` }
PodTemplateV1 PodTemplate describes a template for creating copies of a predefined pod.
type PodV1 ¶
type PodV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PodSpec is a description of a pod. Spec *PodSpecV1 `json:"spec,omitempty"` // PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. Status *PodStatusV1 `json:"status,omitempty"` }
PodV1 Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.
type PodsMetricSourceV2 ¶
type PodsMetricSourceV2 struct { // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` // MetricTarget defines the target value, average value, or average utilization of a specific metric Target MetricTargetV2 `json:"target"` }
PodsMetricSourceV2 PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
type PodsMetricStatusV2 ¶
type PodsMetricStatusV2 struct { // MetricValueStatus holds the current value for a metric Current MetricValueStatusV2 `json:"current"` // MetricIdentifier defines the name and optionally selector for a metric Metric MetricIdentifierV2 `json:"metric"` }
PodsMetricStatusV2 PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
type PolicyRuleV1 ¶
type PolicyRuleV1 struct { // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. APIGroups []string `json:"apiGroups,omitempty"` // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. NonResourceUrLs []string `json:"nonResourceURLs,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty"` // Resources is a list of resources this rule applies to. '*' represents all resources. Resources []string `json:"resources,omitempty"` // Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. Verbs []string `json:"verbs"` }
PolicyRuleV1 PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
type PolicyRulesWithSubjectsV1 ¶
type PolicyRulesWithSubjectsV1 struct { // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. NonResourceRules []NonResourcePolicyRuleV1 `json:"nonResourceRules,omitempty"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. ResourceRules []ResourcePolicyRuleV1 `json:"resourceRules,omitempty"` // subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. Subjects []SubjectV1 `json:"subjects"` }
PolicyRulesWithSubjectsV1 PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
type PolicyRulesWithSubjectsV1beta3 ¶
type PolicyRulesWithSubjectsV1beta3 struct { // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. NonResourceRules []NonResourcePolicyRuleV1beta3 `json:"nonResourceRules,omitempty"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. ResourceRules []ResourcePolicyRuleV1beta3 `json:"resourceRules,omitempty"` // subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. Subjects []SubjectV1beta3 `json:"subjects"` }
PolicyRulesWithSubjectsV1beta3 PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
type PortStatusV1 ¶
type PortStatusV1 struct { // Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. Error *string `json:"error,omitempty"` // Port is the port number of the service port of which status is recorded here Port int32 `json:"port"` // Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP" Protocol string `json:"protocol"` }
PortStatusV1
type PortworxVolumeSourceV1 ¶
type PortworxVolumeSourceV1 struct { // fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // volumeID uniquely identifies a Portworx volume VolumeID string `json:"volumeID"` }
PortworxVolumeSourceV1 PortworxVolumeSource represents a Portworx volume resource.
type PreconditionsV1 ¶
type PreconditionsV1 struct { // Specifies the target ResourceVersion ResourceVersion *string `json:"resourceVersion,omitempty"` // Specifies the target UID. UID *string `json:"uid,omitempty"` }
PreconditionsV1 Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
type PreferredSchedulingTermV1 ¶
type PreferredSchedulingTermV1 struct { // A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. Preference NodeSelectorTermV1 `json:"preference"` // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. Weight int32 `json:"weight"` }
PreferredSchedulingTermV1 An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
type PriorityClassListV1 ¶
type PriorityClassListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of PriorityClasses Items []PriorityClassV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PriorityClassListV1 PriorityClassList is a collection of priority classes.
type PriorityClassV1 ¶
type PriorityClassV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // description is an arbitrary string that usually provides guidelines on when this priority class should be used. Description *string `json:"description,omitempty"` // globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. GlobalDefault *bool `json:"globalDefault,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. PreemptionPolicy *string `json:"preemptionPolicy,omitempty"` // value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. Value int32 `json:"value"` }
PriorityClassV1 PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
type PriorityLevelConfigurationConditionV1 ¶
type PriorityLevelConfigurationConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // `message` is a human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // `status` is the status of the condition. Can be True, False, Unknown. Required. Status *string `json:"status,omitempty"` // `type` is the type of the condition. Required. Type *string `json:"type,omitempty"` }
PriorityLevelConfigurationConditionV1 PriorityLevelConfigurationCondition defines the condition of priority level.
type PriorityLevelConfigurationConditionV1beta3 ¶
type PriorityLevelConfigurationConditionV1beta3 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // `message` is a human-readable message indicating details about last transition. Message *string `json:"message,omitempty"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // `status` is the status of the condition. Can be True, False, Unknown. Required. Status *string `json:"status,omitempty"` // `type` is the type of the condition. Required. Type *string `json:"type,omitempty"` }
PriorityLevelConfigurationConditionV1beta3 PriorityLevelConfigurationCondition defines the condition of priority level.
type PriorityLevelConfigurationListV1 ¶
type PriorityLevelConfigurationListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // `items` is a list of request-priorities. Items []PriorityLevelConfigurationV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PriorityLevelConfigurationListV1 PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
type PriorityLevelConfigurationListV1beta3 ¶
type PriorityLevelConfigurationListV1beta3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // `items` is a list of request-priorities. Items []PriorityLevelConfigurationV1beta3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
PriorityLevelConfigurationListV1beta3 PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
type PriorityLevelConfigurationReferenceV1 ¶
type PriorityLevelConfigurationReferenceV1 struct { // `name` is the name of the priority level configuration being referenced Required. Name string `json:"name"` }
PriorityLevelConfigurationReferenceV1 PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
type PriorityLevelConfigurationReferenceV1beta3 ¶
type PriorityLevelConfigurationReferenceV1beta3 struct { // `name` is the name of the priority level configuration being referenced Required. Name string `json:"name"` }
PriorityLevelConfigurationReferenceV1beta3 PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
type PriorityLevelConfigurationSpecV1 ¶
type PriorityLevelConfigurationSpecV1 struct { // ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. Exempt *ExemptPriorityLevelConfigurationV1 `json:"exempt,omitempty"` // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? Limited *LimitedPriorityLevelConfigurationV1 `json:"limited,omitempty"` // `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. Type string `json:"type"` }
PriorityLevelConfigurationSpecV1 PriorityLevelConfigurationSpec specifies the configuration of a priority level.
type PriorityLevelConfigurationSpecV1beta3 ¶
type PriorityLevelConfigurationSpecV1beta3 struct { // ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. Exempt *ExemptPriorityLevelConfigurationV1beta3 `json:"exempt,omitempty"` // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? Limited *LimitedPriorityLevelConfigurationV1beta3 `json:"limited,omitempty"` // `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. Type string `json:"type"` }
PriorityLevelConfigurationSpecV1beta3 PriorityLevelConfigurationSpec specifies the configuration of a priority level.
type PriorityLevelConfigurationStatusV1 ¶
type PriorityLevelConfigurationStatusV1 struct { // `conditions` is the current state of "request-priority". Conditions []PriorityLevelConfigurationConditionV1 `json:"conditions,omitempty"` }
PriorityLevelConfigurationStatusV1 PriorityLevelConfigurationStatus represents the current state of a "request-priority".
type PriorityLevelConfigurationStatusV1beta3 ¶
type PriorityLevelConfigurationStatusV1beta3 struct { // `conditions` is the current state of "request-priority". Conditions []PriorityLevelConfigurationConditionV1beta3 `json:"conditions,omitempty"` }
PriorityLevelConfigurationStatusV1beta3 PriorityLevelConfigurationStatus represents the current state of a "request-priority".
type PriorityLevelConfigurationV1 ¶
type PriorityLevelConfigurationV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PriorityLevelConfigurationSpec specifies the configuration of a priority level. Spec *PriorityLevelConfigurationSpecV1 `json:"spec,omitempty"` // PriorityLevelConfigurationStatus represents the current state of a "request-priority". Status *PriorityLevelConfigurationStatusV1 `json:"status,omitempty"` }
PriorityLevelConfigurationV1 PriorityLevelConfiguration represents the configuration of a priority level.
type PriorityLevelConfigurationV1beta3 ¶
type PriorityLevelConfigurationV1beta3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // PriorityLevelConfigurationSpec specifies the configuration of a priority level. Spec *PriorityLevelConfigurationSpecV1beta3 `json:"spec,omitempty"` // PriorityLevelConfigurationStatus represents the current state of a "request-priority". Status *PriorityLevelConfigurationStatusV1beta3 `json:"status,omitempty"` }
PriorityLevelConfigurationV1beta3 PriorityLevelConfiguration represents the configuration of a priority level.
type ProbeV1 ¶
type ProbeV1 struct { // ExecAction describes a "run in container" action. Exec *ExecActionV1 `json:"exec,omitempty"` // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. FailureThreshold *int32 `json:"failureThreshold,omitempty"` GRPC *GRPCActionV1 `json:"grpc,omitempty"` // HTTPGetAction describes an action based on HTTP Get requests. HTTPGet *HTTPGetActionV1 `json:"httpGet,omitempty"` // Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. PeriodSeconds *int32 `json:"periodSeconds,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. SuccessThreshold *int32 `json:"successThreshold,omitempty"` // TCPSocketAction describes an action based on opening a socket TCPSocket *TCPSocketActionV1 `json:"tcpSocket,omitempty"` // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
ProbeV1 Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
type ProjectedVolumeSourceV1 ¶
type ProjectedVolumeSourceV1 struct { // defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. DefaultMode *int32 `json:"defaultMode,omitempty"` // sources is the list of volume projections. Each entry in this list handles one source. Sources []VolumeProjectionV1 `json:"sources,omitempty"` }
ProjectedVolumeSourceV1 Represents a projected volume source
type QueuingConfigurationV1 ¶
type QueuingConfigurationV1 struct { // `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. HandSize *int32 `json:"handSize,omitempty"` // `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. QueueLengthLimit *int32 `json:"queueLengthLimit,omitempty"` // `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. Queues *int32 `json:"queues,omitempty"` }
QueuingConfigurationV1 QueuingConfiguration holds the configuration parameters for queuing
type QueuingConfigurationV1beta3 ¶
type QueuingConfigurationV1beta3 struct { // `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. HandSize *int32 `json:"handSize,omitempty"` // `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. QueueLengthLimit *int32 `json:"queueLengthLimit,omitempty"` // `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. Queues *int32 `json:"queues,omitempty"` }
QueuingConfigurationV1beta3 QueuingConfiguration holds the configuration parameters for queuing
type QuobyteVolumeSourceV1 ¶
type QuobyteVolumeSourceV1 struct { // group to map volume access to Default is no group Group *string `json:"group,omitempty"` // readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. ReadOnly *bool `json:"readOnly,omitempty"` // registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes Registry string `json:"registry"` // tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin Tenant *string `json:"tenant,omitempty"` // user to map volume access to Defaults to serivceaccount user User *string `json:"user,omitempty"` // volume is a string that references an already created Quobyte volume by name. Volume string `json:"volume"` }
QuobyteVolumeSourceV1 Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.
type RBDPersistentVolumeSourceV1 ¶
type RBDPersistentVolumeSourceV1 struct { // fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd FSType *string `json:"fsType,omitempty"` // image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Image string `json:"image"` // keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Keyring *string `json:"keyring,omitempty"` // monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Monitors []string `json:"monitors"` // pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Pool *string `json:"pool,omitempty"` // readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it ReadOnly *bool `json:"readOnly,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef *SecretReferenceV1 `json:"secretRef,omitempty"` // user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it User *string `json:"user,omitempty"` }
RBDPersistentVolumeSourceV1 Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
type RBDVolumeSourceV1 ¶
type RBDVolumeSourceV1 struct { // fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd FSType *string `json:"fsType,omitempty"` // image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Image string `json:"image"` // keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Keyring *string `json:"keyring,omitempty"` // monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Monitors []string `json:"monitors"` // pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Pool *string `json:"pool,omitempty"` // readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` // user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it User *string `json:"user,omitempty"` }
RBDVolumeSourceV1 Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
type ReplicaSetConditionV1 ¶
type ReplicaSetConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of replica set condition. Type string `json:"type"` }
ReplicaSetConditionV1 ReplicaSetCondition describes the state of a replica set at a certain point.
type ReplicaSetListV1 ¶
type ReplicaSetListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller Items []ReplicaSetV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ReplicaSetListV1 ReplicaSetList is a collection of ReplicaSets.
type ReplicaSetSpecV1 ¶
type ReplicaSetSpecV1 struct { // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` // Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller Replicas *int32 `json:"replicas,omitempty"` // 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. Selector LabelSelectorV1 `json:"selector"` // PodTemplateSpec describes the data a pod should have when created from a template Template *PodTemplateSpecV1 `json:"template,omitempty"` }
ReplicaSetSpecV1 ReplicaSetSpec is the specification of a ReplicaSet.
type ReplicaSetStatusV1 ¶
type ReplicaSetStatusV1 struct { // The number of available replicas (ready for at least minReadySeconds) for this replica set. AvailableReplicas *int32 `json:"availableReplicas,omitempty"` // Represents the latest available observations of a replica set's current state. Conditions []ReplicaSetConditionV1 `json:"conditions,omitempty"` // The number of pods that have labels matching the labels of the pod template of the replicaset. FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"` // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. ReadyReplicas *int32 `json:"readyReplicas,omitempty"` // Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller Replicas int32 `json:"replicas"` }
ReplicaSetStatusV1 ReplicaSetStatus represents the current status of a ReplicaSet.
type ReplicaSetV1 ¶
type ReplicaSetV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ReplicaSetSpec is the specification of a ReplicaSet. Spec *ReplicaSetSpecV1 `json:"spec,omitempty"` // ReplicaSetStatus represents the current status of a ReplicaSet. Status *ReplicaSetStatusV1 `json:"status,omitempty"` }
ReplicaSetV1 ReplicaSet ensures that a specified number of pod replicas are running at any given time.
type ReplicationControllerConditionV1 ¶
type ReplicationControllerConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of replication controller condition. Type string `json:"type"` }
ReplicationControllerConditionV1 ReplicationControllerCondition describes the state of a replication controller at a certain point.
type ReplicationControllerListV1 ¶
type ReplicationControllerListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller Items []ReplicationControllerV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ReplicationControllerListV1 ReplicationControllerList is a collection of replication controllers.
type ReplicationControllerSpecV1 ¶
type ReplicationControllerSpecV1 struct { // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` // Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller Replicas *int32 `json:"replicas,omitempty"` // Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors Selector *map[string]string `json:"selector,omitempty"` // PodTemplateSpec describes the data a pod should have when created from a template Template *PodTemplateSpecV1 `json:"template,omitempty"` }
ReplicationControllerSpecV1 ReplicationControllerSpec is the specification of a replication controller.
type ReplicationControllerStatusV1 ¶
type ReplicationControllerStatusV1 struct { // The number of available replicas (ready for at least minReadySeconds) for this replication controller. AvailableReplicas *int32 `json:"availableReplicas,omitempty"` // Represents the latest available observations of a replication controller's current state. Conditions []ReplicationControllerConditionV1 `json:"conditions,omitempty"` // The number of pods that have labels matching the labels of the pod template of the replication controller. FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"` // ObservedGeneration reflects the generation of the most recently observed replication controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // The number of ready replicas for this replication controller. ReadyReplicas *int32 `json:"readyReplicas,omitempty"` // Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller Replicas int32 `json:"replicas"` }
ReplicationControllerStatusV1 ReplicationControllerStatus represents the current status of a replication controller.
type ReplicationControllerV1 ¶
type ReplicationControllerV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ReplicationControllerSpec is the specification of a replication controller. Spec *ReplicationControllerSpecV1 `json:"spec,omitempty"` // ReplicationControllerStatus represents the current status of a replication controller. Status *ReplicationControllerStatusV1 `json:"status,omitempty"` }
ReplicationControllerV1 ReplicationController represents the configuration of a replication controller.
type ResourceAttributesV1 ¶
type ResourceAttributesV1 struct { // FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. FieldSelector *FieldSelectorAttributesV1 `json:"fieldSelector,omitempty"` // Group is the API Group of the Resource. "*" means all. Group *string `json:"group,omitempty"` // LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. LabelSelector *LabelSelectorAttributesV1 `json:"labelSelector,omitempty"` // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. Name *string `json:"name,omitempty"` // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview Namespace *string `json:"namespace,omitempty"` // Resource is one of the existing resource types. "*" means all. Resource *string `json:"resource,omitempty"` // Subresource is one of the existing resource types. "" means none. Subresource *string `json:"subresource,omitempty"` // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. Verb *string `json:"verb,omitempty"` // Version is the API Version of the Resource. "*" means all. Version *string `json:"version,omitempty"` }
ResourceAttributesV1 ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
type ResourceClaimConsumerReferenceV1alpha3 ¶
type ResourceClaimConsumerReferenceV1alpha3 struct { // APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. APIGroup *string `json:"apiGroup,omitempty"` // Name is the name of resource being referenced. Name string `json:"name"` // Resource is the type of resource being referenced, for example "pods". Resource string `json:"resource"` // UID identifies exactly one incarnation of the resource. UID string `json:"uid"` }
ResourceClaimConsumerReferenceV1alpha3 ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
type ResourceClaimListV1alpha3 ¶
type ResourceClaimListV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of resource claims. Items []ResourceClaimV1alpha3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ResourceClaimListV1alpha3 ResourceClaimList is a collection of claims.
type ResourceClaimSchedulingStatusV1alpha3 ¶
type ResourceClaimSchedulingStatusV1alpha3 struct { // Name matches the pod.spec.resourceClaims[*].Name field. Name string `json:"name"` // UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. UnsuitableNodes []string `json:"unsuitableNodes,omitempty"` }
ResourceClaimSchedulingStatusV1alpha3 ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
type ResourceClaimSpecV1alpha3 ¶
type ResourceClaimSpecV1alpha3 struct { // Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This is an alpha field and requires enabling the DRAControlPlaneController feature gate. Controller *string `json:"controller,omitempty"` // DeviceClaim defines how to request devices with a ResourceClaim. Devices *DeviceClaimV1alpha3 `json:"devices,omitempty"` }
ResourceClaimSpecV1alpha3 ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
type ResourceClaimStatusV1alpha3 ¶
type ResourceClaimStatusV1alpha3 struct { // AllocationResult contains attributes of an allocated resource. Allocation *AllocationResultV1alpha3 `json:"allocation,omitempty"` // Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor. This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field. This is an alpha field and requires enabling the DRAControlPlaneController feature gate. DeallocationRequested *bool `json:"deallocationRequested,omitempty"` // ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 32 such reservations. This may get increased in the future, but not reduced. ReservedFor []ResourceClaimConsumerReferenceV1alpha3 `json:"reservedFor,omitempty"` }
ResourceClaimStatusV1alpha3 ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
type ResourceClaimTemplateListV1alpha3 ¶
type ResourceClaimTemplateListV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of resource claim templates. Items []ResourceClaimTemplateV1alpha3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ResourceClaimTemplateListV1alpha3 ResourceClaimTemplateList is a collection of claim templates.
type ResourceClaimTemplateSpecV1alpha3 ¶
type ResourceClaimTemplateSpecV1alpha3 struct { // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. Spec ResourceClaimSpecV1alpha3 `json:"spec"` }
ResourceClaimTemplateSpecV1alpha3 ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
type ResourceClaimTemplateV1alpha3 ¶
type ResourceClaimTemplateV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Spec ResourceClaimTemplateSpecV1alpha3 `json:"spec"` }
ResourceClaimTemplateV1alpha3 ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
type ResourceClaimV1 ¶
type ResourceClaimV1 struct { // Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. Name string `json:"name"` // Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. Request *string `json:"request,omitempty"` }
ResourceClaimV1 ResourceClaim references one entry in PodSpec.ResourceClaims.
type ResourceClaimV1alpha3 ¶
type ResourceClaimV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. Spec ResourceClaimSpecV1alpha3 `json:"spec"` // ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. Status *ResourceClaimStatusV1alpha3 `json:"status,omitempty"` }
ResourceClaimV1alpha3 ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
type ResourceFieldSelectorV1 ¶
type ResourceFieldSelectorV1 struct { // Container name: required for volumes, optional for env vars ContainerName *string `json:"containerName,omitempty"` // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: “` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the "" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | "" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber> “` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. Divisor *string `json:"divisor,omitempty"` // Required: resource to select Resource string `json:"resource"` }
ResourceFieldSelectorV1 ResourceFieldSelector represents container resources (cpu, memory) and their output format
type ResourceHealthV1 ¶
type ResourceHealthV1 struct { // Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. Health *string `json:"health,omitempty"` // ResourceID is the unique identifier of the resource. See the ResourceID type for more information. ResourceID string `json:"resourceID"` }
ResourceHealthV1 ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.
type ResourceMetricSourceV2 ¶
type ResourceMetricSourceV2 struct { // name is the name of the resource in question. Name string `json:"name"` // MetricTarget defines the target value, average value, or average utilization of a specific metric Target MetricTargetV2 `json:"target"` }
ResourceMetricSourceV2 ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
type ResourceMetricStatusV2 ¶
type ResourceMetricStatusV2 struct { // MetricValueStatus holds the current value for a metric Current MetricValueStatusV2 `json:"current"` // name is the name of the resource in question. Name string `json:"name"` }
ResourceMetricStatusV2 ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
type ResourcePolicyRuleV1 ¶
type ResourcePolicyRuleV1 struct { // `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. APIGroups []string `json:"apiGroups"` // `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. ClusterScope *bool `json:"clusterScope,omitempty"` // `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. Namespaces []string `json:"namespaces,omitempty"` // `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. Resources []string `json:"resources"` // `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. Verbs []string `json:"verbs"` }
ResourcePolicyRuleV1 ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
type ResourcePolicyRuleV1beta3 ¶
type ResourcePolicyRuleV1beta3 struct { // `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. APIGroups []string `json:"apiGroups"` // `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. ClusterScope *bool `json:"clusterScope,omitempty"` // `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. Namespaces []string `json:"namespaces,omitempty"` // `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. Resources []string `json:"resources"` // `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. Verbs []string `json:"verbs"` }
ResourcePolicyRuleV1beta3 ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
type ResourcePoolV1alpha3 ¶
type ResourcePoolV1alpha3 struct { // Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. Generation int64 `json:"generation"` // Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. Name string `json:"name"` // ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. ResourceSliceCount int64 `json:"resourceSliceCount"` }
ResourcePoolV1alpha3 ResourcePool describes the pool that ResourceSlices belong to.
type ResourceQuotaListV1 ¶
type ResourceQuotaListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ Items []ResourceQuotaV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ResourceQuotaListV1 ResourceQuotaList is a list of ResourceQuota items.
type ResourceQuotaSpecV1 ¶
type ResourceQuotaSpecV1 struct { // hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ Hard *map[string]string `json:"hard,omitempty"` // A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. ScopeSelector *ScopeSelectorV1 `json:"scopeSelector,omitempty"` // A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. Scopes []string `json:"scopes,omitempty"` }
ResourceQuotaSpecV1 ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
type ResourceQuotaStatusV1 ¶
type ResourceQuotaStatusV1 struct { // Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ Hard *map[string]string `json:"hard,omitempty"` // Used is the current observed total usage of the resource in the namespace. Used *map[string]string `json:"used,omitempty"` }
ResourceQuotaStatusV1 ResourceQuotaStatus defines the enforced hard limits and observed use.
type ResourceQuotaV1 ¶
type ResourceQuotaV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ResourceQuotaSpec defines the desired hard limits to enforce for Quota. Spec *ResourceQuotaSpecV1 `json:"spec,omitempty"` // ResourceQuotaStatus defines the enforced hard limits and observed use. Status *ResourceQuotaStatusV1 `json:"status,omitempty"` }
ResourceQuotaV1 ResourceQuota sets aggregate quota restrictions enforced per namespace
type ResourceRequirementsV1 ¶
type ResourceRequirementsV1 struct { // Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. Claims []ResourceClaimV1 `json:"claims,omitempty"` // Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Limits *map[string]string `json:"limits,omitempty"` // Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Requests *map[string]string `json:"requests,omitempty"` }
ResourceRequirementsV1 ResourceRequirements describes the compute resource requirements.
type ResourceRuleV1 ¶
type ResourceRuleV1 struct { // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. APIGroups []string `json:"apiGroups,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. ResourceNames []string `json:"resourceNames,omitempty"` // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. Resources []string `json:"resources,omitempty"` // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. Verbs []string `json:"verbs"` }
ResourceRuleV1 ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
type ResourceSliceListV1alpha3 ¶
type ResourceSliceListV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of resource ResourceSlices. Items []ResourceSliceV1alpha3 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. ListMeta *ListMetaV1 `json:"listMeta,omitempty"` }
ResourceSliceListV1alpha3 ResourceSliceList is a collection of ResourceSlices.
type ResourceSliceSpecV1alpha3 ¶
type ResourceSliceSpecV1alpha3 struct { // AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set. AllNodes *bool `json:"allNodes,omitempty"` // Devices lists some or all of the devices in this pool. Must not have more than 128 entries. Devices []DeviceV1alpha3 `json:"devices,omitempty"` // Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. Driver string `json:"driver"` // NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable. NodeName *string `json:"nodeName,omitempty"` // A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. NodeSelector *NodeSelectorV1 `json:"nodeSelector,omitempty"` // ResourcePool describes the pool that ResourceSlices belong to. Pool ResourcePoolV1alpha3 `json:"pool"` }
ResourceSliceSpecV1alpha3 ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
type ResourceSliceV1alpha3 ¶
type ResourceSliceV1alpha3 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ResourceSliceSpec contains the information published by the driver in one ResourceSlice. Spec ResourceSliceSpecV1alpha3 `json:"spec"` }
ResourceSliceV1alpha3 ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
type ResourceStatusV1 ¶
type ResourceStatusV1 struct { // Name of the resource. Must be unique within the pod and match one of the resources from the pod spec. Name string `json:"name"` // List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition. Resources []ResourceHealthV1 `json:"resources,omitempty"` }
ResourceStatusV1
type RoleBindingListV1 ¶
type RoleBindingListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of RoleBindings Items []RoleBindingV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
RoleBindingListV1 RoleBindingList is a collection of RoleBindings
type RoleBindingV1 ¶
type RoleBindingV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // RoleRef contains information that points to the role being used RoleRef RoleRefV1 `json:"roleRef"` // Subjects holds references to the objects the role applies to. Subjects []SubjectV1 `json:"subjects,omitempty"` }
RoleBindingV1 RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.
type RoleListV1 ¶
type RoleListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of Roles Items []RoleV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
RoleListV1 RoleList is a collection of Roles
type RoleRefV1 ¶
type RoleRefV1 struct { // APIGroup is the group for the resource being referenced APIGroup string `json:"apiGroup"` // Kind is the type of resource being referenced Kind string `json:"kind"` // Name is the name of resource being referenced Name string `json:"name"` }
RoleRefV1 RoleRef contains information that points to the role being used
type RoleV1 ¶
type RoleV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Rules holds all the PolicyRules for this Role Rules []PolicyRuleV1 `json:"rules,omitempty"` }
RoleV1 Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
type RollingUpdateDaemonSetV1 ¶
type RollingUpdateDaemonSetV1 struct { // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. MaxSurge *string `json:"maxSurge,omitempty"` MaxUnavailable *string `json:"maxUnavailable,omitempty"` }
RollingUpdateDaemonSetV1 Spec to control the desired behavior of daemon set rolling update.
type RollingUpdateDeploymentV1 ¶
type RollingUpdateDeploymentV1 struct { // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. MaxSurge *string `json:"maxSurge,omitempty"` MaxUnavailable *string `json:"maxUnavailable,omitempty"` }
RollingUpdateDeploymentV1 Spec to control the desired behavior of rolling update.
type RollingUpdateStatefulSetStrategyV1 ¶
type RollingUpdateStatefulSetStrategyV1 struct { string `json:"maxUnavailable,omitempty"` // Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. Partition *int32 `json:"partition,omitempty"` }MaxUnavailable *
RollingUpdateStatefulSetStrategyV1 RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
type RuleWithOperationsV1 ¶
type RuleWithOperationsV1 struct { // APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. APIGroups []string `json:"apiGroups,omitempty"` // APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. APIVersions []string `json:"apiVersions,omitempty"` // Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. Operations []string `json:"operations,omitempty"` // Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. Resources []string `json:"resources,omitempty"` // scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". Scope *string `json:"scope,omitempty"` }
RuleWithOperationsV1 RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.
type RuntimeClassListV1 ¶
type RuntimeClassListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is a list of schema objects. Items []RuntimeClassV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
RuntimeClassListV1 RuntimeClassList is a list of RuntimeClass objects.
type RuntimeClassV1 ¶
type RuntimeClassV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. Handler string `json:"handler"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Overhead structure represents the resource overhead associated with running a pod. Overhead *OverheadV1 `json:"overhead,omitempty"` // Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. Scheduling *SchedulingV1 `json:"scheduling,omitempty"` }
RuntimeClassV1 RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
type SELinuxOptionsV1 ¶
type SELinuxOptionsV1 struct { // Level is SELinux level label that applies to the container. Level *string `json:"level,omitempty"` // Role is a SELinux role label that applies to the container. Role *string `json:"role,omitempty"` // Type is a SELinux type label that applies to the container. Type *string `json:"type,omitempty"` // User is a SELinux user label that applies to the container. User *string `json:"user,omitempty"` }
SELinuxOptionsV1 SELinuxOptions are the labels to be applied to the container
type ScaleIOPersistentVolumeSourceV1 ¶
type ScaleIOPersistentVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" FSType *string `json:"fsType,omitempty"` // gateway is the host address of the ScaleIO API Gateway. Gateway string `json:"gateway"` // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. ProtectionDomain *string `json:"protectionDomain,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace SecretRef SecretReferenceV1 `json:"secretRef"` // sslEnabled is the flag to enable/disable SSL communication with Gateway, default false SSLEnabled *bool `json:"sslEnabled,omitempty"` // storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. StorageMode *string `json:"storageMode,omitempty"` // storagePool is the ScaleIO Storage Pool associated with the protection domain. StoragePool *string `json:"storagePool,omitempty"` // system is the name of the storage system as configured in ScaleIO. System string `json:"system"` // volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. VolumeName *string `json:"volumeName,omitempty"` }
ScaleIOPersistentVolumeSourceV1 ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
type ScaleIOVolumeSourceV1 ¶
type ScaleIOVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". FSType *string `json:"fsType,omitempty"` // gateway is the host address of the ScaleIO API Gateway. Gateway string `json:"gateway"` // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. ProtectionDomain *string `json:"protectionDomain,omitempty"` // readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef LocalObjectReferenceV1 `json:"secretRef"` // sslEnabled Flag enable/disable SSL communication with Gateway, default false SSLEnabled *bool `json:"sslEnabled,omitempty"` // storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. StorageMode *string `json:"storageMode,omitempty"` // storagePool is the ScaleIO Storage Pool associated with the protection domain. StoragePool *string `json:"storagePool,omitempty"` // system is the name of the storage system as configured in ScaleIO. System string `json:"system"` // volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. VolumeName *string `json:"volumeName,omitempty"` }
ScaleIOVolumeSourceV1 ScaleIOVolumeSource represents a persistent ScaleIO volume
type ScaleSpecV1 ¶
type ScaleSpecV1 struct { // replicas is the desired number of instances for the scaled object. Replicas *int32 `json:"replicas,omitempty"` }
ScaleSpecV1 ScaleSpec describes the attributes of a scale subresource.
type ScaleStatusV1 ¶
type ScaleStatusV1 struct { // replicas is the actual number of observed instances of the scaled object. Replicas int32 `json:"replicas"` // selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Selector *string `json:"selector,omitempty"` }
ScaleStatusV1 ScaleStatus represents the current status of a scale subresource.
type ScaleV1 ¶
type ScaleV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ScaleSpec describes the attributes of a scale subresource. Spec *ScaleSpecV1 `json:"spec,omitempty"` // ScaleStatus represents the current status of a scale subresource. Status *ScaleStatusV1 `json:"status,omitempty"` }
ScaleV1 Scale represents a scaling request for a resource.
type SchedulingV1 ¶
type SchedulingV1 struct { // nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. NodeSelector *map[string]string `json:"nodeSelector,omitempty"` // tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. Tolerations []TolerationV1 `json:"tolerations,omitempty"` }
SchedulingV1 Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
type ScopeSelectorV1 ¶
type ScopeSelectorV1 struct { // A list of scope selector requirements by scope of the resources. MatchExpressions []ScopedResourceSelectorRequirementV1 `json:"matchExpressions,omitempty"` }
ScopeSelectorV1 A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.
type ScopedResourceSelectorRequirementV1 ¶
type ScopedResourceSelectorRequirementV1 struct { // Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Operator string `json:"operator"` // The name of the scope that the selector applies to. ScopeName string `json:"scopeName"` // 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. Values []string `json:"values,omitempty"` }
ScopedResourceSelectorRequirementV1 A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
type SeccompProfileV1 ¶
type SeccompProfileV1 struct { // localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. LocalhostProfile *string `json:"localhostProfile,omitempty"` // type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. Type string `json:"type"` }
SeccompProfileV1 SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
type SecretEnvSourceV1 ¶
type SecretEnvSourceV1 struct { // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // Specify whether the Secret must be defined Optional *bool `json:"optional,omitempty"` }
SecretEnvSourceV1 SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
type SecretKeySelectorV1 ¶
type SecretKeySelectorV1 struct { // The key of the secret to select from. Must be a valid secret key. Key string `json:"key"` // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // Specify whether the Secret or its key must be defined Optional *bool `json:"optional,omitempty"` }
SecretKeySelectorV1 SecretKeySelector selects a key of a Secret.
type SecretListV1 ¶
type SecretListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret Items []SecretV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
SecretListV1 SecretList is a list of Secret.
type SecretProjectionV1 ¶
type SecretProjectionV1 struct { // items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. Items []KeyToPathV1 `json:"items,omitempty"` // Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name *string `json:"name,omitempty"` // optional field specify whether the Secret or its key must be defined Optional *bool `json:"optional,omitempty"` }
SecretProjectionV1 Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.
type SecretReferenceV1 ¶
type SecretReferenceV1 struct { // name is unique within a namespace to reference a secret resource. Name *string `json:"name,omitempty"` // namespace defines the space within which the secret name must be unique. Namespace *string `json:"namespace,omitempty"` }
SecretReferenceV1 SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
type SecretV1 ¶
type SecretV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 Data *map[string]string `json:"data,omitempty"` // Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. Immutable *bool `json:"immutable,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. StringData *map[string]string `json:"stringData,omitempty"` // Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types Type *string `json:"type,omitempty"` }
SecretV1 Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
type SecretVolumeSourceV1 ¶
type SecretVolumeSourceV1 struct { // defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. DefaultMode *int32 `json:"defaultMode,omitempty"` // items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. Items []KeyToPathV1 `json:"items,omitempty"` // optional field specify whether the Secret or its keys must be defined Optional *bool `json:"optional,omitempty"` // secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret SecretName *string `json:"secretName,omitempty"` }
SecretVolumeSourceV1 Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.
type SecurityContextV1 ¶
type SecurityContextV1 struct { // AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"` // AppArmorProfile defines a pod or container's AppArmor settings. AppArmorProfile *AppArmorProfileV1 `json:"appArmorProfile,omitempty"` // Adds and removes POSIX capabilities from running containers. Capabilities *CapabilitiesV1 `json:"capabilities,omitempty"` // Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. Privileged *bool `json:"privileged,omitempty"` // procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. ProcMount *string `json:"procMount,omitempty"` // Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` // The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. RunAsGroup *int64 `json:"runAsGroup,omitempty"` // Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` // The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. RunAsUser *int64 `json:"runAsUser,omitempty"` // SELinuxOptions are the labels to be applied to the container SELinuxOptions *SELinuxOptionsV1 `json:"seLinuxOptions,omitempty"` // SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. SeccompProfile *SeccompProfileV1 `json:"seccompProfile,omitempty"` // WindowsSecurityContextOptions contain Windows-specific options and credentials. WindowsOptions *WindowsSecurityContextOptionsV1 `json:"windowsOptions,omitempty"` }
SecurityContextV1 SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
type SelectableFieldV1 ¶
type SelectableFieldV1 struct { // jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required. JSONPath string `json:"jsonPath"` }
SelectableFieldV1 SelectableField specifies the JSON path of a field that may be used with field selectors.
type SelfSubjectAccessReviewSpecV1 ¶
type SelfSubjectAccessReviewSpecV1 struct { // NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface NonResourceAttributes *NonResourceAttributesV1 `json:"nonResourceAttributes,omitempty"` // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface ResourceAttributes *ResourceAttributesV1 `json:"resourceAttributes,omitempty"` }
SelfSubjectAccessReviewSpecV1 SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
type SelfSubjectAccessReviewV1 ¶
type SelfSubjectAccessReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set Spec SelfSubjectAccessReviewSpecV1 `json:"spec"` // SubjectAccessReviewStatus Status *SubjectAccessReviewStatusV1 `json:"status,omitempty"` }
SelfSubjectAccessReviewV1 SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action
type SelfSubjectReviewStatusV1 ¶
type SelfSubjectReviewStatusV1 struct { // UserInfo holds the information about the user needed to implement the user.Info interface. UserInfo *UserInfoV1 `json:"userInfo,omitempty"` }
SelfSubjectReviewStatusV1 SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
type SelfSubjectReviewStatusV1alpha1 ¶
type SelfSubjectReviewStatusV1alpha1 struct { // UserInfo holds the information about the user needed to implement the user.Info interface. UserInfo *UserInfoV1 `json:"userInfo,omitempty"` }
SelfSubjectReviewStatusV1alpha1 SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
type SelfSubjectReviewStatusV1beta1 ¶
type SelfSubjectReviewStatusV1beta1 struct { // UserInfo holds the information about the user needed to implement the user.Info interface. UserInfo *UserInfoV1 `json:"userInfo,omitempty"` }
SelfSubjectReviewStatusV1beta1 SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
type SelfSubjectReviewV1 ¶
type SelfSubjectReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. Status *SelfSubjectReviewStatusV1 `json:"status,omitempty"` }
SelfSubjectReviewV1 SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
type SelfSubjectReviewV1alpha1 ¶
type SelfSubjectReviewV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. Status *SelfSubjectReviewStatusV1alpha1 `json:"status,omitempty"` }
SelfSubjectReviewV1alpha1 SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
type SelfSubjectReviewV1beta1 ¶
type SelfSubjectReviewV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. Status *SelfSubjectReviewStatusV1beta1 `json:"status,omitempty"` }
SelfSubjectReviewV1beta1 SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
type SelfSubjectRulesReviewSpecV1 ¶
type SelfSubjectRulesReviewSpecV1 struct { // Namespace to evaluate rules for. Required. Namespace *string `json:"namespace,omitempty"` }
SelfSubjectRulesReviewSpecV1 SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.
type SelfSubjectRulesReviewV1 ¶
type SelfSubjectRulesReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. Spec SelfSubjectRulesReviewSpecV1 `json:"spec"` // SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. Status *SubjectRulesReviewStatusV1 `json:"status,omitempty"` }
SelfSubjectRulesReviewV1 SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.
type ServerAddressByClientCIDRV1 ¶
type ServerAddressByClientCIDRV1 struct { // The CIDR with which clients can match their IP to figure out the server address that they should use. ClientCIDR string `json:"clientCIDR"` // Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. ServerAddress string `json:"serverAddress"` }
ServerAddressByClientCIDRV1 ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
type ServerStorageVersionV1alpha1 ¶
type ServerStorageVersionV1alpha1 struct { // The ID of the reporting API server. APIServerID *string `json:"apiServerID,omitempty"` // The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. DecodableVersions []string `json:"decodableVersions,omitempty"` // The API server encodes the object to this version when persisting it in the backend (e.g., etcd). EncodingVersion *string `json:"encodingVersion,omitempty"` // The API server can serve these versions. DecodableVersions must include all ServedVersions. ServedVersions []string `json:"servedVersions,omitempty"` }
ServerStorageVersionV1alpha1 An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
type ServiceAccountListV1 ¶
type ServiceAccountListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ Items []ServiceAccountV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ServiceAccountListV1 ServiceAccountList is a list of ServiceAccount objects
type ServiceAccountSubjectV1 ¶
type ServiceAccountSubjectV1 struct { // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. Name string `json:"name"` // `namespace` is the namespace of matching ServiceAccount objects. Required. Namespace string `json:"namespace"` }
ServiceAccountSubjectV1 ServiceAccountSubject holds detailed information for service-account-kind subject.
type ServiceAccountSubjectV1beta3 ¶
type ServiceAccountSubjectV1beta3 struct { // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. Name string `json:"name"` // `namespace` is the namespace of matching ServiceAccount objects. Required. Namespace string `json:"namespace"` }
ServiceAccountSubjectV1beta3 ServiceAccountSubject holds detailed information for service-account-kind subject.
type ServiceAccountTokenProjectionV1 ¶
type ServiceAccountTokenProjectionV1 struct { // audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. Audience *string `json:"audience,omitempty"` // expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"` // path is the path relative to the mount point of the file to project the token into. Path string `json:"path"` }
ServiceAccountTokenProjectionV1 ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).
type ServiceAccountV1 ¶
type ServiceAccountV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod ImagePullSecrets []LocalObjectReferenceV1 `json:"imagePullSecrets,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret Secrets []ObjectReferenceV1 `json:"secrets,omitempty"` }
ServiceAccountV1 ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets
type ServiceBackendPortV1 ¶
type ServiceBackendPortV1 struct { // name is the name of the port on the Service. This is a mutually exclusive setting with "Number". Name *string `json:"name,omitempty"` // number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". Number *int32 `json:"number,omitempty"` }
ServiceBackendPortV1 ServiceBackendPort is the service port being referenced.
type ServiceCIDRListV1beta1 ¶
type ServiceCIDRListV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of ServiceCIDRs. Items []ServiceCIDRV1beta1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ServiceCIDRListV1beta1 ServiceCIDRList contains a list of ServiceCIDR objects.
type ServiceCIDRSpecV1beta1 ¶
type ServiceCIDRSpecV1beta1 struct { // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. Cidrs []string `json:"cidrs,omitempty"` }
ServiceCIDRSpecV1beta1 ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
type ServiceCIDRStatusV1beta1 ¶
type ServiceCIDRStatusV1beta1 struct { // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state Conditions []ConditionV1 `json:"conditions,omitempty"` }
ServiceCIDRStatusV1beta1 ServiceCIDRStatus describes the current state of the ServiceCIDR.
type ServiceCIDRV1beta1 ¶
type ServiceCIDRV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. Spec *ServiceCIDRSpecV1beta1 `json:"spec,omitempty"` // ServiceCIDRStatus describes the current state of the ServiceCIDR. Status *ServiceCIDRStatusV1beta1 `json:"status,omitempty"` }
ServiceCIDRV1beta1 ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
type ServiceListV1 ¶
type ServiceListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of services Items []ServiceV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ServiceListV1 ServiceList holds a list of services.
type ServicePortV1 ¶
type ServicePortV1 struct { // The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. AppProtocol *string `json:"appProtocol,omitempty"` // The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. Name *string `json:"name,omitempty"` // The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport NodePort *int32 `json:"nodePort,omitempty"` // The port that will be exposed by this service. Port int32 `json:"port"` // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. Protocol *string `json:"protocol,omitempty"` // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. TargetPort *string `json:"targetPort,omitempty"` }
ServicePortV1 ServicePort contains information on service's port.
type ServiceReferenceV1 ¶
type ServiceReferenceV1 struct { // `name` is the name of the service. Required Name string `json:"name"` // `namespace` is the namespace of the service. Required Namespace string `json:"namespace"` // `path` is an optional URL path which will be sent in any request to this service. Path *string `json:"path,omitempty"` // 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). Port *int32 `json:"port,omitempty"` }
ServiceReferenceV1 ServiceReference holds a reference to Service.legacy.k8s.io
type ServiceSpecV1 ¶
type ServiceSpecV1 struct { // allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. AllocateLoadBalancerNodePorts *bool `json:"allocateLoadBalancerNodePorts,omitempty"` // clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies ClusterIP *string `json:"clusterIP,omitempty"` // ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies ClusterIPs []string `json:"clusterIPs,omitempty"` // externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. ExternalIPs []string `json:"externalIPs,omitempty"` // externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". ExternalName *string `json:"externalName,omitempty"` // externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. ExternalTrafficPolicy *string `json:"externalTrafficPolicy,omitempty"` // healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"` // InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). InternalTrafficPolicy *string `json:"internalTrafficPolicy,omitempty"` // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. IPFamilies []string `json:"ipFamilies,omitempty"` // IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. IPFamilyPolicy *string `json:"ipFamilyPolicy,omitempty"` // loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. LoadBalancerClass *string `json:"loadBalancerClass,omitempty"` // Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` // If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"` // The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies Ports []ServicePortV1 `json:"ports,omitempty"` // publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"` // Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ Selector *map[string]string `json:"selector,omitempty"` // Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies SessionAffinity *string `json:"sessionAffinity,omitempty"` // SessionAffinityConfig represents the configurations of session affinity. SessionAffinityConfig *SessionAffinityConfigV1 `json:"sessionAffinityConfig,omitempty"` // TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to "PreferClose", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature. TrafficDistribution *string `json:"trafficDistribution,omitempty"` // type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types Type *string `json:"type,omitempty"` }
ServiceSpecV1 ServiceSpec describes the attributes that a user creates on a service.
type ServiceStatusV1 ¶
type ServiceStatusV1 struct { // Current service state Conditions []ConditionV1 `json:"conditions,omitempty"` // LoadBalancerStatus represents the status of a load-balancer. LoadBalancer *LoadBalancerStatusV1 `json:"loadBalancer,omitempty"` }
ServiceStatusV1 ServiceStatus represents the current status of a service.
type ServiceV1 ¶
type ServiceV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ServiceSpec describes the attributes that a user creates on a service. Spec *ServiceSpecV1 `json:"spec,omitempty"` // ServiceStatus represents the current status of a service. Status *ServiceStatusV1 `json:"status,omitempty"` }
ServiceV1 Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.
type SessionAffinityConfigV1 ¶
type SessionAffinityConfigV1 struct { // ClientIPConfig represents the configurations of Client IP based session affinity. ClientIP *ClientIPConfigV1 `json:"clientIP,omitempty"` }
SessionAffinityConfigV1 SessionAffinityConfig represents the configurations of session affinity.
type SleepActionV1 ¶
type SleepActionV1 struct { // Seconds is the number of seconds to sleep. Seconds int64 `json:"seconds"` }
SleepActionV1 SleepAction describes a "sleep" action.
type StatefulSetConditionV1 ¶
type StatefulSetConditionV1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // A human readable message indicating details about the transition. Message *string `json:"message,omitempty"` // The reason for the condition's last transition. Reason *string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of statefulset condition. Type string `json:"type"` }
StatefulSetConditionV1 StatefulSetCondition describes the state of a statefulset at a certain point.
type StatefulSetListV1 ¶
type StatefulSetListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of stateful sets. Items []StatefulSetV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
StatefulSetListV1 StatefulSetList is a collection of StatefulSets.
type StatefulSetOrdinalsV1 ¶
type StatefulSetOrdinalsV1 struct { // start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). Start *int32 `json:"start,omitempty"` }
StatefulSetOrdinalsV1 StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
type StatefulSetPersistentVolumeClaimRetentionPolicyV1 ¶
type StatefulSetPersistentVolumeClaimRetentionPolicyV1 struct { // WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. WhenDeleted *string `json:"whenDeleted,omitempty"` // WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. WhenScaled *string `json:"whenScaled,omitempty"` }
StatefulSetPersistentVolumeClaimRetentionPolicyV1 StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
type StatefulSetSpecV1 ¶
type StatefulSetSpecV1 struct { // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` // StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. Ordinals *StatefulSetOrdinalsV1 `json:"ordinals,omitempty"` // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicyV1 `json:"persistentVolumeClaimRetentionPolicy,omitempty"` // podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. PodManagementPolicy *string `json:"podManagementPolicy,omitempty"` // replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. Replicas *int32 `json:"replicas,omitempty"` // revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` // 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. Selector LabelSelectorV1 `json:"selector"` // serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. ServiceName string `json:"serviceName"` // PodTemplateSpec describes the data a pod should have when created from a template Template PodTemplateSpecV1 `json:"template"` // StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. UpdateStrategy *StatefulSetUpdateStrategyV1 `json:"updateStrategy,omitempty"` // volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. VolumeClaimTemplates []PersistentVolumeClaimV1 `json:"volumeClaimTemplates,omitempty"` }
StatefulSetSpecV1 A StatefulSetSpec is the specification of a StatefulSet.
type StatefulSetStatusV1 ¶
type StatefulSetStatusV1 struct { // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. AvailableReplicas *int32 `json:"availableReplicas,omitempty"` // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. CollisionCount *int32 `json:"collisionCount,omitempty"` // Represents the latest available observations of a statefulset's current state. Conditions []StatefulSetConditionV1 `json:"conditions,omitempty"` // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. CurrentReplicas *int32 `json:"currentReplicas,omitempty"` // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). CurrentRevision *string `json:"currentRevision,omitempty"` // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. ReadyReplicas *int32 `json:"readyReplicas,omitempty"` // replicas is the number of Pods created by the StatefulSet controller. Replicas int32 `json:"replicas"` // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) UpdateRevision *string `json:"updateRevision,omitempty"` // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"` }
StatefulSetStatusV1 StatefulSetStatus represents the current state of a StatefulSet.
type StatefulSetUpdateStrategyV1 ¶
type StatefulSetUpdateStrategyV1 struct { // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. RollingUpdate *RollingUpdateStatefulSetStrategyV1 `json:"rollingUpdate,omitempty"` // Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. Type *string `json:"type,omitempty"` }
StatefulSetUpdateStrategyV1 StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
type StatefulSetV1 ¶
type StatefulSetV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // A StatefulSetSpec is the specification of a StatefulSet. Spec *StatefulSetSpecV1 `json:"spec,omitempty"` // StatefulSetStatus represents the current state of a StatefulSet. Status *StatefulSetStatusV1 `json:"status,omitempty"` }
StatefulSetV1 StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.
type StatusCauseV1 ¶
type StatusCauseV1 struct { // 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" Field *string `json:"field,omitempty"` // A human-readable description of the cause of the error. This field may be presented as-is to a reader. Message *string `json:"message,omitempty"` // A machine-readable description of the cause of the error. If this value is empty there is no information available. Reason *string `json:"reason,omitempty"` }
StatusCauseV1 StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
type StatusDetailsV1 ¶
type StatusDetailsV1 struct { // The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. Causes []StatusCauseV1 `json:"causes,omitempty"` // The group attribute of the resource associated with the status StatusReason. Group *string `json:"group,omitempty"` // 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 Kind *string `json:"kind,omitempty"` // The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). Name *string `json:"name,omitempty"` // 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. RetryAfterSeconds *int32 `json:"retryAfterSeconds,omitempty"` // UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids UID *string `json:"uid,omitempty"` }
StatusDetailsV1 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.
type StatusV1 ¶
type StatusV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Suggested HTTP return code for this status, 0 if not set. Code *int32 `json:"code,omitempty"` // 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. Details *StatusDetailsV1 `json:"details,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // A human-readable description of the status of this operation. Message *string `json:"message,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` // 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. Reason *string `json:"reason,omitempty"` // 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 Status *string `json:"status,omitempty"` }
StatusV1 Status is a return value for calls that don't return other objects.
type StorageClassListV1 ¶
type StorageClassListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of StorageClasses Items []StorageClassV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
StorageClassListV1 StorageClassList is a collection of storage classes.
type StorageClassV1 ¶
type StorageClassV1 struct { // allowVolumeExpansion shows whether the storage class allow volume expand. AllowVolumeExpansion *bool `json:"allowVolumeExpansion,omitempty"` // allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. AllowedTopologies []TopologySelectorTermV1 `json:"allowedTopologies,omitempty"` // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. MountOptions []string `json:"mountOptions,omitempty"` // parameters holds the parameters for the provisioner that should create volumes of this storage class. Parameters *map[string]string `json:"parameters,omitempty"` // provisioner indicates the type of the provisioner. Provisioner string `json:"provisioner"` // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. ReclaimPolicy *string `json:"reclaimPolicy,omitempty"` // volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. VolumeBindingMode *string `json:"volumeBindingMode,omitempty"` }
StorageClassV1 StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
type StorageOSPersistentVolumeSourceV1 ¶
type StorageOSPersistentVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // ObjectReference contains enough information to let you inspect or modify the referred object. SecretRef *ObjectReferenceV1 `json:"secretRef,omitempty"` // volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. VolumeName *string `json:"volumeName,omitempty"` // volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. VolumeNamespace *string `json:"volumeNamespace,omitempty"` }
StorageOSPersistentVolumeSourceV1 Represents a StorageOS persistent volume resource.
type StorageOSVolumeSourceV1 ¶
type StorageOSVolumeSourceV1 struct { // fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly *bool `json:"readOnly,omitempty"` // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. SecretRef *LocalObjectReferenceV1 `json:"secretRef,omitempty"` // volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. VolumeName *string `json:"volumeName,omitempty"` // volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. VolumeNamespace *string `json:"volumeNamespace,omitempty"` }
StorageOSVolumeSourceV1 Represents a StorageOS persistent volume resource.
type StorageVersionConditionV1alpha1 ¶
type StorageVersionConditionV1alpha1 struct { // 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. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message"` // If set, this represents the .metadata.generation that the condition was set based upon. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason"` // Status of the condition, one of True, False, Unknown. Status string `json:"status"` // Type of the condition. Type string `json:"type"` }
StorageVersionConditionV1alpha1 Describes the state of the storageVersion at a certain point.
type StorageVersionListV1alpha1 ¶
type StorageVersionListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items holds a list of StorageVersion Items []StorageVersionV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
StorageVersionListV1alpha1 A list of StorageVersions.
type StorageVersionMigrationListV1alpha1 ¶
type StorageVersionMigrationListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Items is the list of StorageVersionMigration Items []StorageVersionMigrationV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
StorageVersionMigrationListV1alpha1 StorageVersionMigrationList is a collection of storage version migrations.
type StorageVersionMigrationSpecV1alpha1 ¶
type StorageVersionMigrationSpecV1alpha1 struct { // The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is "Running", users can use this token to check the progress of the migration. ContinueToken *string `json:"continueToken,omitempty"` // The names of the group, the version, and the resource. Resource GroupVersionResourceV1alpha1 `json:"resource"` }
StorageVersionMigrationSpecV1alpha1 Spec of the storage version migration.
type StorageVersionMigrationStatusV1alpha1 ¶
type StorageVersionMigrationStatusV1alpha1 struct { // The latest available observations of the migration's current state. Conditions []MigrationConditionV1alpha1 `json:"conditions,omitempty"` // ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource. ResourceVersion *string `json:"resourceVersion,omitempty"` }
StorageVersionMigrationStatusV1alpha1 Status of the storage version migration.
type StorageVersionMigrationV1alpha1 ¶
type StorageVersionMigrationV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Spec of the storage version migration. Spec *StorageVersionMigrationSpecV1alpha1 `json:"spec,omitempty"` // Status of the storage version migration. Status *StorageVersionMigrationStatusV1alpha1 `json:"status,omitempty"` }
StorageVersionMigrationV1alpha1 StorageVersionMigration represents a migration of stored data to the latest storage version.
type StorageVersionStatusV1alpha1 ¶
type StorageVersionStatusV1alpha1 struct { // If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. CommonEncodingVersion *string `json:"commonEncodingVersion,omitempty"` // The latest available observations of the storageVersion's state. Conditions []StorageVersionConditionV1alpha1 `json:"conditions,omitempty"` // The reported versions per API server instance. StorageVersions []ServerStorageVersionV1alpha1 `json:"storageVersions,omitempty"` }
StorageVersionStatusV1alpha1 API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.
type StorageVersionV1alpha1 ¶
type StorageVersionV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // StorageVersionSpec is an empty spec. Spec map[string]interface{} `json:"spec"` // API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. Status StorageVersionStatusV1alpha1 `json:"status"` }
StorageVersionV1alpha1 Storage version of a specific resource.
type SubjectAccessReviewSpecV1 ¶
type SubjectAccessReviewSpecV1 struct { // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. Extra *map[string][]string `json:"extra,omitempty"` // Groups is the groups you're testing for. Groups []string `json:"groups,omitempty"` // NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface NonResourceAttributes *NonResourceAttributesV1 `json:"nonResourceAttributes,omitempty"` // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface ResourceAttributes *ResourceAttributesV1 `json:"resourceAttributes,omitempty"` // UID information about the requesting user. UID *string `json:"uid,omitempty"` // User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups User *string `json:"user,omitempty"` }
SubjectAccessReviewSpecV1 SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
type SubjectAccessReviewStatusV1 ¶
type SubjectAccessReviewStatusV1 struct { // Allowed is required. True if the action would be allowed, false otherwise. Allowed bool `json:"allowed"` // Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. Denied *bool `json:"denied,omitempty"` // EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. EvaluationError *string `json:"evaluationError,omitempty"` // Reason is optional. It indicates why a request was allowed or denied. Reason *string `json:"reason,omitempty"` }
SubjectAccessReviewStatusV1 SubjectAccessReviewStatus
type SubjectAccessReviewV1 ¶
type SubjectAccessReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set Spec SubjectAccessReviewSpecV1 `json:"spec"` // SubjectAccessReviewStatus Status *SubjectAccessReviewStatusV1 `json:"status,omitempty"` }
SubjectAccessReviewV1 SubjectAccessReview checks whether or not a user or group can perform an action.
type SubjectRulesReviewStatusV1 ¶
type SubjectRulesReviewStatusV1 struct { // EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. EvaluationError *string `json:"evaluationError,omitempty"` // Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. Incomplete bool `json:"incomplete"` // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. NonResourceRules []NonResourceRuleV1 `json:"nonResourceRules"` // ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. ResourceRules []ResourceRuleV1 `json:"resourceRules"` }
SubjectRulesReviewStatusV1 SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.
type SubjectV1 ¶
type SubjectV1 struct { // GroupSubject holds detailed information for group-kind subject. Group *GroupSubjectV1 `json:"group,omitempty"` // `kind` indicates which one of the other fields is non-empty. Required Kind string `json:"kind"` // ServiceAccountSubject holds detailed information for service-account-kind subject. ServiceAccount *ServiceAccountSubjectV1 `json:"serviceAccount,omitempty"` // UserSubject holds detailed information for user-kind subject. User *UserSubjectV1 `json:"user,omitempty"` }
SubjectV1 Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
type SubjectV1beta3 ¶
type SubjectV1beta3 struct { // GroupSubject holds detailed information for group-kind subject. Group *GroupSubjectV1beta3 `json:"group,omitempty"` // `kind` indicates which one of the other fields is non-empty. Required Kind string `json:"kind"` // ServiceAccountSubject holds detailed information for service-account-kind subject. ServiceAccount *ServiceAccountSubjectV1beta3 `json:"serviceAccount,omitempty"` // UserSubject holds detailed information for user-kind subject. User *UserSubjectV1beta3 `json:"user,omitempty"` }
SubjectV1beta3 Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
type SuccessPolicyRuleV1 ¶
type SuccessPolicyRuleV1 struct { // succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer. SucceededCount *int32 `json:"succeededCount,omitempty"` // succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time. SucceededIndexes *string `json:"succeededIndexes,omitempty"` }
SuccessPolicyRuleV1 SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
type SuccessPolicyV1 ¶
type SuccessPolicyV1 struct { // rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. Rules []SuccessPolicyRuleV1 `json:"rules"` }
SuccessPolicyV1 SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
type SysctlV1 ¶
type SysctlV1 struct { // Name of a property to set Name string `json:"name"` // Value of a property to set Value string `json:"value"` }
SysctlV1 Sysctl defines a kernel parameter to be set
type TCPSocketActionV1 ¶
type TCPSocketActionV1 struct { // Optional: Host name to connect to, defaults to the pod IP. Host *string `json:"host,omitempty"` // IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. Port string `json:"port"` }
TCPSocketActionV1 TCPSocketAction describes an action based on opening a socket
type TaintV1 ¶
type TaintV1 struct { // Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. Effect string `json:"effect"` // Required. The taint key to be applied to a node. Key string `json:"key"` // 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. TimeAdded *time.Time `json:"timeAdded,omitempty"` // The taint value corresponding to the taint key. Value *string `json:"value,omitempty"` }
TaintV1 The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
type TokenRequestSpecV1 ¶
type TokenRequestSpecV1 struct { // Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. Audiences []string `json:"audiences"` // BoundObjectReference is a reference to an object that a token is bound to. BoundObjectRef *BoundObjectReferenceV1 `json:"boundObjectRef,omitempty"` // ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"` }
TokenRequestSpecV1 TokenRequestSpec contains client provided parameters of a token request.
type TokenRequestStatusV1 ¶
type TokenRequestStatusV1 struct { // 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. ExpirationTimestamp time.Time `json:"expirationTimestamp"` // Token is the opaque bearer token. Token string `json:"token"` }
TokenRequestStatusV1 TokenRequestStatus is the result of a token request.
type TokenRequestV1 ¶
type TokenRequestV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // TokenRequestSpec contains client provided parameters of a token request. Spec TokenRequestSpecV1 `json:"spec"` // TokenRequestStatus is the result of a token request. Status *TokenRequestStatusV1 `json:"status,omitempty"` }
TokenRequestV1 TokenRequest requests a token for a given service account.
type TokenReviewSpecV1 ¶
type TokenReviewSpecV1 struct { // Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. Audiences []string `json:"audiences,omitempty"` // Token is the opaque bearer token. Token *string `json:"token,omitempty"` }
TokenReviewSpecV1 TokenReviewSpec is a description of the token authentication request.
type TokenReviewStatusV1 ¶
type TokenReviewStatusV1 struct { // Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. Audiences []string `json:"audiences,omitempty"` // Authenticated indicates that the token was associated with a known user. Authenticated *bool `json:"authenticated,omitempty"` // Error indicates that the token couldn't be checked Error *string `json:"error,omitempty"` // UserInfo holds the information about the user needed to implement the user.Info interface. User *UserInfoV1 `json:"user,omitempty"` }
TokenReviewStatusV1 TokenReviewStatus is the result of the token authentication request.
type TokenReviewV1 ¶
type TokenReviewV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // TokenReviewSpec is a description of the token authentication request. Spec TokenReviewSpecV1 `json:"spec"` // TokenReviewStatus is the result of the token authentication request. Status *TokenReviewStatusV1 `json:"status,omitempty"` }
TokenReviewV1 TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.
type TolerationV1 ¶
type TolerationV1 struct { // Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Effect *string `json:"effect,omitempty"` // Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Key *string `json:"key,omitempty"` // Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Operator *string `json:"operator,omitempty"` // TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` // Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. Value *string `json:"value,omitempty"` }
TolerationV1 The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
type TopologySelectorLabelRequirementV1 ¶
type TopologySelectorLabelRequirementV1 struct { // The label key that the selector applies to. Key string `json:"key"` // An array of string values. One value must match the label to be selected. Each entry in Values is ORed. Values []string `json:"values"` }
TopologySelectorLabelRequirementV1 A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
type TopologySelectorTermV1 ¶
type TopologySelectorTermV1 struct { // A list of topology selector requirements by labels. MatchLabelExpressions []TopologySelectorLabelRequirementV1 `json:"matchLabelExpressions,omitempty"` }
TopologySelectorTermV1 A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.
type TopologySpreadConstraintV1 ¶
type TopologySpreadConstraintV1 struct { // 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. LabelSelector *LabelSelectorV1 `json:"labelSelector,omitempty"` // MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). MatchLabelKeys []string `json:"matchLabelKeys,omitempty"` // MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. MaxSkew int32 `json:"maxSkew"` // MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. MinDomains *int32 `json:"minDomains,omitempty"` // NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. NodeAffinityPolicy *string `json:"nodeAffinityPolicy,omitempty"` // NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. NodeTaintsPolicy *string `json:"nodeTaintsPolicy,omitempty"` // TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. TopologyKey string `json:"topologyKey"` // WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. WhenUnsatisfiable string `json:"whenUnsatisfiable"` }
TopologySpreadConstraintV1 TopologySpreadConstraint specifies how to spread matching pods among the given topology.
type TypeCheckingV1 ¶
type TypeCheckingV1 struct { // The type checking warnings for each expression. ExpressionWarnings []ExpressionWarningV1 `json:"expressionWarnings,omitempty"` }
TypeCheckingV1 TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
type TypeCheckingV1alpha1 ¶
type TypeCheckingV1alpha1 struct { // The type checking warnings for each expression. ExpressionWarnings []ExpressionWarningV1alpha1 `json:"expressionWarnings,omitempty"` }
TypeCheckingV1alpha1 TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
type TypeCheckingV1beta1 ¶
type TypeCheckingV1beta1 struct { // The type checking warnings for each expression. ExpressionWarnings []ExpressionWarningV1beta1 `json:"expressionWarnings,omitempty"` }
TypeCheckingV1beta1 TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
type TypedLocalObjectReferenceV1 ¶
type TypedLocalObjectReferenceV1 struct { // 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. APIGroup *string `json:"apiGroup,omitempty"` // Kind is the type of resource being referenced Kind string `json:"kind"` // Name is the name of resource being referenced Name string `json:"name"` }
TypedLocalObjectReferenceV1 TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
type TypedObjectReferenceV1 ¶
type TypedObjectReferenceV1 struct { // 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. APIGroup *string `json:"apiGroup,omitempty"` // Kind is the type of resource being referenced Kind string `json:"kind"` // Name is the name of resource being referenced Name string `json:"name"` // Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. Namespace *string `json:"namespace,omitempty"` }
TypedObjectReferenceV1
type UncountedTerminatedPodsV1 ¶
type UncountedTerminatedPodsV1 struct { // failed holds UIDs of failed Pods. Failed []string `json:"failed,omitempty"` // succeeded holds UIDs of succeeded Pods. Succeeded []string `json:"succeeded,omitempty"` }
UncountedTerminatedPodsV1 UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.
type UserInfoV1 ¶
type UserInfoV1 struct { // Any additional information provided by the authenticator. Extra *map[string][]string `json:"extra,omitempty"` // The names of groups this user is a part of. Groups []string `json:"groups,omitempty"` // A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. UID *string `json:"uid,omitempty"` // The name that uniquely identifies this user among all active users. Username *string `json:"username,omitempty"` }
UserInfoV1 UserInfo holds the information about the user needed to implement the user.Info interface.
type UserSubjectV1 ¶
type UserSubjectV1 struct { // `name` is the username that matches, or "*" to match all usernames. Required. Name string `json:"name"` }
UserSubjectV1 UserSubject holds detailed information for user-kind subject.
type UserSubjectV1beta3 ¶
type UserSubjectV1beta3 struct { // `name` is the username that matches, or "*" to match all usernames. Required. Name string `json:"name"` }
UserSubjectV1beta3 UserSubject holds detailed information for user-kind subject.
type ValidatingAdmissionPolicyBindingListV1 ¶
type ValidatingAdmissionPolicyBindingListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of PolicyBinding. Items []ValidatingAdmissionPolicyBindingV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyBindingListV1 ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingListV1alpha1 ¶
type ValidatingAdmissionPolicyBindingListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of PolicyBinding. Items []ValidatingAdmissionPolicyBindingV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyBindingListV1alpha1 ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingListV1beta1 ¶
type ValidatingAdmissionPolicyBindingListV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of PolicyBinding. Items []ValidatingAdmissionPolicyBindingV1beta1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyBindingListV1beta1 ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingSpecV1 ¶
type ValidatingAdmissionPolicyBindingSpecV1 struct { // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchResources *MatchResourcesV1 `json:"matchResources,omitempty"` // ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. ParamRef *ParamRefV1 `json:"paramRef,omitempty"` // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. PolicyName *string `json:"policyName,omitempty"` // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: "Deny" specifies that a validation failure results in a denied request. "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` Clients should expect to handle additional values by ignoring any values not recognized. "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. ValidationActions []string `json:"validationActions,omitempty"` }
ValidatingAdmissionPolicyBindingSpecV1 ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingSpecV1alpha1 ¶
type ValidatingAdmissionPolicyBindingSpecV1alpha1 struct { // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchResources *MatchResourcesV1alpha1 `json:"matchResources,omitempty"` // ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. ParamRef *ParamRefV1alpha1 `json:"paramRef,omitempty"` // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. PolicyName *string `json:"policyName,omitempty"` // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: "Deny" specifies that a validation failure results in a denied request. "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` Clients should expect to handle additional values by ignoring any values not recognized. "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. ValidationActions []string `json:"validationActions,omitempty"` }
ValidatingAdmissionPolicyBindingSpecV1alpha1 ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingSpecV1beta1 ¶
type ValidatingAdmissionPolicyBindingSpecV1beta1 struct { // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchResources *MatchResourcesV1beta1 `json:"matchResources,omitempty"` // ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. ParamRef *ParamRefV1beta1 `json:"paramRef,omitempty"` // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. PolicyName *string `json:"policyName,omitempty"` // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: "Deny" specifies that a validation failure results in a denied request. "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` Clients should expect to handle additional values by ignoring any values not recognized. "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. ValidationActions []string `json:"validationActions,omitempty"` }
ValidatingAdmissionPolicyBindingSpecV1beta1 ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
type ValidatingAdmissionPolicyBindingV1 ¶
type ValidatingAdmissionPolicyBindingV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. Spec *ValidatingAdmissionPolicyBindingSpecV1 `json:"spec,omitempty"` }
ValidatingAdmissionPolicyBindingV1 ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
type ValidatingAdmissionPolicyBindingV1alpha1 ¶
type ValidatingAdmissionPolicyBindingV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. Spec *ValidatingAdmissionPolicyBindingSpecV1alpha1 `json:"spec,omitempty"` }
ValidatingAdmissionPolicyBindingV1alpha1 ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
type ValidatingAdmissionPolicyBindingV1beta1 ¶
type ValidatingAdmissionPolicyBindingV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. Spec *ValidatingAdmissionPolicyBindingSpecV1beta1 `json:"spec,omitempty"` }
ValidatingAdmissionPolicyBindingV1beta1 ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
type ValidatingAdmissionPolicyListV1 ¶
type ValidatingAdmissionPolicyListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ValidatingAdmissionPolicy. Items []ValidatingAdmissionPolicyV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyListV1 ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
type ValidatingAdmissionPolicyListV1alpha1 ¶
type ValidatingAdmissionPolicyListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ValidatingAdmissionPolicy. Items []ValidatingAdmissionPolicyV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyListV1alpha1 ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
type ValidatingAdmissionPolicyListV1beta1 ¶
type ValidatingAdmissionPolicyListV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ValidatingAdmissionPolicy. Items []ValidatingAdmissionPolicyV1beta1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingAdmissionPolicyListV1beta1 ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
type ValidatingAdmissionPolicySpecV1 ¶
type ValidatingAdmissionPolicySpecV1 struct { // auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. AuditAnnotations []AuditAnnotationV1 `json:"auditAnnotations,omitempty"` // failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. FailurePolicy *string `json:"failurePolicy,omitempty"` // MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped MatchConditions []MatchConditionV1 `json:"matchConditions,omitempty"` // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchConstraints *MatchResourcesV1 `json:"matchConstraints,omitempty"` // ParamKind is a tuple of Group Kind and Version. ParamKind *ParamKindV1 `json:"paramKind,omitempty"` // Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. Validations []ValidationV1 `json:"validations,omitempty"` // Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. Variables []VariableV1 `json:"variables,omitempty"` }
ValidatingAdmissionPolicySpecV1 ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
type ValidatingAdmissionPolicySpecV1alpha1 ¶
type ValidatingAdmissionPolicySpecV1alpha1 struct { // auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. AuditAnnotations []AuditAnnotationV1alpha1 `json:"auditAnnotations,omitempty"` // failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. FailurePolicy *string `json:"failurePolicy,omitempty"` // MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped MatchConditions []MatchConditionV1alpha1 `json:"matchConditions,omitempty"` // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchConstraints *MatchResourcesV1alpha1 `json:"matchConstraints,omitempty"` // ParamKind is a tuple of Group Kind and Version. ParamKind *ParamKindV1alpha1 `json:"paramKind,omitempty"` // Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. Validations []ValidationV1alpha1 `json:"validations,omitempty"` // Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. Variables []VariableV1alpha1 `json:"variables,omitempty"` }
ValidatingAdmissionPolicySpecV1alpha1 ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
type ValidatingAdmissionPolicySpecV1beta1 ¶
type ValidatingAdmissionPolicySpecV1beta1 struct { // auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. AuditAnnotations []AuditAnnotationV1beta1 `json:"auditAnnotations,omitempty"` // failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. FailurePolicy *string `json:"failurePolicy,omitempty"` // MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped MatchConditions []MatchConditionV1beta1 `json:"matchConditions,omitempty"` // MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) MatchConstraints *MatchResourcesV1beta1 `json:"matchConstraints,omitempty"` // ParamKind is a tuple of Group Kind and Version. ParamKind *ParamKindV1beta1 `json:"paramKind,omitempty"` // Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. Validations []ValidationV1beta1 `json:"validations,omitempty"` // Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. Variables []VariableV1beta1 `json:"variables,omitempty"` }
ValidatingAdmissionPolicySpecV1beta1 ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
type ValidatingAdmissionPolicyStatusV1 ¶
type ValidatingAdmissionPolicyStatusV1 struct { // The conditions represent the latest available observations of a policy's current state. Conditions []ConditionV1 `json:"conditions,omitempty"` // The generation observed by the controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy TypeChecking *TypeCheckingV1 `json:"typeChecking,omitempty"` }
ValidatingAdmissionPolicyStatusV1 ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.
type ValidatingAdmissionPolicyStatusV1alpha1 ¶
type ValidatingAdmissionPolicyStatusV1alpha1 struct { // The conditions represent the latest available observations of a policy's current state. Conditions []ConditionV1 `json:"conditions,omitempty"` // The generation observed by the controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy TypeChecking *TypeCheckingV1alpha1 `json:"typeChecking,omitempty"` }
ValidatingAdmissionPolicyStatusV1alpha1 ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
type ValidatingAdmissionPolicyStatusV1beta1 ¶
type ValidatingAdmissionPolicyStatusV1beta1 struct { // The conditions represent the latest available observations of a policy's current state. Conditions []ConditionV1 `json:"conditions,omitempty"` // The generation observed by the controller. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy TypeChecking *TypeCheckingV1beta1 `json:"typeChecking,omitempty"` }
ValidatingAdmissionPolicyStatusV1beta1 ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.
type ValidatingAdmissionPolicyV1 ¶
type ValidatingAdmissionPolicyV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. Spec *ValidatingAdmissionPolicySpecV1 `json:"spec,omitempty"` // ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. Status *ValidatingAdmissionPolicyStatusV1 `json:"status,omitempty"` }
ValidatingAdmissionPolicyV1 ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
type ValidatingAdmissionPolicyV1alpha1 ¶
type ValidatingAdmissionPolicyV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. Spec *ValidatingAdmissionPolicySpecV1alpha1 `json:"spec,omitempty"` // ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. Status *ValidatingAdmissionPolicyStatusV1alpha1 `json:"status,omitempty"` }
ValidatingAdmissionPolicyV1alpha1 ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
type ValidatingAdmissionPolicyV1beta1 ¶
type ValidatingAdmissionPolicyV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. Spec *ValidatingAdmissionPolicySpecV1beta1 `json:"spec,omitempty"` // ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. Status *ValidatingAdmissionPolicyStatusV1beta1 `json:"status,omitempty"` }
ValidatingAdmissionPolicyV1beta1 ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
type ValidatingWebhookConfigurationListV1 ¶
type ValidatingWebhookConfigurationListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // List of ValidatingWebhookConfiguration. Items []ValidatingWebhookConfigurationV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
ValidatingWebhookConfigurationListV1 ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.
type ValidatingWebhookConfigurationV1 ¶
type ValidatingWebhookConfigurationV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // Webhooks is a list of webhooks and the affected resources and operations. Webhooks []ValidatingWebhookV1 `json:"webhooks,omitempty"` }
ValidatingWebhookConfigurationV1 ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
type ValidatingWebhookV1 ¶
type ValidatingWebhookV1 struct { // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. AdmissionReviewVersions []string `json:"admissionReviewVersions"` // WebhookClientConfig contains the information to make a TLS connection with the webhook ClientConfig WebhookClientConfigV1 `json:"clientConfig"` // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. FailurePolicy *string `json:"failurePolicy,omitempty"` // MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped MatchConditions []MatchConditionV1 `json:"matchConditions,omitempty"` // matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to "Equivalent" MatchPolicy *string `json:"matchPolicy,omitempty"` // The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. Name string `json:"name"` // 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. NamespaceSelector *LabelSelectorV1 `json:"namespaceSelector,omitempty"` // 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. ObjectSelector *LabelSelectorV1 `json:"objectSelector,omitempty"` // Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. Rules []RuleWithOperationsV1 `json:"rules,omitempty"` // SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. SideEffects string `json:"sideEffects"` // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
ValidatingWebhookV1 ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
type ValidationRuleV1 ¶
type ValidationRuleV1 struct { // fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` FieldPath *string `json:"fieldPath,omitempty"` // Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" Message *string `json:"message,omitempty"` // MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")" MessageExpression *string `json:"messageExpression,omitempty"` // optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes May not be set unless `oldSelf` is used in `rule`. OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"` // reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: "FieldValueInvalid", "FieldValueForbidden", "FieldValueRequired", "FieldValueDuplicate". If not set, default to use "FieldValueInvalid". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid. Reason *string `json:"reason,omitempty"` // Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - An array where the items schema is of an "unknown type" - An object where the additionalProperties schema is of an "unknown type" Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", "import", "let", "loop", "package", "namespace", "return". Examples: - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional variable whose value() is the same type as `self`. See the documentation for the `optionalOldSelf` field for details. Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true. Rule string `json:"rule"` }
ValidationRuleV1 ValidationRule describes a validation rule written in the CEL expression language.
type ValidationV1 ¶
type ValidationV1 struct { // Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", "import", "let", "loop", "package", "namespace", "return". Examples: - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. Expression string `json:"expression"` // Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". Message *string `json:"message,omitempty"` // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" MessageExpression *string `json:"messageExpression,omitempty"` // Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. Reason *string `json:"reason,omitempty"` }
ValidationV1 Validation specifies the CEL expression which is used to apply the validation.
type ValidationV1alpha1 ¶
type ValidationV1alpha1 struct { // Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", "import", "let", "loop", "package", "namespace", "return". Examples: - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. Expression string `json:"expression"` // Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". Message *string `json:"message,omitempty"` // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" MessageExpression *string `json:"messageExpression,omitempty"` // Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. Reason *string `json:"reason,omitempty"` }
ValidationV1alpha1 Validation specifies the CEL expression which is used to apply the validation.
type ValidationV1beta1 ¶
type ValidationV1beta1 struct { // Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", "import", "let", "loop", "package", "namespace", "return". Examples: - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. Expression string `json:"expression"` // Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". Message *string `json:"message,omitempty"` // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" MessageExpression *string `json:"messageExpression,omitempty"` // Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. Reason *string `json:"reason,omitempty"` }
ValidationV1beta1 Validation specifies the CEL expression which is used to apply the validation.
type VariableV1 ¶
type VariableV1 struct { // Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. Expression string `json:"expression"` // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` Name string `json:"name"` }
VariableV1 Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
type VariableV1alpha1 ¶
type VariableV1alpha1 struct { // Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. Expression string `json:"expression"` // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` Name string `json:"name"` }
VariableV1alpha1 Variable is the definition of a variable that is used for composition.
type VariableV1beta1 ¶
type VariableV1beta1 struct { // Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. Expression string `json:"expression"` // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` Name string `json:"name"` }
VariableV1beta1 Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
type VolumeAttachmentListV1 ¶
type VolumeAttachmentListV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of VolumeAttachments Items []VolumeAttachmentV1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
VolumeAttachmentListV1 VolumeAttachmentList is a collection of VolumeAttachment objects.
type VolumeAttachmentSourceV1 ¶
type VolumeAttachmentSourceV1 struct { // PersistentVolumeSpec is the specification of a persistent volume. InlineVolumeSpec *PersistentVolumeSpecV1 `json:"inlineVolumeSpec,omitempty"` // persistentVolumeName represents the name of the persistent volume to attach. PersistentVolumeName *string `json:"persistentVolumeName,omitempty"` }
VolumeAttachmentSourceV1 VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.
type VolumeAttachmentSpecV1 ¶
type VolumeAttachmentSpecV1 struct { // attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). Attacher string `json:"attacher"` // nodeName represents the node that the volume should be attached to. NodeName string `json:"nodeName"` // VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. Source VolumeAttachmentSourceV1 `json:"source"` }
VolumeAttachmentSpecV1 VolumeAttachmentSpec is the specification of a VolumeAttachment request.
type VolumeAttachmentStatusV1 ¶
type VolumeAttachmentStatusV1 struct { // VolumeError captures an error encountered during a volume operation. AttachError *VolumeErrorV1 `json:"attachError,omitempty"` // attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. Attached bool `json:"attached"` // attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. AttachmentMetadata *map[string]string `json:"attachmentMetadata,omitempty"` // VolumeError captures an error encountered during a volume operation. DetachError *VolumeErrorV1 `json:"detachError,omitempty"` }
VolumeAttachmentStatusV1 VolumeAttachmentStatus is the status of a VolumeAttachment request.
type VolumeAttachmentV1 ¶
type VolumeAttachmentV1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // VolumeAttachmentSpec is the specification of a VolumeAttachment request. Spec VolumeAttachmentSpecV1 `json:"spec"` // VolumeAttachmentStatus is the status of a VolumeAttachment request. Status *VolumeAttachmentStatusV1 `json:"status,omitempty"` }
VolumeAttachmentV1 VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.
type VolumeAttributesClassListV1alpha1 ¶
type VolumeAttributesClassListV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of VolumeAttributesClass objects. Items []VolumeAttributesClassV1alpha1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
VolumeAttributesClassListV1alpha1 VolumeAttributesClassList is a collection of VolumeAttributesClass objects.
type VolumeAttributesClassListV1beta1 ¶
type VolumeAttributesClassListV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // items is the list of VolumeAttributesClass objects. Items []VolumeAttributesClassV1beta1 `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. Metadata *ListMetaV1 `json:"metadata,omitempty"` }
VolumeAttributesClassListV1beta1 VolumeAttributesClassList is a collection of VolumeAttributesClass objects.
type VolumeAttributesClassV1alpha1 ¶
type VolumeAttributesClassV1alpha1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Name of the CSI driver This field is immutable. DriverName string `json:"driverName"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field. Parameters *map[string]string `json:"parameters,omitempty"` }
VolumeAttributesClassV1alpha1 VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
type VolumeAttributesClassV1beta1 ¶
type VolumeAttributesClassV1beta1 struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion *string `json:"apiVersion,omitempty"` // Name of the CSI driver This field is immutable. DriverName string `json:"driverName"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Metadata *ObjectMetaV1 `json:"metadata,omitempty"` // parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field. Parameters *map[string]string `json:"parameters,omitempty"` }
VolumeAttributesClassV1beta1 VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
type VolumeDeviceV1 ¶
type VolumeDeviceV1 struct { // devicePath is the path inside of the container that the device will be mapped to. DevicePath string `json:"devicePath"` // name must match the name of a persistentVolumeClaim in the pod Name string `json:"name"` }
VolumeDeviceV1 volumeDevice describes a mapping of a raw block device within a container.
type VolumeErrorV1 ¶
type VolumeErrorV1 struct { // message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. Message *string `json:"message,omitempty"` // 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 *time.Time `json:"time,omitempty"` }
VolumeErrorV1 VolumeError captures an error encountered during a volume operation.
type VolumeMountStatusV1 ¶
type VolumeMountStatusV1 struct { // MountPath corresponds to the original VolumeMount. MountPath string `json:"mountPath"` // Name corresponds to the name of the original VolumeMount. Name string `json:"name"` // ReadOnly corresponds to the original VolumeMount. ReadOnly *bool `json:"readOnly,omitempty"` // RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result. RecursiveReadOnly *string `json:"recursiveReadOnly,omitempty"` }
VolumeMountStatusV1 VolumeMountStatus shows status of volume mounts.
type VolumeMountV1 ¶
type VolumeMountV1 struct { // Path within the container at which the volume should be mounted. Must not contain ':'. MountPath string `json:"mountPath"` // mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). MountPropagation *string `json:"mountPropagation,omitempty"` // This must match the Name of a Volume. Name string `json:"name"` // Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. ReadOnly *bool `json:"readOnly,omitempty"` // RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. RecursiveReadOnly *string `json:"recursiveReadOnly,omitempty"` // Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). SubPath *string `json:"subPath,omitempty"` // Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. SubPathExpr *string `json:"subPathExpr,omitempty"` }
VolumeMountV1 VolumeMount describes a mounting of a Volume within a container.
type VolumeNodeAffinityV1 ¶
type VolumeNodeAffinityV1 struct { // A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. Required *NodeSelectorV1 `json:"required,omitempty"` }
VolumeNodeAffinityV1 VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
type VolumeNodeResourcesV1 ¶
type VolumeNodeResourcesV1 struct { // count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. Count *int32 `json:"count,omitempty"` }
VolumeNodeResourcesV1 VolumeNodeResources is a set of resource limits for scheduling of volumes.
type VolumeProjectionV1 ¶
type VolumeProjectionV1 struct { // ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. ClusterTrustBundle *ClusterTrustBundleProjectionV1 `json:"clusterTrustBundle,omitempty"` // Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. ConfigMap *ConfigMapProjectionV1 `json:"configMap,omitempty"` // Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. DownwardAPI *DownwardAPIProjectionV1 `json:"downwardAPI,omitempty"` // Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. Secret *SecretProjectionV1 `json:"secret,omitempty"` // ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). ServiceAccountToken *ServiceAccountTokenProjectionV1 `json:"serviceAccountToken,omitempty"` }
VolumeProjectionV1 Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
type VolumeResourceRequirementsV1 ¶
type VolumeResourceRequirementsV1 struct { // Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Limits *map[string]string `json:"limits,omitempty"` // Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Requests *map[string]string `json:"requests,omitempty"` }
VolumeResourceRequirementsV1 VolumeResourceRequirements describes the storage resource requirements for a volume.
type VolumeV1 ¶
type VolumeV1 struct { // Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceV1 `json:"awsElasticBlockStore,omitempty"` // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. AzureDisk *AzureDiskVolumeSourceV1 `json:"azureDisk,omitempty"` // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. AzureFile *AzureFileVolumeSourceV1 `json:"azureFile,omitempty"` // Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. Cephfs *CephFSVolumeSourceV1 `json:"cephfs,omitempty"` // Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. Cinder *CinderVolumeSourceV1 `json:"cinder,omitempty"` // Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. ConfigMap *ConfigMapVolumeSourceV1 `json:"configMap,omitempty"` // Represents a source location of a volume to mount, managed by an external CSI driver CSI *CSIVolumeSourceV1 `json:"csi,omitempty"` // DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. DownwardAPI *DownwardAPIVolumeSourceV1 `json:"downwardAPI,omitempty"` // Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. EmptyDir *EmptyDirVolumeSourceV1 `json:"emptyDir,omitempty"` // Represents an ephemeral volume that is handled by a normal storage driver. Ephemeral *EphemeralVolumeSourceV1 `json:"ephemeral,omitempty"` // Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. FC *FCVolumeSourceV1 `json:"fc,omitempty"` // FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. FlexVolume *FlexVolumeSourceV1 `json:"flexVolume,omitempty"` // Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. Flocker *FlockerVolumeSourceV1 `json:"flocker,omitempty"` // Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. GCEPersistentDisk *GCEPersistentDiskVolumeSourceV1 `json:"gcePersistentDisk,omitempty"` // Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. GitRepo *GitRepoVolumeSourceV1 `json:"gitRepo,omitempty"` // Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. Glusterfs *GlusterfsVolumeSourceV1 `json:"glusterfs,omitempty"` // Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. HostPath *HostPathVolumeSourceV1 `json:"hostPath,omitempty"` // ImageVolumeSource represents a image volume resource. Image *ImageVolumeSourceV1 `json:"image,omitempty"` // Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. ISCSI *ISCSIVolumeSourceV1 `json:"iscsi,omitempty"` // name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name"` // Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. NFS *NFSVolumeSourceV1 `json:"nfs,omitempty"` // PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). PersistentVolumeClaim *PersistentVolumeClaimVolumeSourceV1 `json:"persistentVolumeClaim,omitempty"` // Represents a Photon Controller persistent disk resource. PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceV1 `json:"photonPersistentDisk,omitempty"` // PortworxVolumeSource represents a Portworx volume resource. PortworxVolume *PortworxVolumeSourceV1 `json:"portworxVolume,omitempty"` // Represents a projected volume source Projected *ProjectedVolumeSourceV1 `json:"projected,omitempty"` // Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. Quobyte *QuobyteVolumeSourceV1 `json:"quobyte,omitempty"` // Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. RBD *RBDVolumeSourceV1 `json:"rbd,omitempty"` // ScaleIOVolumeSource represents a persistent ScaleIO volume ScaleIO *ScaleIOVolumeSourceV1 `json:"scaleIO,omitempty"` // Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. Secret *SecretVolumeSourceV1 `json:"secret,omitempty"` // Represents a StorageOS persistent volume resource. Storageos *StorageOSVolumeSourceV1 `json:"storageos,omitempty"` // Represents a vSphere volume resource. VsphereVolume *VsphereVirtualDiskVolumeSourceV1 `json:"vsphereVolume,omitempty"` }
VolumeV1 Volume represents a named volume in a pod that may be accessed by any container in the pod.
type VsphereVirtualDiskVolumeSourceV1 ¶
type VsphereVirtualDiskVolumeSourceV1 struct { // fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType *string `json:"fsType,omitempty"` // storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. StoragePolicyID *string `json:"storagePolicyID,omitempty"` // storagePolicyName is the storage Policy Based Management (SPBM) profile name. StoragePolicyName *string `json:"storagePolicyName,omitempty"` // volumePath is the path that identifies vSphere volume vmdk VolumePath string `json:"volumePath"` }
VsphereVirtualDiskVolumeSourceV1 Represents a vSphere volume resource.
type WatchEventV1 ¶
type WatchEventV1 struct { // RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.Object `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:",inline"` MyPlugin runtime.RawExtension `json:"myPlugin"` } type PluginA struct { AOption string `json:"aOption"` } // On the wire, the JSON will look something like this: { "kind":"MyAPIObject", "apiVersion":"v1", "myPlugin": { "kind":"PluginA", "aOption":"foo", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) Object map[string]interface{} `json:"object"` Type string `json:"type"` }
WatchEventV1 Event represents a single event to a watched resource.
type WebhookClientConfigV1 ¶
type WebhookClientConfigV1 struct { // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. CABundle []byte `json:"caBundle,omitempty"` // ServiceReference holds a reference to Service.legacy.k8s.io Service *ServiceReferenceV1 `json:"service,omitempty"` // `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. URL *string `json:"url,omitempty"` }
WebhookClientConfigV1 WebhookClientConfig contains the information to make a TLS connection with the webhook
type WebhookConversionV1 ¶
type WebhookConversionV1 struct { // WebhookClientConfig contains the information to make a TLS connection with the webhook. ClientConfig *WebhookClientConfigV1 `json:"clientConfig,omitempty"` // conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. ConversionReviewVersions []string `json:"conversionReviewVersions"` }
WebhookConversionV1 WebhookConversion describes how to call a conversion webhook
type WeightedPodAffinityTermV1 ¶
type WeightedPodAffinityTermV1 struct { // Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running PodAffinityTerm PodAffinityTermV1 `json:"podAffinityTerm"` // weight associated with matching the corresponding podAffinityTerm, in the range 1-100. Weight int32 `json:"weight"` }
WeightedPodAffinityTermV1 The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
type WindowsSecurityContextOptionsV1 ¶
type WindowsSecurityContextOptionsV1 struct { // GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. GMSACredentialSpec *string `json:"gmsaCredentialSpec,omitempty"` // GMSACredentialSpecName is the name of the GMSA credential spec to use. GMSACredentialSpecName *string `json:"gmsaCredentialSpecName,omitempty"` // HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. HostProcess *bool `json:"hostProcess,omitempty"` // The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. RunAsUserName *string `json:"runAsUserName,omitempty"` }
WindowsSecurityContextOptionsV1 WindowsSecurityContextOptions contain Windows-specific options and credentials.
Source Files
¶
- affinity_v1.go
- aggregation_rule_v1.go
- allocation_result_v1alpha3.go
- api_group_list_v1.go
- api_group_v1.go
- api_resource_list_v1.go
- api_resource_v1.go
- api_service_condition_v1.go
- api_service_list_v1.go
- api_service_spec_v1.go
- api_service_status_v1.go
- api_service_v1.go
- api_versions_v1.go
- app_armor_profile_v1.go
- attached_volume_v1.go
- audit_annotation_v1.go
- audit_annotation_v1alpha1.go
- audit_annotation_v1beta1.go
- aws_elastic_block_store_volume_source_v1.go
- azure_disk_volume_source_v1.go
- azure_file_persistent_volume_source_v1.go
- azure_file_volume_source_v1.go
- basic_device_v1alpha3.go
- binding_v1.go
- bound_object_reference_v1.go
- capabilities_v1.go
- cel_device_selector_v1alpha3.go
- ceph_fs_persistent_volume_source_v1.go
- ceph_fs_volume_source_v1.go
- certificate_signing_request_condition_v1.go
- certificate_signing_request_list_v1.go
- certificate_signing_request_spec_v1.go
- certificate_signing_request_status_v1.go
- certificate_signing_request_v1.go
- cinder_persistent_volume_source_v1.go
- cinder_volume_source_v1.go
- client_ip_config_v1.go
- cluster_role_binding_list_v1.go
- cluster_role_binding_v1.go
- cluster_role_list_v1.go
- cluster_role_v1.go
- cluster_trust_bundle_list_v1alpha1.go
- cluster_trust_bundle_projection_v1.go
- cluster_trust_bundle_spec_v1alpha1.go
- cluster_trust_bundle_v1alpha1.go
- component_condition_v1.go
- component_status_list_v1.go
- component_status_v1.go
- condition_v1.go
- config_map_env_source_v1.go
- config_map_key_selector_v1.go
- config_map_list_v1.go
- config_map_node_config_source_v1.go
- config_map_projection_v1.go
- config_map_v1.go
- config_map_volume_source_v1.go
- container_image_v1.go
- container_port_v1.go
- container_resize_policy_v1.go
- container_resource_metric_source_v2.go
- container_resource_metric_status_v2.go
- container_state_running_v1.go
- container_state_terminated_v1.go
- container_state_v1.go
- container_state_waiting_v1.go
- container_status_v1.go
- container_user_v1.go
- container_v1.go
- controller_revision_list_v1.go
- controller_revision_v1.go
- cron_job_list_v1.go
- cron_job_spec_v1.go
- cron_job_status_v1.go
- cron_job_v1.go
- cross_version_object_reference_v1.go
- cross_version_object_reference_v2.go
- csi_driver_list_v1.go
- csi_driver_spec_v1.go
- csi_driver_v1.go
- csi_node_driver_v1.go
- csi_node_list_v1.go
- csi_node_spec_v1.go
- csi_node_v1.go
- csi_persistent_volume_source_v1.go
- csi_storage_capacity_list_v1.go
- csi_storage_capacity_v1.go
- csi_volume_source_v1.go
- custom_resource_column_definition_v1.go
- custom_resource_conversion_v1.go
- custom_resource_definition_condition_v1.go
- custom_resource_definition_list_v1.go
- custom_resource_definition_names_v1.go
- custom_resource_definition_spec_v1.go
- custom_resource_definition_status_v1.go
- custom_resource_definition_v1.go
- custom_resource_definition_version_v1.go
- custom_resource_subresource_scale_v1.go
- custom_resource_subresources_v1.go
- custom_resource_validation_v1.go
- daemon_endpoint_v1.go
- daemon_set_condition_v1.go
- daemon_set_list_v1.go
- daemon_set_spec_v1.go
- daemon_set_status_v1.go
- daemon_set_update_strategy_v1.go
- daemon_set_v1.go
- delete_options_v1.go
- deployment_condition_v1.go
- deployment_list_v1.go
- deployment_spec_v1.go
- deployment_status_v1.go
- deployment_strategy_v1.go
- deployment_v1.go
- device_allocation_configuration_v1alpha3.go
- device_allocation_result_v1alpha3.go
- device_attribute_v1alpha3.go
- device_claim_configuration_v1alpha3.go
- device_claim_v1alpha3.go
- device_class_configuration_v1alpha3.go
- device_class_list_v1alpha3.go
- device_class_spec_v1alpha3.go
- device_class_v1alpha3.go
- device_constraint_v1alpha3.go
- device_request_allocation_result_v1alpha3.go
- device_request_v1alpha3.go
- device_selector_v1alpha3.go
- device_v1alpha3.go
- downward_api_projection_v1.go
- downward_api_volume_file_v1.go
- downward_api_volume_source_v1.go
- empty_dir_volume_source_v1.go
- endpoint_address_v1.go
- endpoint_conditions_v1.go
- endpoint_hints_v1.go
- endpoint_port_v1.go
- endpoint_slice_list_v1.go
- endpoint_slice_v1.go
- endpoint_subset_v1.go
- endpoint_v1.go
- endpoints_list_v1.go
- endpoints_v1.go
- env_from_source_v1.go
- env_var_source_v1.go
- env_var_v1.go
- ephemeral_container_v1.go
- ephemeral_volume_source_v1.go
- event_list_v1.go
- event_series_v1.go
- event_source_v1.go
- event_v1.go
- eviction_v1.go
- exec_action_v1.go
- exempt_priority_level_configuration_v1.go
- exempt_priority_level_configuration_v1beta3.go
- expression_warning_v1.go
- expression_warning_v1alpha1.go
- expression_warning_v1beta1.go
- external_documentation_v1.go
- external_metric_source_v2.go
- external_metric_status_v2.go
- fc_volume_source_v1.go
- field_selector_attributes_v1.go
- field_selector_requirement_v1.go
- flex_persistent_volume_source_v1.go
- flex_volume_source_v1.go
- flocker_volume_source_v1.go
- flow_distinguisher_method_v1.go
- flow_distinguisher_method_v1beta3.go
- flow_schema_condition_v1.go
- flow_schema_condition_v1beta3.go
- flow_schema_list_v1.go
- flow_schema_list_v1beta3.go
- flow_schema_spec_v1.go
- flow_schema_spec_v1beta3.go
- flow_schema_status_v1.go
- flow_schema_status_v1beta3.go
- flow_schema_v1.go
- flow_schema_v1beta3.go
- for_zone_v1.go
- gce_persistent_disk_volume_source_v1.go
- git_repo_volume_source_v1.go
- glusterfs_persistent_volume_source_v1.go
- glusterfs_volume_source_v1.go
- group_subject_v1.go
- group_subject_v1beta3.go
- group_version_for_discovery_v1.go
- group_version_resource_v1alpha1.go
- grpc_action_v1.go
- gvk.go
- horizontal_pod_autoscaler_behavior_v2.go
- horizontal_pod_autoscaler_condition_v2.go
- horizontal_pod_autoscaler_list_v1.go
- horizontal_pod_autoscaler_list_v2.go
- horizontal_pod_autoscaler_spec_v1.go
- horizontal_pod_autoscaler_spec_v2.go
- horizontal_pod_autoscaler_status_v1.go
- horizontal_pod_autoscaler_status_v2.go
- horizontal_pod_autoscaler_v1.go
- horizontal_pod_autoscaler_v2.go
- host_alias_v1.go
- host_ip_v1.go
- host_path_volume_source_v1.go
- hpa_scaling_policy_v2.go
- hpa_scaling_rules_v2.go
- http_get_action_v1.go
- http_header_v1.go
- http_ingress_path_v1.go
- http_ingress_rule_value_v1.go
- image_volume_source_v1.go
- info_version.go
- ingress_backend_v1.go
- ingress_class_list_v1.go
- ingress_class_parameters_reference_v1.go
- ingress_class_spec_v1.go
- ingress_class_v1.go
- ingress_list_v1.go
- ingress_load_balancer_ingress_v1.go
- ingress_load_balancer_status_v1.go
- ingress_port_status_v1.go
- ingress_rule_v1.go
- ingress_service_backend_v1.go
- ingress_spec_v1.go
- ingress_status_v1.go
- ingress_tls_v1.go
- ingress_v1.go
- ip_address_list_v1beta1.go
- ip_address_spec_v1beta1.go
- ip_address_v1beta1.go
- ip_block_v1.go
- iscsi_persistent_volume_source_v1.go
- iscsi_volume_source_v1.go
- job_condition_v1.go
- job_list_v1.go
- job_spec_v1.go
- job_status_v1.go
- job_template_spec_v1.go
- job_v1.go
- json_schema_props_v1.go
- key_to_path_v1.go
- label_selector_attributes_v1.go
- label_selector_requirement_v1.go
- label_selector_v1.go
- lease_candidate_list_v1alpha1.go
- lease_candidate_spec_v1alpha1.go
- lease_candidate_v1alpha1.go
- lease_list_v1.go
- lease_spec_v1.go
- lease_v1.go
- lifecycle_handler_v1.go
- lifecycle_v1.go
- limit_range_item_v1.go
- limit_range_list_v1.go
- limit_range_spec_v1.go
- limit_range_v1.go
- limit_response_v1.go
- limit_response_v1beta3.go
- limited_priority_level_configuration_v1.go
- limited_priority_level_configuration_v1beta3.go
- linux_container_user_v1.go
- list_meta_v1.go
- load_balancer_ingress_v1.go
- load_balancer_status_v1.go
- local_object_reference_v1.go
- local_subject_access_review_v1.go
- local_volume_source_v1.go
- managed_fields_entry_v1.go
- match_condition_v1.go
- match_condition_v1alpha1.go
- match_condition_v1beta1.go
- match_resources_v1.go
- match_resources_v1alpha1.go
- match_resources_v1beta1.go
- metric_identifier_v2.go
- metric_spec_v2.go
- metric_status_v2.go
- metric_target_v2.go
- metric_value_status_v2.go
- migration_condition_v1alpha1.go
- modify_volume_status_v1.go
- mutating_webhook_configuration_list_v1.go
- mutating_webhook_configuration_v1.go
- mutating_webhook_v1.go
- named_rule_with_operations_v1.go
- named_rule_with_operations_v1alpha1.go
- named_rule_with_operations_v1beta1.go
- namespace_condition_v1.go
- namespace_list_v1.go
- namespace_spec_v1.go
- namespace_status_v1.go
- namespace_v1.go
- network_policy_egress_rule_v1.go
- network_policy_ingress_rule_v1.go
- network_policy_list_v1.go
- network_policy_peer_v1.go
- network_policy_port_v1.go
- network_policy_spec_v1.go
- network_policy_v1.go
- nfs_volume_source_v1.go
- node_address_v1.go
- node_affinity_v1.go
- node_condition_v1.go
- node_config_source_v1.go
- node_config_status_v1.go
- node_daemon_endpoints_v1.go
- node_features_v1.go
- node_list_v1.go
- node_runtime_handler_features_v1.go
- node_runtime_handler_v1.go
- node_selector_requirement_v1.go
- node_selector_term_v1.go
- node_selector_v1.go
- node_spec_v1.go
- node_status_v1.go
- node_system_info_v1.go
- node_v1.go
- non_resource_attributes_v1.go
- non_resource_policy_rule_v1.go
- non_resource_policy_rule_v1beta3.go
- non_resource_rule_v1.go
- object_field_selector_v1.go
- object_meta_v1.go
- object_metric_source_v2.go
- object_metric_status_v2.go
- object_reference_v1.go
- opaque_device_configuration_v1alpha3.go
- overhead_v1.go
- owner_reference_v1.go
- param_kind_v1.go
- param_kind_v1alpha1.go
- param_kind_v1beta1.go
- param_ref_v1.go
- param_ref_v1alpha1.go
- param_ref_v1beta1.go
- parent_reference_v1beta1.go
- persistent_volume_claim_condition_v1.go
- persistent_volume_claim_list_v1.go
- persistent_volume_claim_spec_v1.go
- persistent_volume_claim_status_v1.go
- persistent_volume_claim_template_v1.go
- persistent_volume_claim_v1.go
- persistent_volume_claim_volume_source_v1.go
- persistent_volume_list_v1.go
- persistent_volume_spec_v1.go
- persistent_volume_status_v1.go
- persistent_volume_v1.go
- photon_persistent_disk_volume_source_v1.go
- pod_affinity_term_v1.go
- pod_affinity_v1.go
- pod_anti_affinity_v1.go
- pod_condition_v1.go
- pod_disruption_budget_list_v1.go
- pod_disruption_budget_spec_v1.go
- pod_disruption_budget_status_v1.go
- pod_disruption_budget_v1.go
- pod_dns_config_option_v1.go
- pod_dns_config_v1.go
- pod_failure_policy_on_exit_codes_requirement_v1.go
- pod_failure_policy_on_pod_conditions_pattern_v1.go
- pod_failure_policy_rule_v1.go
- pod_failure_policy_v1.go
- pod_ip_v1.go
- pod_list_v1.go
- pod_os_v1.go
- pod_readiness_gate_v1.go
- pod_resource_claim_status_v1.go
- pod_resource_claim_v1.go
- pod_scheduling_context_list_v1alpha3.go
- pod_scheduling_context_spec_v1alpha3.go
- pod_scheduling_context_status_v1alpha3.go
- pod_scheduling_context_v1alpha3.go
- pod_scheduling_gate_v1.go
- pod_security_context_v1.go
- pod_spec_v1.go
- pod_status_v1.go
- pod_template_list_v1.go
- pod_template_spec_v1.go
- pod_template_v1.go
- pod_v1.go
- pods_metric_source_v2.go
- pods_metric_status_v2.go
- policy_rule_v1.go
- policy_rules_with_subjects_v1.go
- policy_rules_with_subjects_v1beta3.go
- port_status_v1.go
- portworx_volume_source_v1.go
- preconditions_v1.go
- preferred_scheduling_term_v1.go
- priority_class_list_v1.go
- priority_class_v1.go
- priority_level_configuration_condition_v1.go
- priority_level_configuration_condition_v1beta3.go
- priority_level_configuration_list_v1.go
- priority_level_configuration_list_v1beta3.go
- priority_level_configuration_reference_v1.go
- priority_level_configuration_reference_v1beta3.go
- priority_level_configuration_spec_v1.go
- priority_level_configuration_spec_v1beta3.go
- priority_level_configuration_status_v1.go
- priority_level_configuration_status_v1beta3.go
- priority_level_configuration_v1.go
- priority_level_configuration_v1beta3.go
- probe_v1.go
- projected_volume_source_v1.go
- queuing_configuration_v1.go
- queuing_configuration_v1beta3.go
- quobyte_volume_source_v1.go
- rbd_persistent_volume_source_v1.go
- rbd_volume_source_v1.go
- replica_set_condition_v1.go
- replica_set_list_v1.go
- replica_set_spec_v1.go
- replica_set_status_v1.go
- replica_set_v1.go
- replication_controller_condition_v1.go
- replication_controller_list_v1.go
- replication_controller_spec_v1.go
- replication_controller_status_v1.go
- replication_controller_v1.go
- resource_attributes_v1.go
- resource_claim_consumer_reference_v1alpha3.go
- resource_claim_list_v1alpha3.go
- resource_claim_scheduling_status_v1alpha3.go
- resource_claim_spec_v1alpha3.go
- resource_claim_status_v1alpha3.go
- resource_claim_template_list_v1alpha3.go
- resource_claim_template_spec_v1alpha3.go
- resource_claim_template_v1alpha3.go
- resource_claim_v1.go
- resource_claim_v1alpha3.go
- resource_field_selector_v1.go
- resource_health_v1.go
- resource_metric_source_v2.go
- resource_metric_status_v2.go
- resource_policy_rule_v1.go
- resource_policy_rule_v1beta3.go
- resource_pool_v1alpha3.go
- resource_quota_list_v1.go
- resource_quota_spec_v1.go
- resource_quota_status_v1.go
- resource_quota_v1.go
- resource_requirements_v1.go
- resource_rule_v1.go
- resource_slice_list_v1alpha3.go
- resource_slice_spec_v1alpha3.go
- resource_slice_v1alpha3.go
- resource_status_v1.go
- role_binding_list_v1.go
- role_binding_v1.go
- role_list_v1.go
- role_ref_v1.go
- role_v1.go
- rolling_update_daemon_set_v1.go
- rolling_update_deployment_v1.go
- rolling_update_stateful_set_strategy_v1.go
- rule_with_operations_v1.go
- runtime_class_list_v1.go
- runtime_class_v1.go
- scale_io_persistent_volume_source_v1.go
- scale_io_volume_source_v1.go
- scale_spec_v1.go
- scale_status_v1.go
- scale_v1.go
- scheduling_v1.go
- scope_selector_v1.go
- scoped_resource_selector_requirement_v1.go
- se_linux_options_v1.go
- seccomp_profile_v1.go
- secret_env_source_v1.go
- secret_key_selector_v1.go
- secret_list_v1.go
- secret_projection_v1.go
- secret_reference_v1.go
- secret_v1.go
- secret_volume_source_v1.go
- security_context_v1.go
- selectable_field_v1.go
- self_subject_access_review_spec_v1.go
- self_subject_access_review_v1.go
- self_subject_review_status_v1.go
- self_subject_review_status_v1alpha1.go
- self_subject_review_status_v1beta1.go
- self_subject_review_v1.go
- self_subject_review_v1alpha1.go
- self_subject_review_v1beta1.go
- self_subject_rules_review_spec_v1.go
- self_subject_rules_review_v1.go
- server_address_by_client_cidr_v1.go
- server_storage_version_v1alpha1.go
- service_account_list_v1.go
- service_account_subject_v1.go
- service_account_subject_v1beta3.go
- service_account_token_projection_v1.go
- service_account_v1.go
- service_backend_port_v1.go
- service_cidr_list_v1beta1.go
- service_cidr_spec_v1beta1.go
- service_cidr_status_v1beta1.go
- service_cidr_v1beta1.go
- service_list_v1.go
- service_port_v1.go
- service_reference_v1.go
- service_spec_v1.go
- service_status_v1.go
- service_v1.go
- session_affinity_config_v1.go
- sleep_action_v1.go
- stateful_set_condition_v1.go
- stateful_set_list_v1.go
- stateful_set_ordinals_v1.go
- stateful_set_persistent_volume_claim_retention_policy_v1.go
- stateful_set_spec_v1.go
- stateful_set_status_v1.go
- stateful_set_update_strategy_v1.go
- stateful_set_v1.go
- status_cause_v1.go
- status_details_v1.go
- status_v1.go
- storage_class_list_v1.go
- storage_class_v1.go
- storage_os_persistent_volume_source_v1.go
- storage_os_volume_source_v1.go
- storage_version_condition_v1alpha1.go
- storage_version_list_v1alpha1.go
- storage_version_migration_list_v1alpha1.go
- storage_version_migration_spec_v1alpha1.go
- storage_version_migration_status_v1alpha1.go
- storage_version_migration_v1alpha1.go
- storage_version_status_v1alpha1.go
- storage_version_v1alpha1.go
- subject_access_review_spec_v1.go
- subject_access_review_status_v1.go
- subject_access_review_v1.go
- subject_rules_review_status_v1.go
- subject_v1.go
- subject_v1beta3.go
- success_policy_rule_v1.go
- success_policy_v1.go
- sysctl_v1.go
- taint_v1.go
- tcp_socket_action_v1.go
- token_request_spec_v1.go
- token_request_status_v1.go
- token_request_v1.go
- token_review_spec_v1.go
- token_review_status_v1.go
- token_review_v1.go
- toleration_v1.go
- topology_selector_label_requirement_v1.go
- topology_selector_term_v1.go
- topology_spread_constraint_v1.go
- type_checking_v1.go
- type_checking_v1alpha1.go
- type_checking_v1beta1.go
- typed_local_object_reference_v1.go
- typed_object_reference_v1.go
- uncounted_terminated_pods_v1.go
- user_info_v1.go
- user_subject_v1.go
- user_subject_v1beta3.go
- utils.go
- validating_admission_policy_binding_list_v1.go
- validating_admission_policy_binding_list_v1alpha1.go
- validating_admission_policy_binding_list_v1beta1.go
- validating_admission_policy_binding_spec_v1.go
- validating_admission_policy_binding_spec_v1alpha1.go
- validating_admission_policy_binding_spec_v1beta1.go
- validating_admission_policy_binding_v1.go
- validating_admission_policy_binding_v1alpha1.go
- validating_admission_policy_binding_v1beta1.go
- validating_admission_policy_list_v1.go
- validating_admission_policy_list_v1alpha1.go
- validating_admission_policy_list_v1beta1.go
- validating_admission_policy_spec_v1.go
- validating_admission_policy_spec_v1alpha1.go
- validating_admission_policy_spec_v1beta1.go
- validating_admission_policy_status_v1.go
- validating_admission_policy_status_v1alpha1.go
- validating_admission_policy_status_v1beta1.go
- validating_admission_policy_v1.go
- validating_admission_policy_v1alpha1.go
- validating_admission_policy_v1beta1.go
- validating_webhook_configuration_list_v1.go
- validating_webhook_configuration_v1.go
- validating_webhook_v1.go
- validation_rule_v1.go
- validation_v1.go
- validation_v1alpha1.go
- validation_v1beta1.go
- variable_v1.go
- variable_v1alpha1.go
- variable_v1beta1.go
- volume_attachment_list_v1.go
- volume_attachment_source_v1.go
- volume_attachment_spec_v1.go
- volume_attachment_status_v1.go
- volume_attachment_v1.go
- volume_attributes_class_list_v1alpha1.go
- volume_attributes_class_list_v1beta1.go
- volume_attributes_class_v1alpha1.go
- volume_attributes_class_v1beta1.go
- volume_device_v1.go
- volume_error_v1.go
- volume_mount_status_v1.go
- volume_mount_v1.go
- volume_node_affinity_v1.go
- volume_node_resources_v1.go
- volume_projection_v1.go
- volume_resource_requirements_v1.go
- volume_v1.go
- vsphere_virtual_disk_volume_source_v1.go
- watch_event_v1.go
- webhook_client_config_v1.go
- webhook_conversion_v1.go
- weighted_pod_affinity_term_v1.go
- windows_security_context_options_v1.go