maintenance

package
v4.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraResource

type ExtraResource struct {
	Name     string
	Resource client.Object
	Refs     []xkubev1.Reference
}

ExtraResource is an extra resource to be added to the desired state of a Crossplane Function IO

type Maintenance

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

Maintenance contains data for maintenance k8s resource generation

func New

func New(r client.Object, iof *runtime.Runtime, schedule vshnv1.VSHNDBaaSMaintenanceScheduleSpec, instanceNamespace, service string) *Maintenance

New creates a Maintenance object with required attributes

func (*Maintenance) Run

Run generates k8s resources for maintenance

func (*Maintenance) WithExtraEnvs

func (m *Maintenance) WithExtraEnvs(extraEnvs ...corev1.EnvVar) *Maintenance

WithExtraEnvs adds extra environment variables to the cron job

func (*Maintenance) WithExtraResources

func (m *Maintenance) WithExtraResources(extraResources ...ExtraResource) *Maintenance

WithExtraResources adds extra resources to the desired composition function

func (*Maintenance) WithHelmBasedService

func (m *Maintenance) WithHelmBasedService() *Maintenance

WithHelmBasedService adds extra environment variables to the cron job

func (*Maintenance) WithPolicyRules

func (m *Maintenance) WithPolicyRules(policyRules []rbacv1.PolicyRule) *Maintenance

WithPolicyRules sets the policy rules for the role

func (*Maintenance) WithRole

func (m *Maintenance) WithRole(role string) *Maintenance

WithRole adds namespaced RBAC rules

Jump to

Keyboard shortcuts

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