This folder contains an example how to build an installer for the toi of the ocm CLI. It also demonstrates how to use OCM with building multiarch-images. It contains
an executorspec.yaml
as interface to the toi installer.
You can use make
to build this component. You will have to adjust the variables at the top of the makefile to your environment (at least OCMREPO
). By default, all artifacts are built in the gen
folder of this project.
The main targets are:
make ca
: builds a component archivemake ctf
: builds a common transport archivemake push
: stores the component version in an OCI registrymake transport
: transfers the component version between two registriesmake descriptor
: displays the component descriptormake describe
: displays the component and it dependencies in a tree structure
The helm installer is used by providing a reference to this component version along with a packagespec.yaml
description.
apiVersion: ocm.software/v3alpha1
kind: ComponentVersion
metadata:
...
spec:
references:
- componentName: ocm.software/toi/installers/helminstaller
name: installer
version: v0.2.0
...
See the helmdemo for an example including a packagespec.yaml.