controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppComparator

type AppComparator interface {
	CompareAppState(server string, namespace string, targetObjs []*unstructured.Unstructured, app *v1alpha1.Application) (*v1alpha1.ComparisonResult, error)
}

AppComparator defines methods which allow to compare application spec and actual application state.

func NewKsonnetAppComparator

func NewKsonnetAppComparator(clusterService cluster.ClusterServiceServer) AppComparator

NewKsonnetAppComparator creates new instance of Ksonnet app comparator

type ApplicationController

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

ApplicationController is the controller for application resources.

func NewApplicationController

func NewApplicationController(
	namespace string,
	kubeClientset kubernetes.Interface,
	applicationClientset appclientset.Interface,
	repoClientset reposerver.Clientset,
	apiRepoService apireposerver.RepositoryServiceServer,
	apiClusterService *cluster.Server,
	appComparator AppComparator,
	appResyncPeriod time.Duration,
	config *ApplicationControllerConfig,
) *ApplicationController

NewApplicationController creates new instance of ApplicationController.

func (*ApplicationController) Run

func (ctrl *ApplicationController) Run(ctx context.Context, appWorkers int)

Run starts the Application CRD controller.

type ApplicationControllerConfig

type ApplicationControllerConfig struct {
	InstanceID string
	Namespace  string
}

type KsonnetAppComparator

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

KsonnetAppComparator allows to compare application using KSonnet CLI

func (*KsonnetAppComparator) CompareAppState

func (ks *KsonnetAppComparator) CompareAppState(
	server string,
	namespace string,
	targetObjs []*unstructured.Unstructured,
	app *v1alpha1.Application) (*v1alpha1.ComparisonResult, error)

CompareAppState compares application spec and real app state using KSonnet

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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