Documentation ¶
Index ¶
- func Exists(r Resource) bool
- func Fetch(ctx context.Context, objects ...Fetchable) error
- func Sync(ctx context.Context, objects ...Syncable) error
- type CABundle
- type ConfigMap
- type Deployment
- func (d *Deployment) ArePodsReady(ctx context.Context) bool
- func (d *Deployment) ArePodsRemoved(ctx context.Context) bool
- func (d *Deployment) Build() *appsv1.Deployment
- func (d *Deployment) Fetch(ctx context.Context) error
- func (d *Deployment) Name() string
- func (d *Deployment) NeedSync(replicas int32) bool
- func (d *Deployment) OldObject() client.Object
- func (d *Deployment) Sync(ctx context.Context) error
- type Fetchable
- type HTTPService
- func (s *HTTPService) Build() *corev1.Service
- func (s *HTTPService) Fetch(ctx context.Context) error
- func (s *HTTPService) Name() string
- func (s *HTTPService) OldObject() client.Object
- func (s *HTTPService) SetHttpNodePort(port *int32)
- func (s *HTTPService) SetHttpsNodePort(port *int32)
- func (s *HTTPService) Sync(ctx context.Context) error
- type HeadlessService
- type Job
- type MonitoringService
- func (s *MonitoringService) Build() *corev1.Service
- func (s *MonitoringService) Fetch(ctx context.Context) error
- func (s *MonitoringService) GetServiceMeta(name string) metav1.ObjectMeta
- func (s *MonitoringService) Name() string
- func (s *MonitoringService) OldObject() client.Object
- func (s *MonitoringService) Service() corev1.Service
- func (s *MonitoringService) Sync(ctx context.Context) error
- type RPCService
- func (s *RPCService) Build() *corev1.Service
- func (s *RPCService) Fetch(ctx context.Context) error
- func (s *RPCService) Name() string
- func (s *RPCService) OldObject() client.Object
- func (s *RPCService) Service() corev1.Service
- func (s *RPCService) SetNodePort(port *int32)
- func (s *RPCService) Sync(ctx context.Context) error
- type Resource
- type StatefulSet
- func (s *StatefulSet) ArePodsReady(ctx context.Context, minReadyInstanceCount *int) bool
- func (s *StatefulSet) ArePodsRemoved(ctx context.Context) bool
- func (s *StatefulSet) Build() *appsv1.StatefulSet
- func (s *StatefulSet) Fetch(ctx context.Context) error
- func (s *StatefulSet) Name() string
- func (s *StatefulSet) NeedSync(replicas int32) bool
- func (s *StatefulSet) OldObject() client.Object
- func (s *StatefulSet) Sync(ctx context.Context) error
- type StringSecret
- func (s *StringSecret) Build() *corev1.Secret
- func (s *StringSecret) Fetch(ctx context.Context) error
- func (s *StringSecret) GetEnvSource() corev1.EnvFromSource
- func (s *StringSecret) GetValue(key string) (string, bool)
- func (s *StringSecret) Name() string
- func (s *StringSecret) NeedSync(key, value string) bool
- func (s *StringSecret) OldObject() client.Object
- func (s *StringSecret) Sync(ctx context.Context) error
- type Syncable
- type TCPService
- type TLSSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CABundle ¶
CABundle represents mounted configmap with trusted certificates
func NewCABundle ¶
func (*CABundle) AddVolumeMount ¶
type ConfigMap ¶
type ConfigMap struct {
// contains filtered or unexported fields
}
func NewConfigMap ¶
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeployment( name string, labeller *labeller2.Labeller, ytsaurus *apiproxy.Ytsaurus, tolerations []corev1.Toleration, nodeSelector map[string]string, ) *Deployment
func (*Deployment) ArePodsReady ¶
func (d *Deployment) ArePodsReady(ctx context.Context) bool
func (*Deployment) ArePodsRemoved ¶
func (d *Deployment) ArePodsRemoved(ctx context.Context) bool
func (*Deployment) Build ¶
func (d *Deployment) Build() *appsv1.Deployment
func (*Deployment) Name ¶
func (d *Deployment) Name() string
func (*Deployment) NeedSync ¶
func (d *Deployment) NeedSync(replicas int32) bool
func (*Deployment) OldObject ¶
func (d *Deployment) OldObject() client.Object
type HTTPService ¶
type HTTPService struct {
// contains filtered or unexported fields
}
func NewHTTPService ¶
func NewHTTPService(name string, transport *ytv1.HTTPTransportSpec, labeller *labeller.Labeller, apiProxy apiproxy.APIProxy) *HTTPService
func (*HTTPService) Build ¶
func (s *HTTPService) Build() *corev1.Service
func (*HTTPService) Name ¶
func (s *HTTPService) Name() string
func (*HTTPService) OldObject ¶
func (s *HTTPService) OldObject() client.Object
func (*HTTPService) SetHttpNodePort ¶
func (s *HTTPService) SetHttpNodePort(port *int32)
func (*HTTPService) SetHttpsNodePort ¶
func (s *HTTPService) SetHttpsNodePort(port *int32)
type HeadlessService ¶
type HeadlessService struct {
// contains filtered or unexported fields
}
func NewHeadlessService ¶
func (*HeadlessService) Build ¶
func (s *HeadlessService) Build() *corev1.Service
func (*HeadlessService) Name ¶
func (s *HeadlessService) Name() string
func (*HeadlessService) OldObject ¶
func (s *HeadlessService) OldObject() client.Object
type MonitoringService ¶
type MonitoringService struct {
// contains filtered or unexported fields
}
func NewMonitoringService ¶
func (*MonitoringService) Build ¶
func (s *MonitoringService) Build() *corev1.Service
func (*MonitoringService) GetServiceMeta ¶
func (s *MonitoringService) GetServiceMeta(name string) metav1.ObjectMeta
func (*MonitoringService) Name ¶
func (s *MonitoringService) Name() string
func (*MonitoringService) OldObject ¶
func (s *MonitoringService) OldObject() client.Object
func (*MonitoringService) Service ¶
func (s *MonitoringService) Service() corev1.Service
type RPCService ¶
type RPCService struct {
// contains filtered or unexported fields
}
func NewRPCService ¶
func (*RPCService) Build ¶
func (s *RPCService) Build() *corev1.Service
func (*RPCService) Name ¶
func (s *RPCService) Name() string
func (*RPCService) OldObject ¶
func (s *RPCService) OldObject() client.Object
func (*RPCService) Service ¶
func (s *RPCService) Service() corev1.Service
func (*RPCService) SetNodePort ¶
func (s *RPCService) SetNodePort(port *int32)
type StatefulSet ¶
type StatefulSet struct {
// contains filtered or unexported fields
}
func NewStatefulSet ¶
func NewStatefulSet( name string, labeller *labeller2.Labeller, proxy apiproxy.APIProxy, commonSpec ytv1.CommonSpec, ) *StatefulSet
func (*StatefulSet) ArePodsReady ¶
func (s *StatefulSet) ArePodsReady(ctx context.Context, minReadyInstanceCount *int) bool
func (*StatefulSet) ArePodsRemoved ¶
func (s *StatefulSet) ArePodsRemoved(ctx context.Context) bool
func (*StatefulSet) Build ¶
func (s *StatefulSet) Build() *appsv1.StatefulSet
func (*StatefulSet) Name ¶
func (s *StatefulSet) Name() string
func (*StatefulSet) NeedSync ¶
func (s *StatefulSet) NeedSync(replicas int32) bool
func (*StatefulSet) OldObject ¶
func (s *StatefulSet) OldObject() client.Object
type StringSecret ¶
type StringSecret struct {
// contains filtered or unexported fields
}
func NewStringSecret ¶
func (*StringSecret) Build ¶
func (s *StringSecret) Build() *corev1.Secret
func (*StringSecret) GetEnvSource ¶
func (s *StringSecret) GetEnvSource() corev1.EnvFromSource
func (*StringSecret) Name ¶
func (s *StringSecret) Name() string
func (*StringSecret) NeedSync ¶
func (s *StringSecret) NeedSync(key, value string) bool
func (*StringSecret) OldObject ¶
func (s *StringSecret) OldObject() client.Object
type TCPService ¶
type TCPService struct {
// contains filtered or unexported fields
}
func NewTCPService ¶
func NewTCPService(name string, serviceType corev1.ServiceType, portCount int32, minPort int32, labeller *labeller2.Labeller, apiProxy apiproxy.APIProxy) *TCPService
func (*TCPService) Build ¶
func (s *TCPService) Build() *corev1.Service
func (*TCPService) Name ¶
func (s *TCPService) Name() string
func (*TCPService) OldObject ¶
func (s *TCPService) OldObject() client.Object
func (*TCPService) Service ¶
func (s *TCPService) Service() corev1.Service
type TLSSecret ¶
TLSSecret represents mounted kubernetes.io/tls secret https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets
func NewTLSSecret ¶
func (*TLSSecret) AddVolumeMount ¶
Click to show internal directories.
Click to hide internal directories.