instance

package
v0.0.0-...-0118a35 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0, MIT Imports: 41 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMappedFileContents

func ParseMappedFileContents(mappedContents map[string]string) ([]*unstructured.Unstructured, error)

func ParseObjects

func ParseObjects(data []byte) ([]*unstructured.Unstructured, error)

func SortObjects

func SortObjects(objects []*unstructured.Unstructured, order SortOrder)

Types

type Controller

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

func NewController

func NewController(
	log *logrus.Entry,
	kubeclientset kubernetes.Interface,
	bouquetclientset clientset.Interface,
	gardenclientset garden.Interface,
	dynamicclient dynamic.Interface,
	restMapper meta.RESTMapper,
	addonInstanceInformer v1alpha1informers.AddonInstanceInformer,
	addonManifestInformer v1alpha1informers.AddonManifestInformer,
) *Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

type ResourceFactory

type ResourceFactory func(resource *metav1.APIResource, namespace string) (dynamic.ResourceInterface, error)

type SortOrder

type SortOrder []string
var InstallOrder SortOrder = []string{
	"Namespace",
	"ResourceQuota",
	"LimitRange",
	"Secret",
	"ConfigMap",
	"StorageClass",
	"PersistentVolume",
	"PersistentVolumeClaim",
	"ServiceAccount",
	"CustomResourceDefinition",
	"ClusterRole",
	"ClusterRoleBinding",
	"Role",
	"RoleBinding",
	"Service",
	"DaemonSet",
	"Pod",
	"ReplicationController",
	"ReplicaSet",
	"Deployment",
	"StatefulSet",
	"Job",
	"CronJob",
	"Ingress",
	"APIService",
}
var UninstallOrder SortOrder = []string{
	"APIService",
	"Ingress",
	"Service",
	"CronJob",
	"Job",
	"StatefulSet",
	"Deployment",
	"ReplicaSet",
	"ReplicationController",
	"Pod",
	"DaemonSet",
	"RoleBinding",
	"Role",
	"ClusterRoleBinding",
	"ClusterRole",
	"CustomResourceDefinition",
	"ServiceAccount",
	"PersistentVolumeClaim",
	"PersistentVolume",
	"StorageClass",
	"ConfigMap",
	"Secret",
	"LimitRange",
	"ResourceQuota",
	"Namespace",
}

type Source

type Source interface {
	Apply(instance *v1alpha1.AddonInstance) ([]*unstructured.Unstructured, error)
}

Jump to

Keyboard shortcuts

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