Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) (string, error)
- func NewConsoleLinkForUI(namespace string, href string) *consolev1.ConsoleLink
- func NewDeploymentForUI(namespace string, imageAccount string, imageVersion string) *coreappsv1.Deployment
- func NewRouteForUI(namespace string) *routev1.Route
- func NewServiceForUI(namespace string) *corev1.Service
- type ReconcileStarterKit
Constants ¶
const DefaultUIImageAccount = "ibmcom"
DefaultUIImageAccount the Docker Hub account hosting the UI image. TODO this needs to live in an IBM account eventually
const DefaultUIImageVersion = "0.1.0"
DefaultUIImageVersion The version of the UI image to use
const DockerRegistryURL = "docker-registry.default.svc:5000/"
DockerRegistryURL The URL of the Docker Hub registry accessible within the operator deployment
const SwaggerUIName = "starter-kit-operator-swagger-ui"
SwaggerUIName is the name of Swagger UI resources
const UIName = "starter-kit-operator-ui"
UIName is the name of most main UI resources
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 ¶
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 ¶
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 ¶
NewRouteForUI returns a new Route for the skit operator UI
func NewServiceForUI ¶
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 ¶
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.