kubernetes-operator

module
v0.0.0-...-b4b605e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0

README

Galasa Kubernetes operator

This is a alpha level release of the kubernetes operator, moved and re-architected from galasa-dev/extensions repository.

If any problems are found please open issues at https://github.com/galasa-dev/projectmanagement/issues

Operator Install

For a basic install that creates a namespace called galasa and installs the operator and relevant ecosystem CRD's use:

kubectl apply -f https://raw.githubusercontent.com/galasa-dev/kubernetes-operator/main/releases/0.18.1/release.yaml

This limits all work to the galasa namespace

If you wish to install the operator and ecosystem in another namespace, please amend the yaml as neccessary.

Ecosystem Install

For installing using the default values for your cluster you can simply apply a yaml like the one found in the examples/basic.yaml. This will use default values for attributes e.g storageClassName

Certain values can be overridden, please see examples/ecosystem_with_overrides.yaml for details

Once the ecosystem have been applied, you can see the state of the ecosystem with a kubectl get galasaecosystem which should show if the ecosystem is ready for work load and the bootstrapURL:

NAME               CREATED                READY   BOOTSTRAPURL
Galasa-Ecosystem   2021-11-22T10:12:21Z   true    http://example.com:30000/bootstrap

Development

Code Generation
# Deepcopy and Client gen
hack/generate-groups.sh all github.com/galasa-dev/kubernetes-operator/pkg/client github.com/dev/kubernetes-operator/pkg/apis "galasaecosystem:v2alpha1" -h hack/boilerplate/boilerplate.go.txt

# Knative Injection clients
hack/generate-knative.sh injection github.com/galasa-dev/kubernetes-operator/pkg/client github.com/galasa-dev/kubernetes-operator/pkg/apis "galasaecosystem:v2alpha1" -h hack/boilerplate/boilerplate.go.txt
Deploying with Ko:
# Build and deploy
ko apply -f config

Directories

Path Synopsis
cmd
operator
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
pkg
apis/galasaecosystem
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/api
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/cps
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/enginecontroller
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/metrics
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/ras
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/resmon
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
apis/galasaecosystem/v2alpha1/toolbox
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
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/galasaecosystem/v2alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/galasaecosystem/v2alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
reconciler/api
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/cps
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/enginecontroller
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/galasaecosystem
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/metrics
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/ras
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/resmon
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
reconciler/toolbox
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project

Jump to

Keyboard shortcuts

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