kubernetes

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppKubernetesNameLabelKey The name of the application
	AppKubernetesNameLabelKey = "app.kubernetes.io/name"
	// AppKubernetesInstanceLabelKey A unique name identifying the instance of an application
	AppKubernetesInstanceLabelKey = "app.kubernetes.io/instance"
	// AppKubernetesVersionLabelKey The current version of the application
	AppKubernetesVersionLabelKey = "app.kubernetes.io/version"
	// AppKubernetesComponentLabelKey The component within the architecture
	AppKubernetesComponentLabelKey = "app.kubernetes.io/component"
	// AppKubernetesPartOfLabelKey The name of a higher level application this one is part of
	AppKubernetesPartOfLabelKey = "app.kubernetes.io/part-of"
	// AppKubernetesManageByLabelKey The tool being used to manage the operation of an application
	AppKubernetesManageByLabelKey = "app.kubernetes.io/managed-by"
)
View Source
const (
	// ConfigMapKind ConfigMaps resource kind
	ConfigMapKind ObjectKind = "configmaps"
	// ClusterRolesKind ClusterRoles resource kind
	ClusterRolesKind = "clusterroles"
	// ClusterRoleBindingKind ClusterRoleBindings resource kind
	ClusterRoleBindingKind = "clusterrolebindings"
	// RolesKind Roles resource kind
	RolesKind = "roles"
	// RoleBindingKind RoleBinding resource kind
	RoleBindingKind = "rolebindings"
	// MutatingWebhookConfigurationsKind MutatingWebhookConfigurations resource kind
	MutatingWebhookConfigurationsKind = "mutatingwebhookconfigurations"
	// APIServiceKind APIService resource kind
	APIServiceKind = "apiservices"
	// SecretsKind Secrets resource kind
	SecretsKind = "secrets"
	// ServicesKind Services resource kind
	ServicesKind = "services"
	// ServiceAccountsKind ServiceAccounts resource kind
	ServiceAccountsKind = "serviceaccounts"
	// PodDisruptionBudgetsKind PodDisruptionBudgets resource kind
	PodDisruptionBudgetsKind = "poddisruptionbudgets"
	// NetworkPoliciesKind NetworkPolicies resource kind
	NetworkPoliciesKind = "networkpolicies"
	// PodSecurityPoliciesKind PodSecurityPolicies resource kind
	PodSecurityPoliciesKind = "podsecuritypolicies"
	// CiliumNetworkPoliciesKind CiliumNetworkPolicies resource kind
	CiliumNetworkPoliciesKind = "ciliumnetworkpolicies"
	// SecurityContextConstraintsKind SecurityContextConstraints resource kind
	SecurityContextConstraintsKind = "securitycontextconstraints"
)

Variables

This section is empty.

Functions

func ObjectFromKind added in v1.0.0

func ObjectFromKind(kind ObjectKind, platformInfo PlatformInfo) client.Object

ObjectFromKind returns the corresponding object list from a kind

func ObjectListFromKind added in v1.0.0

func ObjectListFromKind(kind ObjectKind, platformInfo PlatformInfo) client.ObjectList

ObjectListFromKind returns the corresponding object list from a kind

func UpdateFromObject added in v0.8.0

func UpdateFromObject(ctx context.Context, c client.Client, newObject client.Object, oldMeta metav1.ObjectMeta) error

UpdateFromObject performs an update and forces previous ResourceVersion to be set

Types

type ObjectKind added in v1.0.0

type ObjectKind string

ObjectKind type for kubernetes resource kind.

type PlatformInfo added in v1.0.0

type PlatformInfo struct {
	// contains filtered or unexported fields
}

func NewPlatformInfo added in v1.0.0

func NewPlatformInfo(versionInfo *version.Info, groups []*v1.APIGroup, resources []*v1.APIResourceList) PlatformInfo

func NewPlatformInfoFromVersionMaps added in v1.0.0

func NewPlatformInfoFromVersionMaps(versionInfo *version.Info, apiPreferredVersions, apiOtherVersions map[string]string) PlatformInfo

func (*PlatformInfo) CreatePDBObject added in v1.0.0

func (platformInfo *PlatformInfo) CreatePDBObject() client.Object

func (*PlatformInfo) CreatePDBObjectList added in v1.0.0

func (platformInfo *PlatformInfo) CreatePDBObjectList() client.ObjectList

func (*PlatformInfo) GetAgentResourcesKind added in v1.0.0

func (platformInfo *PlatformInfo) GetAgentResourcesKind(withCiliumResources bool) []ObjectKind

func (*PlatformInfo) GetApiVersions added in v1.0.0

func (platformInfo *PlatformInfo) GetApiVersions(name string) (preferred string, other string)

func (*PlatformInfo) IsResourceSupported added in v1.0.0

func (platformInfo *PlatformInfo) IsResourceSupported(resource string) bool

IsResourceSupported returns true if a Kubernetes resource is supported by the server

func (*PlatformInfo) UseV1Beta1PDB added in v1.0.0

func (platformInfo *PlatformInfo) UseV1Beta1PDB() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL