Documentation
¶
Overview ¶
Package k8s provides functionality for Vald.
Package k8s provides kubernetes control functionality ¶
Package k8s provides kubernetes control functionality ¶
Package k8s provides kubernetes control functionality
Index ¶
- Constants
- Variables
- type Client
- type ConcurrentReconciler
- type Condition
- type ConditionStatus
- type Container
- type Controller
- type CreateOption
- type DeleteAllOfOptions
- type DeleteOptions
- type Deployment
- type DeploymentList
- type EventHandler
- type ForOption
- type GetOption
- type GroupVersionKind
- type GroupVersionResource
- type InNamespace
- type Job
- type JobList
- type JobStatus
- type ListOption
- type ListOptions
- type Manager
- type MatchingFields
- type MatchingLabels
- type NamespacedName
- type Node
- type NodeList
- type NodeMetrics
- type NodeMetricsList
- type Object
- type ObjectKey
- type ObjectList
- type ObjectMeta
- type Option
- func WithCacheNamespaces(namespaces ...string) Option
- func WithControllerName(name string) Option
- func WithDialer(der net.Dialer) Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithLeaderElection(enabled bool, id, namespace string) Option
- func WithLeaderElectionDetail(leaseDuration, renewDeadline, retryPeriod time.Duration) Option
- func WithMetricsAddress(addr string) Option
- func WithResourceController(rc ResourceController) Option
- func WithSyncPeriod(dur time.Duration) Option
- type OwnerReference
- type OwnsOption
- type PatchOptions
- type PersistentVolumeClaim
- type PersistentVolumeClaimList
- type PersistentVolumeClaimSpec
- type Pod
- type PodList
- type PodMetrics
- type PodMetricsList
- type PodSpec
- type PodStatus
- type RESTConfig
- type Reconciler
- type Request
- type ResourceController
- type ResourceList
- type ResourceRequirements
- type Result
- type RuntimeObject
- type Scheme
- type Time
- type Toleration
- type TypedLocalObjectReference
- type UID
- type Unstructured
- type VolumeSnapshot
- type VolumeSnapshotList
- type WatchesOption
- type WithWatch
Constants ¶
const ( ApplyPatchType = types.ApplyPatchType DeletePropagationBackground = metav1.DeletePropagationBackground SelectionOpEquals = selection.Equals SelectionOpExists = selection.Exists PodIndexLabel = appsv1.PodIndexLabel PodRunning = corev1.PodRunning PodPending = corev1.PodPending ResourceCPU = corev1.ResourceCPU ResourceMemory = corev1.ResourceMemory NodeInternalIP = corev1.NodeInternalIP NodeInternalDNS = corev1.NodeInternalDNS NodeExternalIP = corev1.NodeExternalIP NodeExternalDNS = corev1.NodeExternalDNS NodeHostName = corev1.NodeHostName // condition status constants. ConditionTrue = metav1.ConditionTrue ConditionFalse = metav1.ConditionFalse ConditionUnknown = metav1.ConditionUnknown // toleration constants. TolerationOpEqual = corev1.TolerationOpEqual TaintEffectNoSchedule = corev1.TaintEffectNoSchedule // service type constants. ServiceTypeClusterIP = corev1.ServiceTypeClusterIP ServiceTypeLoadBalancer = corev1.ServiceTypeLoadBalancer // path type constants. PathTypeExact = networkingv1.PathTypeExact PathTypeImplementationSpecific = networkingv1.PathTypeImplementationSpecific PathTypePrefix = networkingv1.PathTypePrefix )
Variables ¶
var ( AddCoreToScheme = corev1.AddToScheme IsNotFound = apierrors.IsNotFound NestedFloat64 = unstructured.NestedFloat64 NewJSONPath = jsonpath.New NewScheme = runtime.NewScheme NewYAMLOrJSONDecoder = utilyaml.NewYAMLOrJSONDecoder YAMLMarshal = yaml.Marshal YAMLUnmarshal = yaml.Unmarshal )
var AddClientGoScheme = clientgoscheme.AddToScheme
var AddMetricsToScheme = metricsv1beta1.AddToScheme
AddMetricsToScheme registers the metrics.k8s.io/v1beta1 types with the given scheme.
var Now = metav1.Now
Functions ¶
This section is empty.
Types ¶
type ConcurrentReconciler ¶ added in v1.8.0
type ConcurrentReconciler interface {
MaxConcurrentReconciles() int
}
ConcurrentReconciler is an optional interface a ResourceController can implement to request a per-controller worker count. When the returned value is greater than zero it is applied as MaxConcurrentReconciles on the built controller; existing ResourceController implementations are unaffected.
type ConditionStatus ¶ added in v1.8.0
type ConditionStatus = metav1.ConditionStatus
type Controller ¶
func New ¶
func New(opts ...Option) (cl Controller, err error)
type CreateOption ¶ added in v1.7.13
type CreateOption = client.CreateOption
type DeleteAllOfOptions ¶ added in v1.7.13
type DeleteAllOfOptions = client.DeleteAllOfOptions
type DeleteOptions ¶ added in v1.7.13
type DeleteOptions = client.DeleteOptions
type Deployment ¶ added in v1.7.13
type Deployment = appsv1.Deployment
type DeploymentList ¶ added in v1.7.13
type DeploymentList = appsv1.DeploymentList
type EventHandler ¶ added in v1.8.0
type EventHandler = handler.EventHandler
type GroupVersionKind ¶ added in v1.8.0
type GroupVersionKind = schema.GroupVersionKind
type GroupVersionResource ¶ added in v1.8.0
type GroupVersionResource = schema.GroupVersionResource
type InNamespace ¶ added in v1.7.13
type InNamespace = client.InNamespace
type ListOption ¶ added in v1.7.13
type ListOption = client.ListOption
type ListOptions ¶ added in v1.7.13
type ListOptions = client.ListOptions
type MatchingFields ¶ added in v1.8.0
type MatchingFields = client.MatchingFields
type MatchingLabels ¶ added in v1.7.13
type MatchingLabels = client.MatchingLabels
type NamespacedName ¶ added in v1.8.0
type NamespacedName = types.NamespacedName
type NodeMetrics ¶ added in v1.8.0
type NodeMetrics = metricsv1beta1.NodeMetrics
metrics.k8s.io/v1beta1 API types.
type NodeMetricsList ¶ added in v1.8.0
type NodeMetricsList = metricsv1beta1.NodeMetricsList
metrics.k8s.io/v1beta1 API types.
type ObjectList ¶ added in v1.8.0
type ObjectList = client.ObjectList
type ObjectMeta ¶ added in v1.7.13
type ObjectMeta = metav1.ObjectMeta
type Option ¶
type Option func(*controller) error
func WithCacheNamespaces ¶ added in v1.8.0
WithCacheNamespaces restricts the manager cache to the given namespaces. Empty entries are skipped; when no namespace remains, the cache watches the whole cluster as before.
func WithControllerName ¶
func WithDialer ¶ added in v1.0.2
func WithErrGroup ¶
func WithLeaderElection ¶ added in v1.7.13
func WithLeaderElectionDetail ¶ added in v1.8.0
WithLeaderElectionDetail sets the leader election lease timings applied to the manager. Non-positive values are ignored so that controller-runtime defaults (15s/10s/2s) remain in effect for the unset fields.
func WithMetricsAddress ¶
func WithResourceController ¶
func WithResourceController(rc ResourceController) Option
func WithSyncPeriod ¶ added in v1.8.0
WithSyncPeriod sets the informer cache resync interval. A non-positive value keeps the controller-runtime default (10h with jitter).
type OwnerReference ¶ added in v1.7.11
type OwnerReference = metav1.OwnerReference
type OwnsOption ¶ added in v1.8.0
type OwnsOption = builder.OwnsOption
type PatchOptions ¶ added in v1.8.0
type PatchOptions = metav1.PatchOptions
type PersistentVolumeClaim ¶ added in v1.7.13
type PersistentVolumeClaim = corev1.PersistentVolumeClaim
type PersistentVolumeClaimList ¶ added in v1.7.13
type PersistentVolumeClaimList = corev1.PersistentVolumeClaimList
type PersistentVolumeClaimSpec ¶ added in v1.7.13
type PersistentVolumeClaimSpec = corev1.PersistentVolumeClaimSpec
type PodMetrics ¶ added in v1.8.0
type PodMetrics = metricsv1beta1.PodMetrics
metrics.k8s.io/v1beta1 API types.
type PodMetricsList ¶ added in v1.8.0
type PodMetricsList = metricsv1beta1.PodMetricsList
metrics.k8s.io/v1beta1 API types.
type RESTConfig ¶ added in v1.8.0
type Reconciler ¶ added in v1.8.0
type Reconciler = reconcile.Reconciler
type ResourceController ¶
type ResourceList ¶ added in v1.8.0
type ResourceList = corev1.ResourceList
type ResourceRequirements ¶ added in v1.8.0
type ResourceRequirements = corev1.ResourceRequirements
type RuntimeObject ¶ added in v1.8.0
type Toleration ¶ added in v1.8.0
type Toleration = corev1.Toleration
k8s workload types not yet aliased.
type TypedLocalObjectReference ¶ added in v1.7.13
type TypedLocalObjectReference = corev1.TypedLocalObjectReference
type Unstructured ¶ added in v1.8.0
type Unstructured = unstructured.Unstructured
unstructured / schema / scheme types.
type VolumeSnapshot ¶ added in v1.7.13
type VolumeSnapshot = snapshotv1.VolumeSnapshot
type VolumeSnapshotList ¶ added in v1.7.13
type VolumeSnapshotList = snapshotv1.VolumeSnapshotList
type WatchesOption ¶ added in v1.8.0
type WatchesOption = builder.WatchesOption
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client is Kubernetes client for getting resource from Kubernetes cluster.
|
Package client is Kubernetes client for getting resource from Kubernetes cluster. |
|
package portforward provides a persistent port forwarding daemon for Kubernetes services.
|
package portforward provides a persistent port forwarding daemon for Kubernetes services. |
|
Package reconciler provides generic k8s.ResourceController implementations that reconcile arbitrary Kinds (including custom resources) through the internal/k8s/resource helpers.
|
Package reconciler provides generic k8s.ResourceController implementations that reconcile arbitrary Kinds (including custom resources) through the internal/k8s/resource helpers. |
|
Package resource provides generic typed clients, status evaluation and rollout helpers for Kubernetes resources.
|
Package resource provides generic typed clients, status evaluation and rollout helpers for Kubernetes resources. |
|
Package vald provides functionality for Vald.
|
Package vald provides functionality for Vald. |
|
benchmark/api/v1
Package v1 provides functionality for Vald.
|
Package v1 provides functionality for Vald. |
|
benchmark/job
Package job provides benchmark job crd information and preriodically update
|
Package job provides benchmark job crd information and preriodically update |
|
benchmark/scenario
Package operator provides benchmark operator crd information and preriodically update
|
Package operator provides benchmark operator crd information and preriodically update |
|
mirror/api/v1
Package v1 provides functionality for Vald.
|
Package v1 provides functionality for Vald. |
|
operator/api/v1
Package v1 contains API Schema definitions for the controller v1 API group.
|
Package v1 contains API Schema definitions for the controller v1 API group. |