Documentation ¶
Index ¶
- Constants
- func BuildRadixConfigEnvVarsConfigMap(appName, componentName string) *corev1.ConfigMap
- func BuildRadixConfigEnvVarsMetadataConfigMap(appName, componentName string) *corev1.ConfigMap
- func CreateManageSecretRole(appName, roleName string, secretNames []string, ...) *auth.Role
- func GetEnvVarsConfigMapName(componentName string) string
- func GetEnvVarsMetadataConfigMapName(componentName string) string
- func GetEnvVarsMetadataFromConfigMap(envVarsMetadataConfigMap *corev1.ConfigMap) (map[string]EnvVarMetadata, error)
- func GetRoleBindingGroups(groups []string) []auth.Subject
- func GetRolebindingToClusterRole(appName, roleName string, groups []string) *auth.RoleBinding
- func GetRolebindingToClusterRoleForServiceAccountWithLabels(roleName, serviceAccountName, serviceAccountNamespace string, ...) *auth.RoleBinding
- func GetRolebindingToClusterRoleForSubjects(appName, roleName string, subjects []auth.Subject) *auth.RoleBinding
- func GetRolebindingToClusterRoleForSubjectsWithLabels(roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
- func GetRolebindingToClusterRoleWithLabels(roleName string, groups []string, labels map[string]string) *auth.RoleBinding
- func GetRolebindingToRole(appName, roleName string, groups []string) *auth.RoleBinding
- func GetRolebindingToRoleForServiceAccountWithLabels(roleName, serviceAccountName, serviceAccountNamespace string, ...) *auth.RoleBinding
- func GetRolebindingToRoleForSubjectsWithLabels(appName, roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
- func GetRolebindingToRoleWithLabels(roleName string, groups []string, labels map[string]string) *auth.RoleBinding
- func GetRolebindingToRoleWithLabelsForSubjects(roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
- func IsEmptyPatch(patchBytes []byte) bool
- func SetEnvVarsMetadataMapToConfigMap(configMap *corev1.ConfigMap, envVarsMetadataMap map[string]EnvVarMetadata) error
- type EnvVarMetadata
- type Kube
- func (kubeutil *Kube) ApplyClusterRole(clusterrole *auth.ClusterRole) error
- func (kubeutil *Kube) ApplyClusterRoleBinding(clusterrolebinding *auth.ClusterRoleBinding) error
- func (kubeutil *Kube) ApplyClusterRoleToServiceAccount(roleName string, serviceAccount *corev1.ServiceAccount, ...) error
- func (kubeutil *Kube) ApplyConfigMap(namespace string, currentConfigMap, desiredConfigMap *corev1.ConfigMap) error
- func (kubeutil *Kube) ApplyDeployment(namespace string, currentDeployment *appsv1.Deployment, ...) error
- func (kubeutil *Kube) ApplyEnvVarsMetadataConfigMap(namespace string, currentEnvVarsMetadataConfigMap *corev1.ConfigMap, ...) error
- func (kubeutil *Kube) ApplyIngress(namespace string, ingress *networkingv1beta1.Ingress) error
- func (kubeutil *Kube) ApplyLimitRange(namespace string, limitRange *corev1.LimitRange) error
- func (kubeutil *Kube) ApplyNamespace(name string, labels map[string]string, ownerRefs []metav1.OwnerReference) error
- func (kubeutil *Kube) ApplyRole(namespace string, role *auth.Role) error
- func (kubeutil *Kube) ApplyRoleBinding(namespace string, role *auth.RoleBinding) error
- func (kubeutil *Kube) ApplySecret(namespace string, secret *corev1.Secret) (savedSecret *corev1.Secret, err error)
- func (kubeutil *Kube) ApplyService(namespace string, service *corev1.Service) error
- func (kubeutil *Kube) ApplyServiceAccount(serviceAccount corev1.ServiceAccount) (*corev1.ServiceAccount, error)
- func (kubeutil *Kube) BuildLimitRange(namespace, name, appName string, ...) *corev1.LimitRange
- func (kubeutil *Kube) CreateConfigMap(namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func (kubeutil *Kube) DeleteClusterRoleBinding(name string) error
- func (kubeutil *Kube) DeleteRole(namespace, name string) error
- func (kubeutil *Kube) DeleteRoleBinding(namespace, name string) error
- func (kubeutil *Kube) DeleteSecret(namespace, secretName string) error
- func (kubeutil *Kube) DeleteServiceAccount(namespace, name string) error
- func (kubeutil *Kube) GetActiveDeployment(namespace string) (*v1.RadixDeployment, error)
- func (kubeutil *Kube) GetClusterName() (string, error)
- func (kubeutil *Kube) GetClusterRole(name string) (*auth.ClusterRole, error)
- func (kubeutil *Kube) GetConfigMap(namespace, name string) (*corev1.ConfigMap, error)
- func (kubeutil *Kube) GetContainerRegistry() (string, error)
- func (kubeutil *Kube) GetDeployment(namespace, name string) (*appsv1.Deployment, error)
- func (kubeutil *Kube) GetEnvVarsConfigMapAndMetadataMap(namespace string, componentName string) (*corev1.ConfigMap, *corev1.ConfigMap, map[string]EnvVarMetadata, error)
- func (kubeutil *Kube) GetEnvVarsMetadataConfigMapAndMap(namespace string, componentName string) (*corev1.ConfigMap, map[string]EnvVarMetadata, error)
- func (kubeutil *Kube) GetEnvironment(name string) (*v1.RadixEnvironment, error)
- func (kubeutil *Kube) GetOrCreateEnvVarsConfigMapAndMetadataMap(namespace, appName, componentName string) (*corev1.ConfigMap, *corev1.ConfigMap, error)
- func (kubeutil *Kube) GetRadixDeployment(namespace, name string) (*v1.RadixDeployment, error)
- func (kubeutil *Kube) GetRegistration(name string) (*v1.RadixRegistration, error)
- func (kubeutil *Kube) GetRole(namespace, name string) (*auth.Role, error)
- func (kubeutil *Kube) GetRoleBinding(namespace, name string) (*auth.RoleBinding, error)
- func (kubeutil *Kube) GetSecret(namespace, name string) (*corev1.Secret, error)
- func (kubeutil *Kube) ListClusterRoleBindings(namespace string) ([]*auth.ClusterRoleBinding, error)
- func (kubeutil *Kube) ListClusterRoles(namespace string) ([]*auth.ClusterRole, error)
- func (kubeutil *Kube) ListDeployments(namespace string) ([]*appsv1.Deployment, error)
- func (kubeutil *Kube) ListEnvironments() ([]*v1.RadixEnvironment, error)
- func (kubeutil *Kube) ListIngresses(namespace string) ([]*networkingv1beta1.Ingress, error)
- func (kubeutil *Kube) ListIngressesWithSelector(namespace string, labelSelectorString *string) ([]*networkingv1beta1.Ingress, error)
- func (kubeutil *Kube) ListJobs(namespace string) ([]*batchv1.Job, error)
- func (kubeutil *Kube) ListRadixDeployments(namespace string) ([]*v1.RadixDeployment, error)
- func (kubeutil *Kube) ListRegistrations() ([]*v1.RadixRegistration, error)
- func (kubeutil *Kube) ListRoleBindings(namespace string) ([]*auth.RoleBinding, error)
- func (kubeutil *Kube) ListRoleBindingsWithSelector(namespace string, labelSelectorString *string) ([]*auth.RoleBinding, error)
- func (kubeutil *Kube) ListRoles(namespace string) ([]*auth.Role, error)
- func (kubeutil *Kube) ListRolesWithSelector(namespace string, labelSelectorString *string) ([]*auth.Role, error)
- func (kubeutil *Kube) ListSecrets(namespace string) ([]*v1.Secret, error)
- func (kubeutil *Kube) ListSecretsWithSelector(namespace string, labelSelectorString *string) ([]*v1.Secret, error)
- func (kubeutil *Kube) ListServices(namespace string) ([]*corev1.Service, error)
- func (kubeutil *Kube) SecretExists(namespace, secretName string) bool
- func (kubeutil *Kube) UpdateConfigMap(namespace string, configMaps ...*corev1.ConfigMap) error
- func (kubeutil *Kube) WaitForCompletionOf(job *batchv1.Job) error
- type NamespaceWatcher
- type NamespaceWatcherImpl
- type RadixConfigMapType
Constants ¶
const ( RadixBranchAnnotation = "radix-branch" RadixComponentImagesAnnotation = "radix-component-images" RadixContainerOutputAnnotation = "radix-container-output" RadixDeploymentNameAnnotation = "radix-deployment-name" // See https://github.com/equinor/radix-velero-plugin/blob/master/velero-plugins/deployment/restore.go RestoredStatusAnnotation = "equinor.com/velero-restored-status" )
Radix Annotations
const ( RadixAppLabel = "radix-app" RadixEnvLabel = "radix-env" RadixComponentLabel = "radix-component" RadixComponentTypeLabel = "radix-component-type" RadixJobNameLabel = "radix-job-name" RadixBuildLabel = "radix-build" RadixCommitLabel = "radix-commit" RadixImageTagLabel = "radix-image-tag" RadixJobTypeLabel = "radix-job-type" RadixJobTypeJob = "job" // Outer job RadixJobTypeBuild = "build" RadixJobTypeScan = "scan" RadixJobTypeCloneConfig = "clone-config" RadixJobTypeJobSchedule = "job-scheduler" RadixAppAliasLabel = "radix-app-alias" RadixExternalAliasLabel = "radix-app-external-alias" RadixActiveClusterAliasLabel = "radix-app-active-cluster-alias" RadixMountTypeLabel = "mount-type" RadixVolumeMountNameLabel = "radix-volume-mount-name" RadixGpuLabel = "radix-node-gpu" RadixGpuCountLabel = "radix-node-gpu-count" RadixNamespace = "radix-namespace" RadixConfigMapTypeLabel = "radix-config-map-type" // Only for backward compatibility RadixBranchDeprecated = "radix-branch" )
Radix Labels
Variables ¶
This section is empty.
Functions ¶
func BuildRadixConfigEnvVarsConfigMap ¶ added in v1.15.0
BuildRadixConfigEnvVarsConfigMap Build environment-variables config-map
func BuildRadixConfigEnvVarsMetadataConfigMap ¶ added in v1.15.0
BuildRadixConfigEnvVarsMetadataConfigMap Build environment-variables metadata config-map
func CreateManageSecretRole ¶ added in v1.3.0
func CreateManageSecretRole(appName, roleName string, secretNames []string, customLabels *map[string]string) *auth.Role
CreateManageSecretRole creates a role that can manage a secret with predefined set of verbs
func GetEnvVarsConfigMapName ¶ added in v1.15.0
GetEnvVarsConfigMapName Get config-map name for environment variables
func GetEnvVarsMetadataConfigMapName ¶ added in v1.15.0
GetEnvVarsMetadataConfigMapName Get config-map name for environment variables metadata
func GetEnvVarsMetadataFromConfigMap ¶ added in v1.15.0
func GetEnvVarsMetadataFromConfigMap(envVarsMetadataConfigMap *corev1.ConfigMap) (map[string]EnvVarMetadata, error)
GetEnvVarsMetadataFromConfigMap Get environment-variables metadata from config-map
func GetRoleBindingGroups ¶
GetRoleBindingGroups Get subjects for list of ad groups
func GetRolebindingToClusterRole ¶ added in v1.3.0
func GetRolebindingToClusterRole(appName, roleName string, groups []string) *auth.RoleBinding
GetRolebindingToClusterRole Get role binding object
func GetRolebindingToClusterRoleForServiceAccountWithLabels ¶ added in v1.3.0
func GetRolebindingToClusterRoleForServiceAccountWithLabels(roleName, serviceAccountName, serviceAccountNamespace string, labels map[string]string) *auth.RoleBinding
GetRolebindingToClusterRoleForServiceAccountWithLabels Get role binding object
func GetRolebindingToClusterRoleForSubjects ¶ added in v1.5.0
func GetRolebindingToClusterRoleForSubjects(appName, roleName string, subjects []auth.Subject) *auth.RoleBinding
GetRolebindingToClusterRoleForSubjects Get role binding object for list of subjects
func GetRolebindingToClusterRoleForSubjectsWithLabels ¶ added in v1.5.0
func GetRolebindingToClusterRoleForSubjectsWithLabels(roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
GetRolebindingToClusterRoleForSubjectsWithLabels Get role binding object for list of subjects with labels set
func GetRolebindingToClusterRoleWithLabels ¶ added in v1.3.0
func GetRolebindingToClusterRoleWithLabels(roleName string, groups []string, labels map[string]string) *auth.RoleBinding
GetRolebindingToClusterRoleWithLabels Get role binding object
func GetRolebindingToRole ¶ added in v1.3.0
func GetRolebindingToRole(appName, roleName string, groups []string) *auth.RoleBinding
GetRolebindingToRole Get role binding object
func GetRolebindingToRoleForServiceAccountWithLabels ¶ added in v1.3.0
func GetRolebindingToRoleForServiceAccountWithLabels(roleName, serviceAccountName, serviceAccountNamespace string, labels map[string]string) *auth.RoleBinding
GetRolebindingToRoleForServiceAccountWithLabels Get role binding object
func GetRolebindingToRoleForSubjectsWithLabels ¶ added in v1.5.0
func GetRolebindingToRoleForSubjectsWithLabels(appName, roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
GetRolebindingToRoleForSubjectsWithLabels Get role binding object for list of subjects with labels set
func GetRolebindingToRoleWithLabels ¶ added in v1.3.0
func GetRolebindingToRoleWithLabels(roleName string, groups []string, labels map[string]string) *auth.RoleBinding
GetRolebindingToRoleWithLabels Get role binding object
func GetRolebindingToRoleWithLabelsForSubjects ¶ added in v1.5.0
func GetRolebindingToRoleWithLabelsForSubjects(roleName string, subjects []auth.Subject, labels map[string]string) *auth.RoleBinding
GetRolebindingToRoleWithLabelsForSubjects Get rolebinding object with subjects as input
func IsEmptyPatch ¶ added in v1.13.0
func SetEnvVarsMetadataMapToConfigMap ¶ added in v1.15.0
func SetEnvVarsMetadataMapToConfigMap(configMap *corev1.ConfigMap, envVarsMetadataMap map[string]EnvVarMetadata) error
SetEnvVarsMetadataMapToConfigMap Set environment-variables metadata to config-map
Types ¶
type EnvVarMetadata ¶ added in v1.15.0
type EnvVarMetadata struct {
RadixConfigValue string
}
EnvVarMetadata Metadata for environment variables
type Kube ¶
type Kube struct { RrLister v1Lister.RadixRegistrationLister ReLister v1Lister.RadixEnvironmentLister RdLister v1Lister.RadixDeploymentLister NamespaceLister coreListers.NamespaceLister ConfigMapLister coreListers.ConfigMapLister SecretLister coreListers.SecretLister DeploymentLister appsv1Listers.DeploymentLister IngressLister networkingListers.IngressLister ServiceLister coreListers.ServiceLister RoleBindingLister rbacListers.RoleBindingLister ClusterRoleBindingLister rbacListers.ClusterRoleBindingLister RoleLister rbacListers.RoleLister ClusterRoleLister rbacListers.ClusterRoleLister ServiceAccountLister coreListers.ServiceAccountLister LimitRangeLister coreListers.LimitRangeLister JobLister batchListers.JobLister // contains filtered or unexported fields }
Kube Stuct for accessing lower level kubernetes functions
func New ¶
func New(client kubernetes.Interface, radixClient radixclient.Interface) (*Kube, error)
New Constructor
func NewWithListers ¶
func NewWithListers(client kubernetes.Interface, radixclient radixclient.Interface, kubeInformerFactory kubeinformers.SharedInformerFactory, radixInformerFactory informers.SharedInformerFactory) (*Kube, error)
NewWithListers Constructor
func (*Kube) ApplyClusterRole ¶
func (kubeutil *Kube) ApplyClusterRole(clusterrole *auth.ClusterRole) error
ApplyClusterRole Creates or updates cluster-role
func (*Kube) ApplyClusterRoleBinding ¶
func (kubeutil *Kube) ApplyClusterRoleBinding(clusterrolebinding *auth.ClusterRoleBinding) error
ApplyClusterRoleBinding Creates or updates cluster-role-binding
func (*Kube) ApplyClusterRoleToServiceAccount ¶
func (kubeutil *Kube) ApplyClusterRoleToServiceAccount(roleName string, serviceAccount *corev1.ServiceAccount, ownerReference []metav1.OwnerReference) error
ApplyClusterRoleToServiceAccount Creates cluster-role-binding as a link between role and service account
func (*Kube) ApplyConfigMap ¶ added in v1.15.0
func (kubeutil *Kube) ApplyConfigMap(namespace string, currentConfigMap, desiredConfigMap *corev1.ConfigMap) error
ApplyConfigMap Patch changes of environment-variables to config-map if any
func (*Kube) ApplyDeployment ¶
func (kubeutil *Kube) ApplyDeployment(namespace string, currentDeployment *appsv1.Deployment, desiredDeployment *appsv1.Deployment) error
ApplyDeployment Create or update deployment in provided namespace
func (*Kube) ApplyEnvVarsMetadataConfigMap ¶ added in v1.15.0
func (kubeutil *Kube) ApplyEnvVarsMetadataConfigMap(namespace string, currentEnvVarsMetadataConfigMap *corev1.ConfigMap, envVarsMetadataMap map[string]EnvVarMetadata) error
ApplyEnvVarsMetadataConfigMap Save changes of environment-variables metadata to config-map
func (*Kube) ApplyIngress ¶
func (kubeutil *Kube) ApplyIngress(namespace string, ingress *networkingv1beta1.Ingress) error
ApplyIngress Will create or update ingress in provided namespace
func (*Kube) ApplyLimitRange ¶
func (kubeutil *Kube) ApplyLimitRange(namespace string, limitRange *corev1.LimitRange) error
ApplyLimitRange Applies limit range to namespace
func (*Kube) ApplyNamespace ¶
func (kubeutil *Kube) ApplyNamespace(name string, labels map[string]string, ownerRefs []metav1.OwnerReference) error
ApplyNamespace Creates a new namespace, if not exists allready
func (*Kube) ApplyRoleBinding ¶
func (kubeutil *Kube) ApplyRoleBinding(namespace string, role *auth.RoleBinding) error
ApplyRoleBinding Creates or updates role
func (*Kube) ApplySecret ¶
func (kubeutil *Kube) ApplySecret(namespace string, secret *corev1.Secret) (savedSecret *corev1.Secret, err error)
ApplySecret Creates or updates secret to namespace
func (*Kube) ApplyService ¶ added in v1.4.1
ApplyService Will create or update service in provided namespace
func (*Kube) ApplyServiceAccount ¶
func (kubeutil *Kube) ApplyServiceAccount(serviceAccount corev1.ServiceAccount) (*corev1.ServiceAccount, error)
ApplyServiceAccount Creates or updates service account
func (*Kube) BuildLimitRange ¶
func (kubeutil *Kube) BuildLimitRange(namespace, name, appName string, defaultResourceCPU, defaultResourceMemory, defaultRequestCPU, defaultRequestMemory resource.Quantity) *corev1.LimitRange
BuildLimitRange Builds a limit range spec
func (*Kube) CreateConfigMap ¶ added in v1.15.0
func (kubeutil *Kube) CreateConfigMap(namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)
CreateConfigMap Create config map
func (*Kube) DeleteClusterRoleBinding ¶ added in v1.5.0
DeleteClusterRoleBinding Deletes a clusterrolebinding
func (*Kube) DeleteRole ¶ added in v1.5.0
DeleteRole Deletes a role in a namespace
func (*Kube) DeleteRoleBinding ¶ added in v1.5.0
DeleteRoleBinding Deletes a rolebinding in a namespace
func (*Kube) DeleteSecret ¶ added in v1.5.2
DeleteSecret Deletes a secret in a namespace
func (*Kube) DeleteServiceAccount ¶ added in v1.5.0
DeleteServiceAccount Deletes service account
func (*Kube) GetActiveDeployment ¶ added in v1.15.0
func (kubeutil *Kube) GetActiveDeployment(namespace string) (*v1.RadixDeployment, error)
GetActiveDeployment Get active RadixDeployment for the namespace
func (*Kube) GetClusterName ¶
GetClusterName Gets the global name of the cluster from config map in default namespace
func (*Kube) GetClusterRole ¶ added in v1.4.2
func (kubeutil *Kube) GetClusterRole(name string) (*auth.ClusterRole, error)
GetClusterRole Gets cluster role
func (*Kube) GetConfigMap ¶
GetConfigMap Gets config map by name
func (*Kube) GetContainerRegistry ¶
GetContainerRegistry Gets the container registry from config map in default namespace
func (*Kube) GetDeployment ¶ added in v1.5.17
func (kubeutil *Kube) GetDeployment(namespace, name string) (*appsv1.Deployment, error)
func (*Kube) GetEnvVarsConfigMapAndMetadataMap ¶ added in v1.15.0
func (kubeutil *Kube) GetEnvVarsConfigMapAndMetadataMap(namespace string, componentName string) (*corev1.ConfigMap, *corev1.ConfigMap, map[string]EnvVarMetadata, error)
GetEnvVarsConfigMapAndMetadataMap Get environment-variables config-map, environment-variables metadata config-map and metadata map from it
func (*Kube) GetEnvVarsMetadataConfigMapAndMap ¶ added in v1.15.0
func (kubeutil *Kube) GetEnvVarsMetadataConfigMapAndMap(namespace string, componentName string) (*corev1.ConfigMap, map[string]EnvVarMetadata, error)
GetEnvVarsMetadataConfigMapAndMap Get environment-variables metadata config-map and map from it
func (*Kube) GetEnvironment ¶ added in v1.5.5
func (kubeutil *Kube) GetEnvironment(name string) (*v1.RadixEnvironment, error)
GetEnvironment Gets environment using lister from cache if present
func (*Kube) GetOrCreateEnvVarsConfigMapAndMetadataMap ¶ added in v1.15.0
func (kubeutil *Kube) GetOrCreateEnvVarsConfigMapAndMetadataMap(namespace, appName, componentName string) (*corev1.ConfigMap, *corev1.ConfigMap, error)
GetOrCreateEnvVarsConfigMapAndMetadataMap Get environment variables and its metadata config-maps
func (*Kube) GetRadixDeployment ¶
func (kubeutil *Kube) GetRadixDeployment(namespace, name string) (*v1.RadixDeployment, error)
GetRadixDeployment Gets deployment using lister if present
func (*Kube) GetRegistration ¶
func (kubeutil *Kube) GetRegistration(name string) (*v1.RadixRegistration, error)
GetRegistration Gets registration using lister if present
func (*Kube) GetRoleBinding ¶ added in v1.5.2
func (kubeutil *Kube) GetRoleBinding(namespace, name string) (*auth.RoleBinding, error)
GetRoleBinding Gets rolebinding
func (*Kube) ListClusterRoleBindings ¶ added in v1.4.2
func (kubeutil *Kube) ListClusterRoleBindings(namespace string) ([]*auth.ClusterRoleBinding, error)
ListClusterRoleBindings List cluster roles
func (*Kube) ListClusterRoles ¶ added in v1.4.2
func (kubeutil *Kube) ListClusterRoles(namespace string) ([]*auth.ClusterRole, error)
ListClusterRoles List cluster roles
func (*Kube) ListDeployments ¶ added in v1.4.2
func (kubeutil *Kube) ListDeployments(namespace string) ([]*appsv1.Deployment, error)
ListDeployments List deployments
func (*Kube) ListEnvironments ¶ added in v1.5.5
func (kubeutil *Kube) ListEnvironments() ([]*v1.RadixEnvironment, error)
ListEnvironments lists environments from cache if lister is present
func (*Kube) ListIngresses ¶ added in v1.4.0
func (kubeutil *Kube) ListIngresses(namespace string) ([]*networkingv1beta1.Ingress, error)
ListIngresses lists ingresses
func (*Kube) ListIngressesWithSelector ¶ added in v1.4.0
func (kubeutil *Kube) ListIngressesWithSelector(namespace string, labelSelectorString *string) ([]*networkingv1beta1.Ingress, error)
ListIngressesWithSelector lists ingresses
func (*Kube) ListRadixDeployments ¶
func (kubeutil *Kube) ListRadixDeployments(namespace string) ([]*v1.RadixDeployment, error)
ListRadixDeployments Gets deployments using lister if present
func (*Kube) ListRegistrations ¶
func (kubeutil *Kube) ListRegistrations() ([]*v1.RadixRegistration, error)
ListRegistrations lists registrations
func (*Kube) ListRoleBindings ¶ added in v1.4.1
func (kubeutil *Kube) ListRoleBindings(namespace string) ([]*auth.RoleBinding, error)
ListRoleBindings Lists role bindings from cache or from cluster
func (*Kube) ListRoleBindingsWithSelector ¶ added in v1.4.1
func (kubeutil *Kube) ListRoleBindingsWithSelector(namespace string, labelSelectorString *string) ([]*auth.RoleBinding, error)
ListRoleBindingsWithSelector Lists role bindings from cache or from cluster using a selector
func (*Kube) ListRolesWithSelector ¶ added in v1.4.2
func (kubeutil *Kube) ListRolesWithSelector(namespace string, labelSelectorString *string) ([]*auth.Role, error)
ListRolesWithSelector List roles
func (*Kube) ListSecrets ¶ added in v1.4.3
ListSecrets secrets in namespace
func (*Kube) ListSecretsWithSelector ¶ added in v1.4.3
func (kubeutil *Kube) ListSecretsWithSelector(namespace string, labelSelectorString *string) ([]*v1.Secret, error)
ListSecretsWithSelector secrets in namespace
func (*Kube) ListServices ¶ added in v1.4.1
ListServices Lists services from cache or from cluster
func (*Kube) SecretExists ¶
SecretExists Checks if secret already exists
func (*Kube) UpdateConfigMap ¶ added in v1.15.0
UpdateConfigMap Update config-maps
type NamespaceWatcher ¶
NamespaceWatcher Watcher to wait for namespace to be created
type NamespaceWatcherImpl ¶
type NamespaceWatcherImpl struct {
// contains filtered or unexported fields
}
NamespaceWatcherImpl Implementation of watcher
func NewNamespaceWatcherImpl ¶
func NewNamespaceWatcherImpl(client kubernetes.Interface) NamespaceWatcherImpl
NewNamespaceWatcherImpl Constructor
func (NamespaceWatcherImpl) WaitFor ¶
func (watcher NamespaceWatcherImpl) WaitFor(namespace string) error
WaitFor Waits for namespace to appear
type RadixConfigMapType ¶ added in v1.15.0
type RadixConfigMapType string
RadixConfigMapType Purpose of ConfigMap
const ( //EnvVarsConfigMap ConfigMap contains environment variables EnvVarsConfigMap RadixConfigMapType = "env-vars" //EnvVarsMetadataConfigMap ConfigMap contains environment variables metadata EnvVarsMetadataConfigMap RadixConfigMapType = "env-vars-metadata" )