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 SyncConfig ¶
type SyncConfig struct {
FunctionName string
Namespace string
RepoURL string
RepoRevision string
RepoDir string
// If set, SyncFunctionCR creates or updates this Secret and names it in
// the Function CR's .spec.registry.authSecretRef.
RegistrySecret *v1.Secret
}
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.