sampleconfig

package
v0.0.0-...-ad62b84 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPServerDeploymentName defines the name of the HTTP server deployment
	HTTPServerDeploymentName = "http-server"
	// HTTPServerName defines the name of the HTTP server service
	HTTPServerName = "http-server"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new SampleConfig Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type CrManager

type CrManager struct {
	// contains filtered or unexported fields
}

CrManager provides test CR management functionality

func (*CrManager) Create

func (m *CrManager) Create() client.Object

Create creates empty CR

func (*CrManager) GetAllResources

func (m *CrManager) GetAllResources(obj client.Object) ([]client.Object, error)

GetAllResources provides all resources managed by the cr

func (*CrManager) GetDependantResourcesListObjects

func (m *CrManager) GetDependantResourcesListObjects() []client.ObjectList

GetDependantResourcesListObjects returns resource list objects of dependant resources

func (*CrManager) IsCreating

func (m *CrManager) IsCreating(cr client.Object) (bool, error)

IsCreating checks whether creation of the managed resources will be executed

func (*CrManager) Status

func (m *CrManager) Status(cr client.Object) *sdkapi.Status

Status extracts status from the cr

type OperatorArgs

type OperatorArgs struct {
	OperatorVersion string `required:"true" split_words:"true"`
	ServerImage     string `required:"true" split_words:"true"`
	Namespace       string
}

OperatorArgs contains the required parameters to generate all namespaced resources

type ReconcileSampleConfig

type ReconcileSampleConfig struct {
	// contains filtered or unexported fields
}

ReconcileSampleConfig reconciles a SampleConfig object

func (*ReconcileSampleConfig) Reconcile

Reconcile reads that state of the cluster for a SampleConfig object and makes changes based on the state read and what is in the SampleConfig.Spec

func (*ReconcileSampleConfig) SetController

func (r *ReconcileSampleConfig) SetController(controller controller.Controller)

SetController sets the controller dependency

Jump to

Keyboard shortcuts

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