deploy

package
v0.0.0-...-639c86f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	client.Client
	client.Reader
}

func NewDeployManager

func NewDeployManager(mgr manager.Manager) *Manager

NewDeployManager is the way to create a Manager struct

func (*Manager) CreateFromYaml

func (d *Manager) CreateFromYaml(yamlContent []byte) error

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

func (d *Manager) DeleteFromYaml(yamlContent []byte) error

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

func (d *Manager) DeleteOperator(name, namespace string) error

DeleteOperator delete operator's csv and subscription from specific namespace

func (*Manager) GetAnnotations

func (d *Manager) GetAnnotations() (map[string]string, error)

GetAnnotations get the annotations from operator's deployment

func (*Manager) GetDeployment

func (d *Manager) GetDeployment() (*appsv1.Deployment, error)

func (*Manager) GetObject

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL