An operator to install and configure Shipwright on Kubernetes clusters.
The Shipwright operator is designed to be installed with the Operator Lifecycle Manager ("OLM"). Before installation, ensure that OLM has been deployed on your cluster by following the OLM installation instructions.
Once OLM has been deployed, use the following command to install the latest operator release from operatorhub.io:
$ kubectl apply -f https://operatorhub.io/install/shipwright-operator.yaml
To deploy and manage Shipwright Builds in your cluster, first make sure this operator is installed and running.
Next, create the following:
---
apiVersion: operator.shipwright.io/v1alpha1
kind: ShipwrightBuild
metadata:
name: shipwright-operator
spec:
targetNamespace: shipwright-build
The operator will deploy Shipwright Builds in the provided targetNamespace
.
When .spec.targetNamespace
is not set, the namespace will default to shipwright-build
.
Refer to the ShipwrightBuild documentation for more information about this custom resource.
The operator handles differents environment variables to customize Shiprwright controller installation: KO_DATA_PATH : defines the shipwright controller manifest to install IMAGE_SHIPWRIGHT_SHIPWRIGHT_BUILD : defines the Shipwright Build Controller Image to use IMAGE_SHIPWRIGHT_GIT_CONTAINER_IMAGE: defines the Shipwright Git Container Image to use IMAGE_SHIPWRIGHT_MUTATE_IMAGE_CONTAINER_IMAGE: defines the Shipwright Mutate Image to use IMAGE_SHIPWRIGHT_BUNDLE_CONTAINER_IMAGE: defines the Shipwright Bundle Image to use IMAGE_SHIPWRIGHT_WAITER_CONTAINER_IMAGE: defines the Shipwright Waiter Image to use
See CONTRIBUTING.md for more information on how to build, test, and submit contributions to the operator.