Documentation ¶
Index ¶
- Constants
- func AddConnectionDetails(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *v1beta1.Result
- func AddExtensions(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func AddPrimaryService(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func AddPvcSecret(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func AddServiceBillingLabel(ctx context.Context, comp *v1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func DelayClusterDeployment(_ context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func DeployPostgreSQL(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func EnsureObjectBucketLabels(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func TransformRestart(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func TransformSchedule(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
- func UserManagement(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
Constants ¶
const ( // PostgresqlHost is env variable in the connection secret PostgresqlHost = "POSTGRESQL_HOST" // PostgresqlUser is env variable in the connection secret PostgresqlUser = "POSTGRESQL_USER" // PostgresqlPassword is env variable in the connection secret PostgresqlPassword = "POSTGRESQL_PASSWORD" // PostgresqlPort is env variable in the connection secret PostgresqlPort = "POSTGRESQL_PORT" // PostgresqlDb is env variable in the connection secret PostgresqlDb = "POSTGRESQL_DB" // PostgresqlURL is env variable in the connection secret PostgresqlURL = "POSTGRESQL_URL" )
Variables ¶
This section is empty.
Functions ¶
func AddConnectionDetails ¶ added in v4.51.0
func AddConnectionDetails(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *v1beta1.Result
AddConnectionDetails changes the desired state of a FunctionIO
func AddExtensions ¶
func AddExtensions(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
AddExtensions adds the user specified extensions to the SGCluster.
func AddPrimaryService ¶ added in v4.67.0
func AddPrimaryService(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
func AddPvcSecret ¶
func AddPvcSecret(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
AddPvcSecret adds a secret for the encrypted PVC for the PostgreSQL instance.
func AddServiceBillingLabel ¶ added in v4.97.1
func AddServiceBillingLabel(ctx context.Context, comp *v1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
AddServiceBillingLabel adds billingLabel to all the objects of a services that must be billed
func DelayClusterDeployment ¶ added in v4.45.1
func DelayClusterDeployment(_ context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
DelayClusterDeployment adds the dependencies on the sgcluster object, so that the provider-kubernetes doesn't loop anymore. The actual cluster object will only be deployed once the dependencies are deployed, synced and ready.
func DeployPostgreSQL ¶ added in v4.45.0
func DeployPostgreSQL(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
func EnsureObjectBucketLabels ¶ added in v4.64.0
func EnsureObjectBucketLabels(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
EnsureObjectBucketLabels just gets the bucket present from the PnT part and adds it again to the desired state. This ensures that the correct labels are injected.
func TransformRestart ¶
func TransformRestart(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
TransformRestart triggers a restart of the postgreqsql instance if there is a pending restart and the composite is configured to restart on update.
func TransformSchedule ¶
func TransformSchedule(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
TransformSchedule initializes the backup and maintenance schedules if the user did not explicitly provide a schedule.
func UserManagement ¶ added in v4.73.0
func UserManagement(ctx context.Context, comp *vshnv1.VSHNPostgreSQL, svc *runtime.ServiceRuntime) *xfnproto.Result
Types ¶
This section is empty.