Coder Social home page Coder Social logo

engine-operator's Introduction

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. It only includes the open source components of the chart, all enterprise services have been removed.

All customizable values are specified in deploy/crds/anchore_v1alpha1_anchoreengine_cr.yaml before creation.

Quickstart

To stand up an Anchore Engine deployment on your cluster, issue the follow commands.

kubectl create -f deploy/crds/anchore_v1alpha1_anchoreengine_crd.yaml
kubectl create -f deploy
kubectl create -f deploy/crds/anchore_v1alpha1_anchoreengine_cr.yaml

To delete the operator deployment, use the following command:

kubectl delete -f deploy/crds
kubectl delete -f deploy

Troubleshooting

Occasionally custom resources will fail to delete due to a reported bug in the helm operator. To force the deletion of a Custom Resource and it's associated resources run the following commands.

kubectl patch anchoreengines.anchore.com example-anchoreengine -p '{"metadata":{"finalizers":[]}}' --type=merge
kubectl delete anchoreengines.anchore.com example-anchoreengine

RedHat Operator Hub Preperation

To make this operator available on the RedHat Operator Hub, an OLM bundle must be created and zipped up with the crd & package.yaml files. The zip file can then be uploaded to the Operator Hub from the connect.redhat.com console.

OLM bundle versions can be found in deploy/olm-catalog/.

Create a new bundle

See OLM - building your csv

  • Create a new OLM bundle version - run the following command from the anchore-engine-operator project root.
    • This will create the deploy/olm-catalog/<version> directory and a csv resource spec file.
operator-sdk olm-catalog gen-csv --csv-version <version>
  • Copy deploy/crds/anchore_v1alpha1_anchoreengine_crd.yaml to the deploy/olm-catalog/<version>/ directory.
  • Create deploy/olm-catalog/<version>/anchore-engine.package.yaml with the updated version.
  • Verify that the bundle is valid for uploading to connect.redhat.com - run the following command from the anchore-engine-operator project root.
operator-courier --verbose verify --ui_validate_io deploy/olm-catalog/<version>
  • Finally zip up the deploy/olm-catalog/<version> directory and upload the zip file to connect.redhat.com in the anchore-engine operator project.

engine-operator's People

Contributors

btodhunter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.