Documentation ¶
Index ¶
Constants ¶
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 ¶
func (r *RepositoryServerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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.