starterkit

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUIImageAccount = "ibmcom"

DefaultUIImageAccount the Docker Hub account hosting the UI image. TODO this needs to live in an IBM account eventually

View Source
const DefaultUIImageVersion = "0.1.0"

DefaultUIImageVersion The version of the UI image to use

View Source
const DockerRegistryURL = "docker-registry.default.svc:5000/"

DockerRegistryURL The URL of the Docker Hub registry accessible within the operator deployment

View Source
const SwaggerUIName = "starter-kit-operator-swagger-ui"

SwaggerUIName is the name of Swagger UI resources

View Source
const UIName = "starter-kit-operator-ui"

UIName is the name of most main UI resources

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new StarterKit Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateRandomString

func GenerateRandomString(s int) (string, error)

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func NewConsoleLinkForUI

func NewConsoleLinkForUI(namespace string, href string) *consolev1.ConsoleLink

NewConsoleLinkForUI returns a new ConsoleLink for the starter kit operator UI

func NewDeploymentForUI

func NewDeploymentForUI(namespace string, imageAccount string, imageVersion string) *coreappsv1.Deployment

NewDeploymentForUI returns a new DeploymentConfig for the skit operator UI

func NewRouteForUI

func NewRouteForUI(namespace string) *routev1.Route

NewRouteForUI returns a new Route for the skit operator UI

func NewServiceForUI

func NewServiceForUI(namespace string) *corev1.Service

NewServiceForUI returns a new Service for the skit operator UI

Types

type ReconcileStarterKit

type ReconcileStarterKit struct {
	// contains filtered or unexported fields
}

ReconcileStarterKit reconciles a StarterKit object

func (*ReconcileStarterKit) Reconcile

func (r *ReconcileStarterKit) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a StarterKit object and makes changes based on the state read and what is in the StarterKit.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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