pkg

package
v0.0.0-...-b6e05e5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

README

pkg

This is a package that offers convenience functionality for working with the cluster API object.

Cluster Validation

On initialization, we run a variety of validation functions to validate the cluster API object.

To add a new validation, add a new function with a name like validateThingYouAreValidating to initapi/validate.go. Your function will need to take as input the cluster object and return an error message if it fails validation. You will also need happy and sad tests to test your new validation, which can be added in initapi/validate_test.go.

To have your validation function run on initialization, you will need to add it to the list of validations found in initapi/init.go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReconciler

func GetReconciler(known *cluster.Cluster, runtimeParameters *RuntimeParameters) (reconciler cloud.Reconciler, err error)

GetReconciler gets the correct Reconciler for the cloud provider currenty used.

Types

type RuntimeParameters

type RuntimeParameters struct {
	AwsProfile string
}

RuntimeParameters contains specific parameters that needs to be passed to each cloud provider to satisfy their specific configurations needs at runtime while using the Reconciler

Directories

Path Synopsis
Package retry exposes retryable runner.
Package retry exposes retryable runner.
Package signals exposes signal handler.
Package signals exposes signal handler.

Jump to

Keyboard shortcuts

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