wrappers

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilObject = errors.New("Bad object supplied: <nil>")

Functions

This section is empty.

Types

type InstallStrategyDeploymentClientForNamespace

type InstallStrategyDeploymentClientForNamespace struct {
	Namespace string
	// contains filtered or unexported fields
}

func (*InstallStrategyDeploymentClientForNamespace) CreateDeployment

func (*InstallStrategyDeploymentClientForNamespace) CreateOrUpdateDeployment

func (c *InstallStrategyDeploymentClientForNamespace) CreateOrUpdateDeployment(deployment *appsv1.Deployment) (*appsv1.Deployment, error)

func (*InstallStrategyDeploymentClientForNamespace) CreateRole

func (*InstallStrategyDeploymentClientForNamespace) CreateRoleBinding

func (*InstallStrategyDeploymentClientForNamespace) DeleteDeployment

func (c *InstallStrategyDeploymentClientForNamespace) DeleteDeployment(name string) error

func (*InstallStrategyDeploymentClientForNamespace) EnsureServiceAccount

func (c *InstallStrategyDeploymentClientForNamespace) EnsureServiceAccount(serviceAccount *corev1.ServiceAccount, owner ownerutil.Owner) (*corev1.ServiceAccount, error)

func (*InstallStrategyDeploymentClientForNamespace) FindAnyDeploymentsMatchingLabels

func (c *InstallStrategyDeploymentClientForNamespace) FindAnyDeploymentsMatchingLabels(label labels.Selector) ([]*appsv1.Deployment, error)

func (*InstallStrategyDeploymentClientForNamespace) FindAnyDeploymentsMatchingNames

func (c *InstallStrategyDeploymentClientForNamespace) FindAnyDeploymentsMatchingNames(depNames []string) ([]*appsv1.Deployment, error)

func (*InstallStrategyDeploymentClientForNamespace) GetOpClient

func (*InstallStrategyDeploymentClientForNamespace) GetOpLister

func (*InstallStrategyDeploymentClientForNamespace) GetServiceAccountByName

func (c *InstallStrategyDeploymentClientForNamespace) GetServiceAccountByName(serviceAccountName string) (*corev1.ServiceAccount, error)

type InstallStrategyDeploymentInterface

type InstallStrategyDeploymentInterface interface {
	CreateRole(role *rbacv1.Role) (*rbacv1.Role, error)
	CreateRoleBinding(roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
	EnsureServiceAccount(serviceAccount *corev1.ServiceAccount, owner ownerutil.Owner) (*corev1.ServiceAccount, error)
	CreateDeployment(deployment *appsv1.Deployment) (*appsv1.Deployment, error)
	CreateOrUpdateDeployment(deployment *appsv1.Deployment) (*appsv1.Deployment, error)
	DeleteDeployment(name string) error
	GetServiceAccountByName(serviceAccountName string) (*corev1.ServiceAccount, error)
	FindAnyDeploymentsMatchingNames(depNames []string) ([]*appsv1.Deployment, error)
	FindAnyDeploymentsMatchingLabels(label labels.Selector) ([]*appsv1.Deployment, error)
	GetOpClient() operatorclient.ClientInterface
	GetOpLister() operatorlister.OperatorLister
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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