Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncFunctionCR ¶
func SyncFunctionCR(ctx context.Context, cfg SyncConfig) error
SyncFunctionCR creates or updates a Function CR for the given function. It sets up Kubernetes clients, checks if the Function CRD exists on the cluster, and creates or updates the CR accordingly.
Types ¶
type RegistryCredentials ¶
RegistryCredentials holds resolved credentials for a container registry.
type SyncConfig ¶
type SyncConfig struct {
FunctionName string
Namespace string
RepoURL string
RepoBranch string
RepoPath string
// If set, a docker-registry secret is created and referenced from
// the Function CR's .spec.registry.authSecretRef.
RegistryCredentials *RegistryCredentials
}
SyncConfig holds the parameters for creating/updating a Function CR.
type SyncerOpt ¶
type SyncerOpt func(*Syncer)
func WithCredentialsProvider ¶
func WithCredentialsProvider(cp oci.CredentialsProvider) SyncerOpt
Click to show internal directories.
Click to hide internal directories.