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.
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
Click to show internal directories.
Click to hide internal directories.