Documentation ¶
Index ¶
- func AddCredentialsSecret(comp InfoGetter, svc *runtime.ServiceRuntime, fieldList []string) (string, error)
- func AddInitialNamespaceQuotas(namespaceKon string) func(context.Context, *runtime.ServiceRuntime) *xfnproto.Result
- func AddSaWithRole(ctx context.Context, svc *runtime.ServiceRuntime, policies []rbacv1.PolicyRule, ...) error
- func AddUserAlerting(obj client.Object) func(ctx context.Context, svc *runtime.ServiceRuntime) *fnproto.Result
- func BootstrapInstanceNs(ctx context.Context, comp InstanceNamespaceInfo, ...) error
- func CreateNetworkPolicy(ctx context.Context, sourceNs []string, instanceNs string, instance string, ...) error
- func CreateTlsCerts(ctx context.Context, ns string, instance string, svc *runtime.ServiceRuntime) error
- func GetReleaseValues(r *xhelmv1.Release) (map[string]interface{}, error)
- func GetResources(size *vshnv1.VSHNSizeSpec, r utils.Resources) (string, string, string, string, string)
- func MailgunAlerting(obj client.Object) func(ctx context.Context, svc *runtime.ServiceRuntime) *xfnproto.Result
- func SetRandomSchedules(backup BackupScheduler, maintenance MaintenanceScheduler)
- type Alerter
- type BackupScheduler
- type InfoGetter
- type InstanceNamespaceInfo
- type MaintenanceScheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCredentialsSecret ¶ added in v4.46.0
func AddCredentialsSecret(comp InfoGetter, svc *runtime.ServiceRuntime, fieldList []string) (string, error)
AddCredentialsSecret creates secrets and passwords for use with helm based services. This is to avoid issues with re-generating passwords if helm internal password generators are used. The function accepts a list of fields that should be populated with passwords. It returns the name of the secret resource, so it can be referenced later. The name of the inner secret object is the same as the resource name.
func AddInitialNamespaceQuotas ¶ added in v4.22.0
func AddInitialNamespaceQuotas(namespaceKon string) func(context.Context, *runtime.ServiceRuntime) *xfnproto.Result
AddInitialNamespaceQuotas will add the default quotas to a namespace if they are not yet set. This function takes the name of the namespace resource as it appears in the functionIO, it then returns the actual function that implements the composition function step.
func AddSaWithRole ¶
func AddSaWithRole(ctx context.Context, svc *runtime.ServiceRuntime, policies []rbacv1.PolicyRule, compName, namespace, suffix string) error
AddSaWithRole creates a service account with the given policy and binds it to the role.
func AddUserAlerting ¶ added in v4.42.0
func AddUserAlerting(obj client.Object) func(ctx context.Context, svc *runtime.ServiceRuntime) *fnproto.Result
AddUserAlerting adds user alerting to the Redis instance.
func BootstrapInstanceNs ¶ added in v4.45.0
func BootstrapInstanceNs(ctx context.Context, comp InstanceNamespaceInfo, serviceName, namespaceResName string, svc *runtime.ServiceRuntime) error
func CreateNetworkPolicy ¶ added in v4.44.0
func CreateTlsCerts ¶ added in v4.44.0
func GetReleaseValues ¶ added in v4.49.0
GetReleaseValues returns the parsed values from the given release.
func GetResources ¶ added in v4.44.0
func MailgunAlerting ¶ added in v4.42.0
func SetRandomSchedules ¶
func SetRandomSchedules(backup BackupScheduler, maintenance MaintenanceScheduler)
SetRandomSchedules initializes the backup and maintenance schedules if the user did not explicitly provide a schedule. The maintenance will be set to a random time on Tuesday night between 21:00 and 5:00, and the backup schedule will be set to once a day between 20:00 and 4:00. If neither maintenance nor backup is set, the function will make sure that there will be backup scheduled one hour before the maintenance.
Types ¶
type Alerter ¶ added in v4.42.0
type Alerter interface { GetVSHNMonitoring() vshnv1.VSHNMonitoring GetInstanceNamespace() string }
type BackupScheduler ¶
BackupScheduler can schedule backups
type InfoGetter ¶ added in v4.46.0
type InfoGetter interface { GetName() string GetInstanceNamespace() string GetBackupSchedule() string GetBackupRetention() vshnv1.K8upRetentionPolicy GetServiceName() string }
InfoGetter will return various information about the given AppCat composite.