verrazzano-helidon-app-operator

module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: UPL-1.0

README

pipeline status coverage report

verrazzano-helidon-app-operator

Kubernetes operator for handling Helidon applications

Prerequisites

operator-sdk version must be v0.12.0

How to Build

make build

How to build and run outside a Kubernetes cluster

export GO111MODULE=on

make go-mod
export OPERATOR_NAME=verrazzano-helidon-app-operator
operator-sdk up local --namespace=""

How to build and deploy in a Kubernetes cluster

operator-sdk build verrazzano-helidon-app-operator:v0.0.1

sed -i "" 's|REPLACE_IMAGE|verrazzano-helidon-app-operator:v0.0.1|g' deploy/operator.yaml
# This step is using the default namespace for the deployment. Change to desired
# namespace if need be.
sed -i "" "s|REPLACE_NAMESPACE|default|g" deploy/role_binding.yaml

kubectl apply -f deploy/service_account.yaml
kubectl apply -f deploy/role.yaml
kubectl apply -f deploy/role_binding.yaml
kubectl apply -f deploy/operator.yaml

How to update the CRD

# Make edits to pkg/apis/verrazzano/v1beta1/helidonapp_types.go

make generate

Generating/Updating THIRD_PARTY_LICENSES.txt

Whenever project dependencies (go.mod) are updated, the THIRD_PARTY_LICENSES.txt file contained in this project must be updated as well. This is verified in the CI pipeline - the build will fail if this file is found to be out of sync with go.mod.

To update the THIRD_PARTY_LICENSES.txt file, install the Attribution Helper tool as described here, run it within this project's the root directory:

attribution-helper gen

and then commit the updated THIRD_PARTY_LICENSES.txt file.

Directories

Path Synopsis
cmd
pkg
apis/verrazzano/v1beta1
Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io
Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/verrazzano/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/verrazzano/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
test

Jump to

Keyboard shortcuts

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