Documentation ¶
Index ¶
Constants ¶
View Source
const ( SecretKind = "Secret" ServiceKind = "Service" ServiceAccountKind = "ServiceAccount" EndpointsKind = "Endpoints" EndPointsSlice = "EndpointSlice" DeploymentKind = "Deployment" ReplicaSetKind = "ReplicaSet" StatefulSetKind = "StatefulSet" DaemonSetKind = "DaemonSet" IngressKind = "Ingress" JobKind = "Job" PersistentVolumeClaimKind = "PersistentVolumeClaim" CustomResourceDefinitionKind = "CustomResourceDefinition" PodKind = "Pod" APIServiceKind = "APIService" NamespaceKind = "Namespace" HorizontalPodAutoscalerKind = "HorizontalPodAutoscaler" Spec = "spec" Template = "template" JobTemplate = "jobTemplate" Ports = "ports" Port = "port" Subsets = "subsets" Nodes = "nodes" Containers = "containers" InitContainers = "initContainers" EphemeralContainers = "ephemeralContainers" Image = "image" )
View Source
const ( PersistentVolumeClaimsResourceType = "persistentvolumeclaims" StatefulSetsResourceType = "statefulsets" )
View Source
const ( Group = "group" Version = "version" Kind = "kind" )
View Source
const ( K8sResourceColumnDefinitionName = "Name" K8sResourceColumnDefinitionSyncStatus = "Sync Status" K8sResourceColumnDefinitionHealthStatus = "Health Status" K8sClusterResourceStatusKey = "status" K8sClusterResourceHealthKey = "health" K8sClusterResourceResourcesKey = "resources" K8sClusterResourceSyncKey = "sync" )
View Source
const ( // EvictionKind represents the kind of evictions object EvictionKind = "Eviction" // EvictionSubresource represents the kind of evictions object as pod's subresource EvictionSubresource = "pods/eviction" )
View Source
const AppsGroup = "apps"
View Source
const BatchGroup = "batch"
View Source
const K8sClusterResourceApiVersionKey = "apiVersion"
View Source
const K8sClusterResourceCellKey = "cells"
View Source
const K8sClusterResourceColumnDefinitionKey = "columnDefinitions"
View Source
const K8sClusterResourceCreationTimestampKey = "creationTimestamp"
View Source
const K8sClusterResourceCronJobKind = "CronJob"
View Source
const K8sClusterResourceGroupKey = "group"
View Source
const K8sClusterResourceKindKey = "kind"
View Source
const K8sClusterResourceMetadataKey = "metadata"
View Source
const K8sClusterResourceMetadataNameKey = "name"
View Source
const K8sClusterResourceNameKey = "name"
View Source
const K8sClusterResourceNamespaceKey = "namespace"
View Source
const K8sClusterResourceObjectKey = "object"
View Source
const K8sClusterResourceOwnerReferenceKey = "ownerReferences"
View Source
const K8sClusterResourcePriorityKey = "priority"
View Source
const K8sClusterResourceReplicationControllerKind = "ReplicationController"
View Source
const K8sClusterResourceRolloutGroup = "argoproj.io"
View Source
const K8sClusterResourceRolloutKind = "Rollout"
View Source
const K8sClusterResourceRowsKey = "rows"
View Source
const K8sClusterResourceVersionKey = "version"
View Source
const V1VERSION = "v1"
Variables ¶
View Source
var KindVsChildrenGvk = map[string][]schema.GroupVersionKind{ DeploymentKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Group: AppsGroup, Version: V1VERSION, Kind: ReplicaSetKind}, schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), K8sClusterResourceRolloutKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Group: AppsGroup, Version: V1VERSION, Kind: ReplicaSetKind}, schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), K8sClusterResourceCronJobKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Group: BatchGroup, Version: V1VERSION, Kind: JobKind}, schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), JobKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), ReplicaSetKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), DaemonSetKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), StatefulSetKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), K8sClusterResourceReplicationControllerKind: append(make([]schema.GroupVersionKind, 0), schema.GroupVersionKind{Version: V1VERSION, Kind: PodKind}), }
Functions ¶
func GetContainerSubPathForKind ¶ added in v0.0.17
func GetGvkVsChildGvrAndScope ¶
func GetGvkVsChildGvrAndScope() map[schema.GroupVersionKind][]*GvrAndScope
Types ¶
type GvrAndScope ¶
type GvrAndScope struct { Gvr schema.GroupVersionResource Scope meta.RESTScopeName }
type OperationPhase ¶
type OperationPhase string
const ( OperationRunning OperationPhase = "Running" OperationTerminating OperationPhase = "Terminating" OperationFailed OperationPhase = "Failed" OperationError OperationPhase = "Error" OperationSucceeded OperationPhase = "Succeeded" )
Click to show internal directories.
Click to hide internal directories.