Documentation ¶
Index ¶
- Constants
- Variables
- func AddEventRecorderPermissions(namespace string, ownerRefs []metav1.OwnerReference, cli kubernetes.Interface, ...) error
- func AppendConfigVolume(volumes *[]corev1.Volume, mounts *[]corev1.VolumeMount, volName string, ...)
- func AppendSecretVolume(volumes *[]corev1.Volume, mounts *[]corev1.VolumeMount, name string, ...)
- func AppendSecretVolumeWithVolumeName(volumes *[]corev1.Volume, mounts *[]corev1.VolumeMount, secretName string, ...)
- func AppendSharedSecretVolume(volumes *[]corev1.Volume, mounts []*[]corev1.VolumeMount, name string, ...)
- func AppendSharedVolume(volumes *[]corev1.Volume, mounts []*[]corev1.VolumeMount, volumename string, ...)
- func CheckProbesForConfigSync(c *corev1.Container) bool
- func CheckProbesForControllerContainer(c *corev1.Container) bool
- func CheckProbesForTransportContainer(c *corev1.Container) bool
- func CheckProxyStatefulSet(image types.ImageDetails, desired types.ServiceInterface, ...) (*appsv1.StatefulSet, error)
- func ContainerForConfigSync(ds types.DeploymentSpec) *corev1.Container
- func ContainerForController(ds types.DeploymentSpec) corev1.Container
- func ContainerForFlowCollector(ds types.DeploymentSpec) *corev1.Container
- func ContainerForPrometheusServer(ds types.DeploymentSpec) corev1.Container
- func ContainerForTransport(ds types.DeploymentSpec) corev1.Container
- func CopyClusterRole(src string, dest string, kubeclient kubernetes.Interface) error
- func CopyRole(src string, dest string, namespace string, kubeclient kubernetes.Interface) error
- func CopySecret(src string, dest string, namespace string, kubeclient kubernetes.Interface) error
- func CopyService(src string, dest string, annotations map[string]string, namespace string, ...) (*corev1.Service, error)
- func CopyServiceAccount(src string, dest string, annotations map[string]string, namespace string, ...) error
- func CreateClusterRole(clusterRole *rbacv1.ClusterRole, kubeclient kubernetes.Interface) (*rbacv1.ClusterRole, error)
- func CreateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding, kubeclient kubernetes.Interface) (*rbacv1.ClusterRoleBinding, error)
- func CreateContourProxies(routes []IngressRoute, labels map[string]string, owner *metav1.OwnerReference, ...) error
- func CreateContourProxy(client dynamic.Interface, namespace string, name string, def IngressRoute, ...) error
- func CreateIngress(name string, routes []IngressRoute, isNginx bool, sslPassthrough bool, ...) error
- func CreateNetworkPolicy(ownerrefs []metav1.OwnerReference, namespace string, cli kubernetes.Interface) error
- func CreateRole(namespace string, role *rbacv1.Role, kubeclient kubernetes.Interface) (*rbacv1.Role, error)
- func CreateRoleBinding(namespace string, rb *rbacv1.RoleBinding, kubeclient kubernetes.Interface) (*rbacv1.RoleBinding, error)
- func CreateRoute(route *routev1.Route, namespace string, rc *routev1client.RouteV1Client) (*routev1.Route, error)
- func CreateService(service *corev1.Service, namespace string, kubeclient kubernetes.Interface) (*corev1.Service, error)
- func CreateServiceAccount(namespace string, sa *corev1.ServiceAccount, cli kubernetes.Interface) (*corev1.ServiceAccount, error)
- func CurrentNamespace() (string, error)
- func DeleteClusterRole(name string, kubeclient kubernetes.Interface) (bool, error)
- func DeleteClusterRoleBinding(name string, kubeclient kubernetes.Interface) (bool, error)
- func DeleteDeployment(name string, namespace string, cli kubernetes.Interface) error
- func DeleteEnvVarForDeployment(dep *appsv1.Deployment, name string)
- func DeleteNamespace(name string, cli kubernetes.Interface) error
- func DeleteSecret(name string, namespace string, cli kubernetes.Interface) error
- func DeleteService(name string, namespace string, kubeclient kubernetes.Interface) error
- func EquivalentSelectors(a map[string]string, b map[string]string) bool
- func ExecCommandInContainer(command []string, podName string, containerName string, namespace string, ...) (*bytes.Buffer, error)
- func FindEnvVar(env []corev1.EnvVar, name string) *corev1.EnvVar
- func FirstReadyPod(list []corev1.Pod) *corev1.Pod
- func GenerateConsoleSessionCredentials(source io.Reader) (types.Credential, error)
- func GetAllContainerPorts(container corev1.Container) map[int]int
- func GetApplicationSelector(service *corev1.Service) string
- func GetComponentVersion(namespace string, clientset kubernetes.Interface, component string, ...) string
- func GetConfigMap(name string, namespace string, cli kubernetes.Interface) (*corev1.ConfigMap, error)
- func GetConfigMapOwnerReference(config *corev1.ConfigMap) metav1.OwnerReference
- func GetContainerPort(deployment *appsv1.Deployment) map[int]int
- func GetContainerPortForDaemonSet(daemonSet *appsv1.DaemonSet) map[int]int
- func GetContainerPortForDeploymentConfig(deploymentConfig *appv1.DeploymentConfig) map[int]int
- func GetContainerPortForStatefulSet(statefulSet *appsv1.StatefulSet) map[int]int
- func GetContainerPorts(spec *corev1.PodSpec) []corev1.ContainerPort
- func GetDeployment(name string, namespace string, cli kubernetes.Interface) (*appsv1.Deployment, error)
- func GetDeploymentConfig(name string, namespace string, appsClient versioned.Interface) (*appv1.DeploymentConfig, error)
- func GetDeploymentOwnerReference(dep *appsv1.Deployment) metav1.OwnerReference
- func GetEnvVarForDeployment(dep *appsv1.Deployment, name string) string
- func GetImageVersion(pod *corev1.Pod, container string) string
- func GetLabelsForRouter() map[string]string
- func GetLoadBalancerHostOrIP(service *corev1.Service) string
- func GetLoadBalancerHostOrIp(service *corev1.Service) string
- func GetOriginalAssignedPorts(service *corev1.Service) map[int]int
- func GetOriginalPorts(service *corev1.Service) string
- func GetOriginalTargetPorts(service *corev1.Service) map[int]int
- func GetPodContainerLogs(podName string, containerName string, namespace string, ...) (string, error)
- func GetPodContainerLogsWithOpts(podName string, containerName string, namespace string, ...) (string, error)
- func GetPods(selector string, namespace string, cli kubernetes.Interface) ([]corev1.Pod, error)
- func GetPortsForServiceTarget(targetName string, defaultNamespace string, kubeclient kubernetes.Interface) (map[int]int, error)
- func GetPullPolicy(policy string) corev1.PullPolicy
- func GetReadyPod(namespace string, clientset kubernetes.Interface, component string, ...) (*corev1.Pod, error)
- func GetRoute(name string, namespace string, rc *routev1client.RouteV1Client) (*routev1.Route, error)
- func GetSelectorAsMap(selector string) (map[string]string, error)
- func GetService(name string, namespace string, kubeclient kubernetes.Interface) (*corev1.Service, error)
- func GetServiceInterfaceTarget(targetType string, targetName string, deducePort bool, namespace string, ...) (*types.ServiceInterfaceTarget, error)
- func GetServiceName(targetName string, defaultNamespace string) (string, string)
- func GetServicePort(service *corev1.Service, port int) *corev1.ServicePort
- func GetServicePortMap(service *corev1.Service) map[int]int
- func HasRouterSelector(service corev1.Service) bool
- func IndexServicePorts(service *corev1.Service) map[int]int
- func IsOriginalServiceModified(name, namespace string, kubeclient kubernetes.Interface) bool
- func IsPodReady(pod *corev1.Pod) bool
- func IsPodRunning(pod *corev1.Pod) bool
- func NewCertAuthority(ca types.CertAuthority, owner *metav1.OwnerReference, namespace string, ...) (*corev1.Secret, error)
- func NewConfigMap(name string, data *map[string]string, labels *map[string]string, ...) (*corev1.ConfigMap, error)
- func NewControllerDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, ...) (*appsv1.Deployment, error)
- func NewExternalBridge(deployments Deployments, def *types.ServiceInterface) service.ExternalBridge
- func NewHeadlessService(name string, address string, ports []int, targetPorts []int, ...) (*corev1.Service, error)
- func NewHeadlessServiceIngress(s Services, origin string) service.ServiceIngress
- func NewNamespace(name string, cli kubernetes.Interface) (*corev1.Namespace, error)
- func NewPrometheusServerDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, ...) (*appsv1.Deployment, error)
- func NewProxyStatefulSet(image types.ImageDetails, serviceInterface types.ServiceInterface, ...) (*appsv1.StatefulSet, error)
- func NewSecret(cred types.Credential, owner *metav1.OwnerReference, namespace string, ...) (*corev1.Secret, error)
- func NewServiceIngressAlways(s Services) service.ServiceIngress
- func NewServiceIngressExternalBridge(s Services, address string) service.ServiceIngress
- func NewServiceIngressNever(s Services, isowned IsOwned) service.ServiceIngress
- func NewTransportDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, ...) (*appsv1.Deployment, error)
- func PortLabelStrToMap(portsStr string) map[int]int
- func PortMapToLabelStr(portMap map[int]int) string
- func PortsAsString(ports []corev1.ServicePort) string
- func PrepareNewSecret(cred types.Credential, caSecret *corev1.Secret, connectJsonHost string) corev1.Secret
- func RegenerateCertAuthority(name string, namespace string, cli kubernetes.Interface) (*corev1.Secret, error)
- func RegenerateCredentials(credential types.Credential, namespace string, ca *corev1.Secret, ...) (*corev1.Secret, error)
- func RemoveSecretVolumeForDeployment(name string, dep *appsv1.Deployment, index int)
- func RemoveServiceAnnotations(name, namespace string, kubeclient kubernetes.Interface, annotations []string) (*corev1.Service, error)
- func SetAnnotation(o *metav1.ObjectMeta, key string, value string)
- func SetEnvVarForDeployment(dep *appsv1.Deployment, name string, value string)
- func SetEnvVarForStatefulSet(dep *appsv1.StatefulSet, name string, value string)
- func SetLabel(o *metav1.ObjectMeta, key string, value string)
- func UpdateAnnotations(o *metav1.ObjectMeta, desired map[string]string) bool
- func UpdateClusterRole(name string, rules []rbacv1.PolicyRule, kubeclient kubernetes.Interface) error
- func UpdateContourProxyService(clients Clients, namespace string, proxyName string, serviceName string) error
- func UpdateEnvVar(original []corev1.EnvVar, name string, value string) []corev1.EnvVar
- func UpdateIngressRuleServiceName(ingressName string, hostPrefix string, serviceName string, namespace string, ...) error
- func UpdateLabels(o *metav1.ObjectMeta, desired map[string]string) bool
- func UpdatePorts(spec *corev1.ServiceSpec, desiredPortMappings map[int]int, ...) bool
- func UpdateRole(namespace string, name string, rules []rbacv1.PolicyRule, ...) error
- func UpdateSecretVolume(spec *corev1.PodSpec, oldname string, name string)
- func UpdateSelector(spec *corev1.ServiceSpec, selector string) (bool, error)
- func UpdateSelectorFromMap(spec *corev1.ServiceSpec, desired map[string]string) bool
- func UpdateSkupperServices(changed []types.ServiceInterface, deleted []string, origin string, ...) error
- func UpdateTargetServiceForRoute(routeName string, serviceName string, namespace string, ...) error
- func UpdateTargetServiceForRouteIfExists(routeName string, serviceName string, namespace string, ...) error
- func WaitConfigMapCreated(name string, namespace string, cli kubernetes.Interface, ...) (*corev1.ConfigMap, error)
- func WaitDaemonSetReady(name string, namespace string, cli kubernetes.Interface, ...) (*appsv1.DaemonSet, error)
- func WaitDeploymentReady(name string, namespace string, cli kubernetes.Interface, ...) (*appsv1.Deployment, error)
- func WaitDeploymentReadyReplicas(name string, namespace string, readyReplicas int, cli kubernetes.Interface, ...) (*appsv1.Deployment, error)
- func WaitForPodStatus(namespace string, clientset kubernetes.Interface, podName string, ...) (*corev1.Pod, error)
- func WaitForPodsSelectorStatus(namespace string, clientset kubernetes.Interface, selector string, ...) ([]corev1.Pod, error)
- func WaitForPodsStatus(namespace string, clientset kubernetes.Interface, selector string, ...) error
- func WaitServiceExists(name string, namespace string, cli kubernetes.Interface, ...) (*corev1.Service, error)
- func WaitStatefulSetReadyReplicas(name string, namespace string, readyReplicas int, cli kubernetes.Interface, ...) (*appsv1.StatefulSet, error)
- type CachedDeploymentsImpl
- type Clients
- type Deployments
- type ExternalBridge
- type IngressRoute
- type IsOwned
- type PodTargetResolver
- type ServiceIngressAlways
- type ServiceIngressHeadlessInOrigin
- type ServiceIngressHeadlessRemote
- type ServiceIngressNever
- type Services
- type SkupperEventRecorder
Constants ¶
View Source
const ( EventRecorderRoleName string = "event-recorder" EventRecorderRoleBindingName string = "event-recorder" )
View Source
const ( SkupperImageRegistryEnvKey string = "SKUPPER_IMAGE_REGISTRY" DefaultImageRegistry string = "quay.io/skupper" )
View Source
const (
BridgeTargetEvent string = "BridgeTargetEvent"
)
View Source
const NamespaceFile string = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
Variables ¶
View Source
var EventRecorderPolicyRule = []rbacv1.PolicyRule{ { Verbs: []string{"watch", "create", "patch"}, APIGroups: []string{""}, Resources: []string{"events"}, }, }
Functions ¶
func AddEventRecorderPermissions ¶
func AddEventRecorderPermissions(namespace string, ownerRefs []metav1.OwnerReference, cli kubernetes.Interface, serviceAccountName string) error
func AppendConfigVolume ¶
func AppendSecretVolume ¶
func AppendSharedVolume ¶
func CheckProxyStatefulSet ¶
func CheckProxyStatefulSet(image types.ImageDetails, desired types.ServiceInterface, actual *appsv1.StatefulSet, desiredConfig string, namespace string, cli kubernetes.Interface) (*appsv1.StatefulSet, error)
func ContainerForConfigSync ¶
func ContainerForConfigSync(ds types.DeploymentSpec) *corev1.Container
func ContainerForController ¶
func ContainerForController(ds types.DeploymentSpec) corev1.Container
func ContainerForFlowCollector ¶
func ContainerForFlowCollector(ds types.DeploymentSpec) *corev1.Container
func ContainerForPrometheusServer ¶
func ContainerForPrometheusServer(ds types.DeploymentSpec) corev1.Container
func ContainerForTransport ¶
func ContainerForTransport(ds types.DeploymentSpec) corev1.Container
func CopyClusterRole ¶
func CopyClusterRole(src string, dest string, kubeclient kubernetes.Interface) error
func CopySecret ¶
func CopyService ¶
func CopyServiceAccount ¶
func CreateClusterRole ¶
func CreateClusterRole(clusterRole *rbacv1.ClusterRole, kubeclient kubernetes.Interface) (*rbacv1.ClusterRole, error)
func CreateClusterRoleBinding ¶
func CreateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding, kubeclient kubernetes.Interface) (*rbacv1.ClusterRoleBinding, error)
func CreateContourProxies ¶
func CreateContourProxies(routes []IngressRoute, labels map[string]string, owner *metav1.OwnerReference, client dynamic.Interface, namespace string) error
func CreateContourProxy ¶
func CreateContourProxy(client dynamic.Interface, namespace string, name string, def IngressRoute, labels map[string]string, owner *metav1.OwnerReference) error
func CreateIngress ¶
func CreateNetworkPolicy ¶
func CreateNetworkPolicy(ownerrefs []metav1.OwnerReference, namespace string, cli kubernetes.Interface) error
func CreateRole ¶
func CreateRoleBinding ¶
func CreateRoleBinding(namespace string, rb *rbacv1.RoleBinding, kubeclient kubernetes.Interface) (*rbacv1.RoleBinding, error)
func CreateRoute ¶
func CreateRoute(route *routev1.Route, namespace string, rc *routev1client.RouteV1Client) (*routev1.Route, error)
func CreateService ¶
func CreateServiceAccount ¶
func CreateServiceAccount(namespace string, sa *corev1.ServiceAccount, cli kubernetes.Interface) (*corev1.ServiceAccount, error)
func CurrentNamespace ¶
func DeleteClusterRole ¶
func DeleteClusterRole(name string, kubeclient kubernetes.Interface) (bool, error)
func DeleteClusterRoleBinding ¶
func DeleteClusterRoleBinding(name string, kubeclient kubernetes.Interface) (bool, error)
func DeleteDeployment ¶
func DeleteDeployment(name string, namespace string, cli kubernetes.Interface) error
func DeleteEnvVarForDeployment ¶
func DeleteEnvVarForDeployment(dep *appsv1.Deployment, name string)
func DeleteNamespace ¶
func DeleteNamespace(name string, cli kubernetes.Interface) error
func DeleteSecret ¶
func DeleteSecret(name string, namespace string, cli kubernetes.Interface) error
func DeleteService ¶
func DeleteService(name string, namespace string, kubeclient kubernetes.Interface) error
func ExecCommandInContainer ¶
func GenerateConsoleSessionCredentials ¶
func GenerateConsoleSessionCredentials(source io.Reader) (types.Credential, error)
func GetApplicationSelector ¶
func GetComponentVersion ¶
func GetConfigMap ¶
func GetConfigMapOwnerReference ¶
func GetConfigMapOwnerReference(config *corev1.ConfigMap) metav1.OwnerReference
func GetContainerPort ¶
func GetContainerPort(deployment *appsv1.Deployment) map[int]int
func GetContainerPortForDeploymentConfig ¶
func GetContainerPortForDeploymentConfig(deploymentConfig *appv1.DeploymentConfig) map[int]int
func GetContainerPortForStatefulSet ¶
func GetContainerPortForStatefulSet(statefulSet *appsv1.StatefulSet) map[int]int
func GetContainerPorts ¶
func GetContainerPorts(spec *corev1.PodSpec) []corev1.ContainerPort
func GetDeployment ¶
func GetDeployment(name string, namespace string, cli kubernetes.Interface) (*appsv1.Deployment, error)
TODO, pass full client object with namespace and clientset
func GetDeploymentConfig ¶
func GetDeploymentOwnerReference ¶
func GetDeploymentOwnerReference(dep *appsv1.Deployment) metav1.OwnerReference
func GetEnvVarForDeployment ¶
func GetEnvVarForDeployment(dep *appsv1.Deployment, name string) string
func GetLabelsForRouter ¶
func GetLoadBalancerHostOrIP ¶
func GetLoadBalancerHostOrIp ¶
func GetOriginalPorts ¶
func GetPodContainerLogs ¶
func GetPodContainerLogsWithOpts ¶
func GetPodContainerLogsWithOpts(podName string, containerName string, namespace string, clientset kubernetes.Interface, podLogOpts corev1.PodLogOptions) (string, error)
func GetPullPolicy ¶
func GetPullPolicy(policy string) corev1.PullPolicy
func GetReadyPod ¶
func GetRoute ¶
func GetRoute(name string, namespace string, rc *routev1client.RouteV1Client) (*routev1.Route, error)
func GetService ¶
func GetServiceName ¶
func GetServicePort ¶
func GetServicePort(service *corev1.Service, port int) *corev1.ServicePort
func HasRouterSelector ¶
func IsOriginalServiceModified ¶
func IsOriginalServiceModified(name, namespace string, kubeclient kubernetes.Interface) bool
func IsPodReady ¶
func IsPodRunning ¶
func NewCertAuthority ¶
func NewCertAuthority(ca types.CertAuthority, owner *metav1.OwnerReference, namespace string, cli kubernetes.Interface) (*corev1.Secret, error)
func NewConfigMap ¶
func NewControllerDeployment ¶
func NewControllerDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, cli kubernetes.Interface) (*appsv1.Deployment, error)
func NewExternalBridge ¶
func NewExternalBridge(deployments Deployments, def *types.ServiceInterface) service.ExternalBridge
func NewHeadlessService ¶
func NewHeadlessServiceIngress ¶
func NewHeadlessServiceIngress(s Services, origin string) service.ServiceIngress
func NewNamespace ¶
func NewPrometheusServerDeployment ¶
func NewPrometheusServerDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, cli kubernetes.Interface) (*appsv1.Deployment, error)
func NewProxyStatefulSet ¶
func NewProxyStatefulSet(image types.ImageDetails, serviceInterface types.ServiceInterface, config string, namespace string, cli kubernetes.Interface) (*appsv1.StatefulSet, error)
func NewSecret ¶
func NewSecret(cred types.Credential, owner *metav1.OwnerReference, namespace string, cli kubernetes.Interface) (*corev1.Secret, error)
func NewServiceIngressAlways ¶
func NewServiceIngressAlways(s Services) service.ServiceIngress
func NewServiceIngressExternalBridge ¶
func NewServiceIngressExternalBridge(s Services, address string) service.ServiceIngress
func NewServiceIngressNever ¶
func NewServiceIngressNever(s Services, isowned IsOwned) service.ServiceIngress
func NewTransportDeployment ¶
func NewTransportDeployment(van *types.RouterSpec, ownerRef *metav1.OwnerReference, cli kubernetes.Interface) (*appsv1.Deployment, error)
func PortLabelStrToMap ¶
func PortMapToLabelStr ¶
func PortsAsString ¶
func PortsAsString(ports []corev1.ServicePort) string
func PrepareNewSecret ¶
func RegenerateCertAuthority ¶
func RegenerateCredentials ¶
func RegenerateCredentials(credential types.Credential, namespace string, ca *corev1.Secret, cli kubernetes.Interface) (*corev1.Secret, error)
func RemoveSecretVolumeForDeployment ¶
func RemoveSecretVolumeForDeployment(name string, dep *appsv1.Deployment, index int)
func SetAnnotation ¶
func SetAnnotation(o *metav1.ObjectMeta, key string, value string)
func SetEnvVarForDeployment ¶
func SetEnvVarForDeployment(dep *appsv1.Deployment, name string, value string)
func SetEnvVarForStatefulSet ¶
func SetEnvVarForStatefulSet(dep *appsv1.StatefulSet, name string, value string)
func UpdateAnnotations ¶
func UpdateAnnotations(o *metav1.ObjectMeta, desired map[string]string) bool
func UpdateClusterRole ¶
func UpdateClusterRole(name string, rules []rbacv1.PolicyRule, kubeclient kubernetes.Interface) error
func UpdateEnvVar ¶
func UpdateLabels ¶
func UpdateLabels(o *metav1.ObjectMeta, desired map[string]string) bool
func UpdatePorts ¶
func UpdateRole ¶
func UpdateRole(namespace string, name string, rules []rbacv1.PolicyRule, kubeclient kubernetes.Interface) error
func UpdateSecretVolume ¶
func UpdateSelector ¶
func UpdateSelector(spec *corev1.ServiceSpec, selector string) (bool, error)
func UpdateSelectorFromMap ¶
func UpdateSelectorFromMap(spec *corev1.ServiceSpec, desired map[string]string) bool
func UpdateSkupperServices ¶
func UpdateSkupperServices(changed []types.ServiceInterface, deleted []string, origin string, namespace string, cli kubernetes.Interface) error
func UpdateTargetServiceForRoute ¶
func UpdateTargetServiceForRoute(routeName string, serviceName string, namespace string, rc *routev1client.RouteV1Client) error
func UpdateTargetServiceForRouteIfExists ¶
func UpdateTargetServiceForRouteIfExists(routeName string, serviceName string, namespace string, rc *routev1client.RouteV1Client) error
func WaitConfigMapCreated ¶
func WaitDaemonSetReady ¶
func WaitDeploymentReady ¶
func WaitDeploymentReady(name string, namespace string, cli kubernetes.Interface, timeout, interval time.Duration) (*appsv1.Deployment, error)
WaitDeploymentReady waits till given deployment contains at least one ReadyReplicas, or until it times out
func WaitDeploymentReadyReplicas ¶
func WaitDeploymentReadyReplicas(name string, namespace string, readyReplicas int, cli kubernetes.Interface, timeout, interval time.Duration) (*appsv1.Deployment, error)
WaitDeploymentReadyReplicas waits till given deployment contains the expected number of readyReplicas, or until it times out
func WaitForPodStatus ¶
func WaitForPodsStatus ¶
func WaitServiceExists ¶
func WaitStatefulSetReadyReplicas ¶
func WaitStatefulSetReadyReplicas(name string, namespace string, readyReplicas int, cli kubernetes.Interface, timeout, interval time.Duration) (*appsv1.StatefulSet, error)
Types ¶
type CachedDeploymentsImpl ¶
type CachedDeploymentsImpl struct {
// contains filtered or unexported fields
}
func (*CachedDeploymentsImpl) CreateDeployment ¶
func (i *CachedDeploymentsImpl) CreateDeployment(d *appsv1.Deployment) error
func (*CachedDeploymentsImpl) GetDeployment ¶
func (i *CachedDeploymentsImpl) GetDeployment(name string) (*appsv1.Deployment, bool, error)
func (*CachedDeploymentsImpl) UpdateDeployment ¶
func (i *CachedDeploymentsImpl) UpdateDeployment(d *appsv1.Deployment) error
type Clients ¶
type Clients interface { GetKubeClient() kubernetes.Interface GetDynamicClient() dynamic.Interface GetDiscoveryClient() *discovery.DiscoveryClient GetRouteClient() *routev1client.RouteV1Client }
type Deployments ¶
type Deployments interface { GetDeployment(name string) (*appsv1.Deployment, bool, error) CreateDeployment(d *appsv1.Deployment) error UpdateDeployment(d *appsv1.Deployment) error }
func NewDeployments ¶
func NewDeployments(client kubernetes.Interface, namespace string, informer cache.SharedIndexInformer, ownerRefs []metav1.OwnerReference) Deployments
type ExternalBridge ¶
type ExternalBridge struct {
// contains filtered or unexported fields
}
func (*ExternalBridge) Matches ¶
func (b *ExternalBridge) Matches(def *types.ServiceInterface) bool
func (*ExternalBridge) Realise ¶
func (b *ExternalBridge) Realise() error
type IngressRoute ¶
type IngressRoute struct { Name string Host string ServiceName string ServicePort int Resolve bool }
func GetContourProxy ¶
func GetIngressRoutes ¶
func GetIngressRoutes(name string, namespace string, clients Clients) ([]IngressRoute, error)
type PodTargetResolver ¶
type PodTargetResolver struct {
// contains filtered or unexported fields
}
func NewPodTargetResolver ¶
func NewPodTargetResolver(cli kubernetes.Interface, namespace string, address string, selector string, skipPodStatus bool) *PodTargetResolver
func (*PodTargetResolver) AddEventHandler ¶
func (o *PodTargetResolver) AddEventHandler(handler *cache.ResourceEventHandlerFuncs)
func (*PodTargetResolver) Close ¶
func (o *PodTargetResolver) Close()
func (*PodTargetResolver) HasTarget ¶
func (o *PodTargetResolver) HasTarget() bool
func (*PodTargetResolver) List ¶
func (o *PodTargetResolver) List() []string
func (*PodTargetResolver) Start ¶
func (o *PodTargetResolver) Start() error
type ServiceIngressAlways ¶
type ServiceIngressAlways struct {
// contains filtered or unexported fields
}
func (*ServiceIngressAlways) Matches ¶
func (si *ServiceIngressAlways) Matches(def *types.ServiceInterface) bool
func (*ServiceIngressAlways) Mode ¶
func (si *ServiceIngressAlways) Mode() types.ServiceIngressMode
func (*ServiceIngressAlways) Realise ¶
func (si *ServiceIngressAlways) Realise(desired *service.ServiceBindings) error
type ServiceIngressHeadlessInOrigin ¶
type ServiceIngressHeadlessInOrigin struct {
// contains filtered or unexported fields
}
func (*ServiceIngressHeadlessInOrigin) Matches ¶
func (si *ServiceIngressHeadlessInOrigin) Matches(def *types.ServiceInterface) bool
func (*ServiceIngressHeadlessInOrigin) Mode ¶
func (si *ServiceIngressHeadlessInOrigin) Mode() types.ServiceIngressMode
func (*ServiceIngressHeadlessInOrigin) Realise ¶
func (si *ServiceIngressHeadlessInOrigin) Realise(desired *service.ServiceBindings) error
type ServiceIngressHeadlessRemote ¶
type ServiceIngressHeadlessRemote struct {
// contains filtered or unexported fields
}
func (*ServiceIngressHeadlessRemote) Matches ¶
func (si *ServiceIngressHeadlessRemote) Matches(def *types.ServiceInterface) bool
func (*ServiceIngressHeadlessRemote) Mode ¶
func (si *ServiceIngressHeadlessRemote) Mode() types.ServiceIngressMode
func (*ServiceIngressHeadlessRemote) Realise ¶
func (si *ServiceIngressHeadlessRemote) Realise(desired *service.ServiceBindings) error
type ServiceIngressNever ¶
type ServiceIngressNever struct {
// contains filtered or unexported fields
}
func (*ServiceIngressNever) Matches ¶
func (si *ServiceIngressNever) Matches(def *types.ServiceInterface) bool
func (*ServiceIngressNever) Mode ¶
func (si *ServiceIngressNever) Mode() types.ServiceIngressMode
func (*ServiceIngressNever) Realise ¶
func (si *ServiceIngressNever) Realise(desired *service.ServiceBindings) error
type SkupperEventRecorder ¶
type SkupperEventRecorder struct { EventRecorder record.EventRecorder Source *v1.ObjectReference }
func NewSkupperEventRecorder ¶
func NewSkupperEventRecorder(namespace string, cli kubernetes.Interface, objectRef *v1.ObjectReference) *SkupperEventRecorder
func (SkupperEventRecorder) RecordNormalEvent ¶
func (logger SkupperEventRecorder) RecordNormalEvent(reason string, message string)
func (SkupperEventRecorder) RecordWarningEvent ¶
func (logger SkupperEventRecorder) RecordWarningEvent(reason string, message string)
Source Files ¶
- clients.go
- clusterrolebindings.go
- clusterroles.go
- configmaps.go
- containers.go
- contour.go
- deploymentconfigs.go
- deployments.go
- envvars.go
- events.go
- exec_util.go
- externalbridge.go
- ingress.go
- misc.go
- namespaces.go
- networkpolicies.go
- pods.go
- podtargetresolver.go
- rolebindings.go
- roles.go
- routes.go
- secrets.go
- serviceaccounts.go
- serviceingressbindings.go
- services.go
- volumes.go
Click to show internal directories.
Click to hide internal directories.