anchore / engine-operator

Helm based anchore engine operator
4 stars 6 forks source link
kubernetes-operator operator operator-hub security

Anchore Engine Helm Operator

The Anchore Engine Operator provides an easy way to deploy the Anchore Engine Helm chart to Kubernetes clusters.

This Operator is based on the official Helm Chart.

Quickstart

Prerequisites

The Makefile will install the Operator SDK and kustomize for you.

Install kubectl.

You will need a running Kubernetes cluster to install Anchore Engine using this Operator.

Install Anchore Engine

To stand up an Anchore Engine deployment on your cluster using the engine-operator, issue the follow command:

make install
make deploy

To delete the Anchore Engine deployment and the engine-operator from your cluster, issue the follow command:

make uninstall
make undeploy

Updating the Anchore Engine Operator with the newest Helm chart version

Testing the Operator for installation with OLM

Install the following:

Setup local OpenShift cluster and install the Operator

make test

From the crc console, install an instance of anchore-engine using the Operator

Clean up OLM install

unset OPERATOR_TEST_MODE
make clean
crc stop
crc delete

Troubleshooting

kubectl patch anchoreengines.charts.anchore.io anchoreengine-sample -p '{"metadata":{"finalizers":[]}}' --type=merge

Resources

golang Operator Lifecycle Manager Operator SDK crc OpenShift CLI (oc) [kustomize]() [kubectl]()