Documentation ¶
Index ¶
- type Adapter
- func (k *Adapter) CR() interfaces.IKubeCR
- func (k *Adapter) ConfigMap() interfaces.IKubeConfigMap
- func (k *Adapter) Deployment() interfaces.IKubeDeployment
- func (k *Adapter) Event() interfaces.IKubeEvent
- func (k *Adapter) PDB() interfaces.IKubePDB
- func (k *Adapter) Pod() interfaces.IKubePod
- func (k *Adapter) ReplicaSet() interfaces.IKubeReplicaSet
- func (k *Adapter) STS() interfaces.IKubeSTS
- func (k *Adapter) Secret() interfaces.IKubeSecret
- func (k *Adapter) Service() interfaces.IKubeService
- func (k *Adapter) Storage() interfaces.IKubeStoragePVC
- type CR
- type ConfigMap
- func (c *ConfigMap) Create(ctx context.Context, cm *core.ConfigMap) (*core.ConfigMap, error)
- func (c *ConfigMap) Delete(ctx context.Context, namespace, name string) error
- func (c *ConfigMap) Get(ctx context.Context, namespace, name string) (*core.ConfigMap, error)
- func (c *ConfigMap) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]core.ConfigMap, error)
- func (c *ConfigMap) Update(ctx context.Context, cm *core.ConfigMap) (*core.ConfigMap, error)
- type Deployment
- type Event
- type PDB
- func (c *PDB) Create(ctx context.Context, pdb *policy.PodDisruptionBudget) (*policy.PodDisruptionBudget, error)
- func (c *PDB) Delete(ctx context.Context, namespace, name string) error
- func (c *PDB) Get(ctx context.Context, namespace, name string) (*policy.PodDisruptionBudget, error)
- func (c *PDB) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]policy.PodDisruptionBudget, error)
- func (c *PDB) Update(ctx context.Context, pdb *policy.PodDisruptionBudget) (*policy.PodDisruptionBudget, error)
- type PVC
- func (c *PVC) Create(ctx context.Context, pvc *core.PersistentVolumeClaim) (*core.PersistentVolumeClaim, error)
- func (c *PVC) Delete(ctx context.Context, namespace, name string) error
- func (c *PVC) Get(ctx context.Context, namespace, name string) (*core.PersistentVolumeClaim, error)
- func (c *PVC) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]core.PersistentVolumeClaim, error)
- func (c *PVC) ListForHost(ctx context.Context, host *api.Host) (*core.PersistentVolumeClaimList, error)
- func (c *PVC) Update(ctx context.Context, pvc *core.PersistentVolumeClaim) (*core.PersistentVolumeClaim, error)
- type Pod
- type ReplicaSet
- type STS
- func (c *STS) Create(ctx context.Context, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
- func (c *STS) Delete(ctx context.Context, namespace, name string) error
- func (c *STS) Get(ctx context.Context, params ...any) (*apps.StatefulSet, error)
- func (c *STS) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]apps.StatefulSet, error)
- func (c *STS) Update(ctx context.Context, sts *apps.StatefulSet) (*apps.StatefulSet, error)
- type Secret
- func (c *Secret) Create(ctx context.Context, svc *core.Secret) (*core.Secret, error)
- func (c *Secret) Delete(ctx context.Context, namespace, name string) error
- func (c *Secret) Get(ctx context.Context, params ...any) (*core.Secret, error)
- func (c *Secret) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]core.Secret, error)
- func (c *Secret) Update(ctx context.Context, svc *core.Secret) (*core.Secret, error)
- type Service
- func (c *Service) Create(ctx context.Context, svc *core.Service) (*core.Service, error)
- func (c *Service) Delete(ctx context.Context, namespace, name string) error
- func (c *Service) Get(ctx context.Context, params ...any) (*core.Service, error)
- func (c *Service) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]core.Service, error)
- func (c *Service) Update(ctx context.Context, svc *core.Service) (*core.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter(kubeClient kube.Interface, chopClient chopClientSet.Interface, namer interfaces.INameManager) *Adapter
func (*Adapter) ConfigMap ¶
func (k *Adapter) ConfigMap() interfaces.IKubeConfigMap
ConfigMap is a getter
func (*Adapter) Deployment ¶
func (k *Adapter) Deployment() interfaces.IKubeDeployment
Deployment is a getter
func (*Adapter) ReplicaSet ¶
func (k *Adapter) ReplicaSet() interfaces.IKubeReplicaSet
ReplicaSet is a getter
func (*Adapter) Storage ¶
func (k *Adapter) Storage() interfaces.IKubeStoragePVC
Storage is a getter
type CR ¶
type CR struct {
// contains filtered or unexported fields
}
func NewCR ¶
func NewCR(chopClient chopClientSet.Interface) *CR
func (*CR) StatusUpdate ¶
func (c *CR) StatusUpdate(ctx context.Context, cr api.ICustomResource, opts commonTypes.UpdateStatusOptions) (err error)
updateCHIObjectStatus updates ClickHouseInstallation object's Status
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(kubeClient kube.Interface) *Deployment
func (*Deployment) Get ¶
func (c *Deployment) Get(namespace, name string) (*apps.Deployment, error)
func (*Deployment) Update ¶
func (c *Deployment) Update(deployment *apps.Deployment) (*apps.Deployment, error)
type PDB ¶
type PDB struct {
// contains filtered or unexported fields
}
func (*PDB) Create ¶
func (c *PDB) Create(ctx context.Context, pdb *policy.PodDisruptionBudget) (*policy.PodDisruptionBudget, error)
func (*PDB) List ¶
func (c *PDB) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]policy.PodDisruptionBudget, error)
func (*PDB) Update ¶
func (c *PDB) Update(ctx context.Context, pdb *policy.PodDisruptionBudget) (*policy.PodDisruptionBudget, error)
type PVC ¶
type PVC struct {
// contains filtered or unexported fields
}
func (*PVC) Create ¶
func (c *PVC) Create(ctx context.Context, pvc *core.PersistentVolumeClaim) (*core.PersistentVolumeClaim, error)
func (*PVC) List ¶
func (c *PVC) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]core.PersistentVolumeClaim, error)
func (*PVC) ListForHost ¶
func (*PVC) Update ¶
func (c *PVC) Update(ctx context.Context, pvc *core.PersistentVolumeClaim) (*core.PersistentVolumeClaim, error)
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
func NewPod ¶
func NewPod(kubeClient kube.Interface, namer interfaces.INameManager) *Pod
type ReplicaSet ¶
type ReplicaSet struct {
// contains filtered or unexported fields
}
func NewReplicaSet ¶
func NewReplicaSet(kubeClient kube.Interface) *ReplicaSet
func (*ReplicaSet) Get ¶
func (c *ReplicaSet) Get(ctx context.Context, namespace, name string) (*apps.ReplicaSet, error)
func (*ReplicaSet) Update ¶
func (c *ReplicaSet) Update(ctx context.Context, replicaSet *apps.ReplicaSet) (*apps.ReplicaSet, error)
type STS ¶
type STS struct {
// contains filtered or unexported fields
}
func NewSTS ¶
func NewSTS(kubeClient kube.Interface, namer interfaces.INameManager) *STS
func (*STS) Create ¶
func (c *STS) Create(ctx context.Context, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
func (*STS) List ¶
func (c *STS) List(ctx context.Context, namespace string, opts meta.ListOptions) ([]apps.StatefulSet, error)
func (*STS) Update ¶
func (c *STS) Update(ctx context.Context, sts *apps.StatefulSet) (*apps.StatefulSet, error)
Update is an internal function, used in reconcileStatefulSet only
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
func NewSecret ¶
func NewSecret(kubeClient kube.Interface, namer interfaces.INameManager) *Secret
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(kubeClient kube.Interface, namer interfaces.INameManager) *Service
Click to show internal directories.
Click to hide internal directories.