crdupdater

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRole

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

ClusterRole stores the configuration to add or delete the cluster role

func NewClusterRole

func NewClusterRole(config *CommonConfig, clusterRoles []*components.ClusterRole) (*ClusterRole, error)

NewClusterRole returns the cluster role

type ClusterRoleBinding

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

ClusterRoleBinding stores the configuration to add or delete the cluster role binding

func NewClusterRoleBinding

func NewClusterRoleBinding(config *CommonConfig, clusterRoleBindings []*components.ClusterRoleBinding) (*ClusterRoleBinding, error)

NewClusterRoleBinding returns the cluster role binding

type CommonConfig

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

CommonConfig stores the common configuration for add, patch or remove the components for update events

func NewCRUDComponents

func NewCRUDComponents(kubeConfig *rest.Config, kubeClient *kubernetes.Clientset, dryRun bool, isPatched bool, namespace string,
	version string, components *api.ComponentList, labelSelector string, isClusterLevelPermEnabled bool) *CommonConfig

NewCRUDComponents returns the common configuration which will be used to add, patch or remove the components

func (*CommonConfig) AddController

func (c *CommonConfig) AddController(name string, controller horizonapi.DeployerControllerInterface)

AddController will add the controller to the updater

func (*CommonConfig) CRUDComponents

func (c *CommonConfig) CRUDComponents() (bool, []error)

CRUDComponents will add, update or delete components

type ConfigMap

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

ConfigMap stores the configuration to add or delete the config map object

func NewConfigMap

func NewConfigMap(config *CommonConfig, configMaps []*components.ConfigMap) (*ConfigMap, error)

NewConfigMap returns the config map

type CustomResourceDefinition

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

CustomResourceDefinition stores the configuration to add or delete the custom resource definition

func NewCustomResourceDefinition

func NewCustomResourceDefinition(config *CommonConfig, customResourceDefinitions []*components.CustomResourceDefinition) (*CustomResourceDefinition, error)

NewCustomResourceDefinition returns the custom resource defintion

type Deployment

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

Deployment stores the configuration to add or delete the deployment object

func NewDeployment

func NewDeployment(config *CommonConfig, deployments []*components.Deployment) (*Deployment, error)

NewDeployment returns the deployment

type Namespace

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

Namespace stores the configuration to add or delete the namespace

func NewNamespace

func NewNamespace(config *CommonConfig) (*Namespace, error)

NewNamespace returns the namespace

type PersistentVolumeClaim

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

PersistentVolumeClaim stores the configuration to add or delete the persistent volume claim object

func NewPersistentVolumeClaim

func NewPersistentVolumeClaim(config *CommonConfig, persistentVolumeClaims []*components.PersistentVolumeClaim) (*PersistentVolumeClaim, error)

NewPersistentVolumeClaim returns the persistent volume claim

type ReplicationController

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

ReplicationController stores the configuration to add or delete the replication controller object

func NewReplicationController

func NewReplicationController(config *CommonConfig, replicationControllers []*components.ReplicationController) (*ReplicationController, error)

NewReplicationController returns the replication controller

type Role

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

Role stores the configuration to add or delete the role

func NewRole

func NewRole(config *CommonConfig, roles []*components.Role) (*Role, error)

NewRole returns the role

type RoleBinding

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

RoleBinding stores the configuration to add or delete the role binding

func NewRoleBinding

func NewRoleBinding(config *CommonConfig, roleBindings []*components.RoleBinding) (*RoleBinding, error)

NewRoleBinding returns the role binding

type Route

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

Route stores the configuration to add or delete the route

func NewRoute

func NewRoute(config *CommonConfig, routes []*api.Route) (*Route, error)

NewRoute returns the route configuration

type Secret

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

Secret stores the configuration to add or delete the secret object

func NewSecret

func NewSecret(config *CommonConfig, secrets []*components.Secret) (*Secret, error)

NewSecret returns the secret

type Service

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

Service stores the configuration to add or delete the service object

func NewService

func NewService(config *CommonConfig, services []*components.Service) (*Service, error)

NewService returns the service

type ServiceAccount

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

ServiceAccount stores the configuration to add or delete the service account

func NewServiceAccount

func NewServiceAccount(config *CommonConfig, serviceAccounts []*components.ServiceAccount) (*ServiceAccount, error)

NewServiceAccount returns the service account

type UpdateComponents

type UpdateComponents interface {
	// contains filtered or unexported methods
}

UpdateComponents consist of methods to add, patch or remove the components for update events

type Updater

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

Updater handles in updating the components

func NewUpdater

func NewUpdater(dryRun bool, isPatched bool) *Updater

NewUpdater will create the specification that is used for updating the components

func (*Updater) AddUpdater

func (u *Updater) AddUpdater(updater UpdateComponents)

AddUpdater will add the updater to the list

func (*Updater) Update

func (u *Updater) Update() (bool, error)

Update add or remove the components

Jump to

Keyboard shortcuts

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