ocm-controller

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

ocm-controller

REUSE status

Main repository for ocm-controller.

Architecture

The ocm-controller manages multiple Custom Resources and therefore contains several reconcilers. It also provides an OCI registry used to cache blobs and make them accessible to clients within the cluster.

ocm controller reconcilers

The ocm-controller is responsible for the core work necessary to utilise resources from an OCM component in a Kubernetes cluster. This includes:

Snapshots are used to pass blobs between controllers and snapshots are stored in the internal registry managed by the ocm-controller.

ocm controller architecture

Testing

In order to test, run the manager locally with a kind cluster present on the system.

  • apply all CRDs from the crd/base folder
  • run the controller:
make
./bin/manager -zap-log-level 4
  • apply all the sample objects

To trigger the reconcile loop ( because manually updating the status doesn't trigger it ) run something like this:

kubectl annotate --overwrite ... "trigger/reconcile=$(date -u+%)"

Licensing

Copyright 2022 SAP SE or an SAP affiliate company and Open Component Model contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
pkg
oci
oci/registry command
ocm

Jump to

Keyboard shortcuts

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