optimize-controller

command module
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README

StormForge Optimize - Controller

Master Go Report Card

Getting Started

Please refer to the documentation for detailed installation instructions: Installing StormForge Optimize.

You will also find a quick start guide and additional information about using StormForge Optimize.

Development

This project was bootstrapped by Kubebuilder and inherits many of the stock conventions.

To run locally: first run make install to add the necessary Custom Resource Definitions (CRDs) to you currently configured cluster.

If you would like to start a local process (inheriting Kubeconfig and StormForge configuration from your current environment), first ensure that any manager in the cluster is disabled:

kubectl scale deployment redsky-controller-manager -n redsky-system --replicas 0
make run

You can also debug using existing images (e.g. the latest CI builds): configure your debugger to pass the following arguments to the Go tools: -ldflags "-X github.com/thestormforge/optimize-controller/internal/setup.Image=ghcr.io/thestormforge/setuptools:edge -X github.com/thestormforge/optimize-controller/internal/setup.ImagePullPolicy=Always".

Alternatively, if you would like create an image and run it in minikube, build the Docker images directly to the minikube host:

eval $(minikube docker-env)
make docker-build
make deploy

To run in a GKE cluster, you will need to push the images to GCR:

export PROJECT_ID=<GCP project ID where your cluster is running>
export TAG=<something unique>
export IMG=us.gcr.io/$PROJECT_ID/optimize-controller:$TAG
export SETUPTOOLS_IMG=us.gcr.io/$PROJECT_ID/setuptools:$TAG
export REDSKYCTL_IMG=us.gcr.io/$PROJECT_ID/redskyctl:$TAG
make docker-build
make docker-push
make deploy

You can also use make tool and bin/redskyctl-$GOOS-$GOARCH init in place of make deploy to use the actual versioned manifests used by the product.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
apps/v1alpha1
Package v1alpha1 contains API Schema definitions for the apps.redskyops v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.redskyops.dev
Package v1alpha1 contains API Schema definitions for the apps.redskyops v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.redskyops.dev
v1alpha1
+k8s:conversion-gen=github.com/thestormforge/optimize-controller/api/v1beta1 Package v1alpha1 contains API Schema definitions for the redskyops v1alpha1 API group +kubebuilder:object:generate=true +groupName=redskyops.dev
+k8s:conversion-gen=github.com/thestormforge/optimize-controller/api/v1beta1 Package v1alpha1 contains API Schema definitions for the redskyops v1alpha1 API group +kubebuilder:object:generate=true +groupName=redskyops.dev
v1beta1
Package v1beta1 contains API Schema definitions for the redskyops v1beta1 API group +kubebuilder:object:generate=true +groupName=redskyops.dev
Package v1beta1 contains API Schema definitions for the redskyops v1beta1 API group +kubebuilder:object:generate=true +groupName=redskyops.dev
internal
version
Package version is used to expose the current version information as populated by the build process.
Package version is used to expose the current version information as populated by the build process.

Jump to

Keyboard shortcuts

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