ustore-operator

command module
v0.0.0-...-3a90e46 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

ustore-operator

A Go Operator for creating and managing instances of Unum UStore.

For more information on what is an Operator, visit

This operator was built using Operator SDK. please see:

Running on a cluster and testing

First, deploy the Operator and the Custom Resource Definition (CRD) - make deploy.

If you wish to debug see the "debugging" section below, and either scale down the controller-manager Deployment to 0 first, or use make install instead.

Next, deploy the user input Custom Resource example Config Map and UStore yaml:

oc apply -f config/samples/sample-config-ucset.yaml
oc apply -f config/samples/unum_v1alpha1_ustore_ucset.yaml 

Note: there are more yamls under config/samples

Cleanup
oc delete -f config/samples/unum_v1alpha1_ustore_ucset.yaml 
make undeploy

Building locally if needed

IMAGE_BUILDER=docker #its podman by default
IMG=<your local operator image to build>
make docker-build
make docker-push
A push to main branch, triggers image build GH Action. image name: quay.io/opdev/ustore-operator

Operator Lifecycle Manager (OLM) Bundle and OpenShift Marketplace integration

To generate bundle manifests use make bundle. Observe config/manifests/bases/ustore-operator.clusterserviceversion.yaml and the bundle folder.

To build the bundle image which can be tested, certified and pushed to marketplace use

IMAGE_BUILDER=docker #its podman by default
IMAGE_TAG_BASE=<name of image. will be appended with -bundle>
make bundle-build
make bundle-push

This image can then be added to a test catalog for local testing only

make catalog-build
make catalog-push

For more information please see

Debugging in VSCode
{
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Launch file",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "main.go"
        },
    ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the unum v1alpha1 API group +kubebuilder:object:generate=true +groupName=unum.cloud
Package v1alpha1 contains API Schema definitions for the unum v1alpha1 API group +kubebuilder:object:generate=true +groupName=unum.cloud

Jump to

Keyboard shortcuts

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