Documentation ¶
Index ¶
- type ExtraResource
- type Maintenance
- func (m *Maintenance) Run(ctx context.Context) *xfnproto.Result
- func (m *Maintenance) WithExtraEnvs(extraEnvs ...corev1.EnvVar) *Maintenance
- func (m *Maintenance) WithExtraResources(extraResources ...ExtraResource) *Maintenance
- func (m *Maintenance) WithHelmBasedService() *Maintenance
- func (m *Maintenance) WithPolicyRules(policyRules []rbacv1.PolicyRule) *Maintenance
- func (m *Maintenance) WithRole(role string) *Maintenance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraResource ¶
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, svc *runtime.ServiceRuntime, schedule vshnv1.VSHNDBaaSMaintenanceScheduleSpec, instanceNamespace, service string) *Maintenance
New creates a Maintenance object with required attributes
func (*Maintenance) Run ¶
func (m *Maintenance) Run(ctx context.Context) *xfnproto.Result
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
Click to show internal directories.
Click to hide internal directories.