repositoryserver

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultServerStartTimeout is default time to create context for Kopia API server Status Command
	DefaultServerStartTimeout = 600 * time.Second
)

Variables

This section is empty.

Functions

func WaitTillCommandSucceed

func WaitTillCommandSucceed(ctx context.Context, cli kubernetes.Interface, cmd []string, namespace, podName, container string) error

WaitTillCommandSucceed returns error if the Command fails to pass without error before default timeout

Types

type RepoServerHandler

type RepoServerHandler struct {
	Req                     ctrl.Request
	Logger                  logr.Logger
	Reconciler              *RepositoryServerReconciler
	KubeCli                 kubernetes.Interface
	RepositoryServer        *crv1alpha1.RepositoryServer
	RepositoryServerSecrets repositoryServerSecrets
}

func (*RepoServerHandler) CreateOrUpdateOwnedResources

func (h *RepoServerHandler) CreateOrUpdateOwnedResources(ctx context.Context) error

type RepositoryServerReconciler

type RepositoryServerReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

RepositoryServerReconciler reconciles a RepositoryServer object

func (*RepositoryServerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the RepositoryServer object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*RepositoryServerReconciler) SetupWithManager

func (r *RepositoryServerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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