Documentation ¶
Index ¶
- type Manager
- func (d *Manager) CreateFromYaml(yamlContent []byte) error
- func (d *Manager) CreateObject(obj *unstructured.Unstructured) error
- func (d *Manager) DeleteFromYaml(yamlContent []byte) error
- func (d *Manager) DeleteObject(obj *unstructured.Unstructured) error
- func (d *Manager) DeleteOperator(name, namespace string) error
- func (d *Manager) GetAnnotations() (map[string]string, error)
- func (d *Manager) GetDeployment() (*appsv1.Deployment, error)
- func (d *Manager) GetObject(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (d *Manager) UpdateObject(obj *unstructured.Unstructured) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func NewDeployManager ¶
NewDeployManager is the way to create a Manager struct
func (*Manager) CreateFromYaml ¶
CreateFromYaml create k8s resource with the YAML content
func (*Manager) CreateObject ¶
func (d *Manager) CreateObject(obj *unstructured.Unstructured) error
CreateObject create k8s resource with the unstructured object
func (*Manager) DeleteFromYaml ¶
DeleteFromYaml delete k8s resource with the YAML content
func (*Manager) DeleteObject ¶
func (d *Manager) DeleteObject(obj *unstructured.Unstructured) error
DeleteObject delete k8s resource with the unstructured object
func (*Manager) DeleteOperator ¶
DeleteOperator delete operator's csv and subscription from specific namespace
func (*Manager) GetAnnotations ¶
GetAnnotations get the annotations from operator's deployment
func (*Manager) GetDeployment ¶
func (d *Manager) GetDeployment() (*appsv1.Deployment, error)
func (*Manager) GetObject ¶
func (d *Manager) GetObject(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
GetObject get k8s resource with the unstructured object
func (*Manager) UpdateObject ¶
func (d *Manager) UpdateObject(obj *unstructured.Unstructured) error
UpdateObject update k8s resource with the unstructured object
Click to show internal directories.
Click to hide internal directories.