Documentation ¶
Index ¶
- func ParseMappedFileContents(mappedContents map[string]string) ([]*unstructured.Unstructured, error)
- func ParseObjects(data []byte) ([]*unstructured.Unstructured, error)
- func SortObjects(objects []*unstructured.Unstructured, order SortOrder)
- type Controller
- type ResourceFactory
- type SortOrder
- type Source
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)
}
Click to show internal directories.
Click to hide internal directories.