operator

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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

type RegistryCredentials struct {
	Username string
	Password string
	Server   string
}

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 Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func NewSyncer

func NewSyncer(opts ...SyncerOpt) *Syncer

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, f fn.Function) error

type SyncerOpt

type SyncerOpt func(*Syncer)

func WithCredentialsProvider

func WithCredentialsProvider(cp oci.CredentialsProvider) SyncerOpt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL