deploy

package
v0.0.0-...-a3639e1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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