services

package
v1.16.2-keleustes.2019... Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound indicates the release was not found.
	ErrNotFound = errors.New("Resource not found")

	// OwnershipMismatch indicates that one of the subresources does
	// not have the right ownership.
	OwnershipMismatch = errors.New("Ownership Mismatch")

	// Error detected during SyncResource
	SyncError = errors.New("Sync Error")

	// Error detected during InstallResource
	InstallError = errors.New("Install Error")

	// Error detected during UninstallResource
	UninstallError = errors.New("Uninstall Error")

	// Error detected during UpdateResource
	UpdateError = errors.New("Update Error")

	// Error detected during ReconcileResource
	ReconcileError = errors.New("Reconcile Error")
)

Functions

func SortByInstallOrder

func SortByInstallOrder(manifests []unstructured.Unstructured) []unstructured.Unstructured

SortByInstallOrder sorts manifests in InstallOrder

func SortByUninstallOrder

func SortByUninstallOrder(manifests []unstructured.Unstructured) []unstructured.Unstructured

SortByUninstallOrder sorts manifests in UninstallOrder

Types

type DeletePhaseManager

type DeletePhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

DeletePhaseManager manages the DeletePhase Phase of an OpenstackServiceLifeCycle

type DependentResourceWatchUpdater

type DependentResourceWatchUpdater func([]unstructured.Unstructured) error

func BuildDependentResourceWatchUpdater

func BuildDependentResourceWatchUpdater(mgr manager.Manager, owner *unstructured.Unstructured,
	c controller.Controller, dependentPredicate crtpredicate.Funcs) DependentResourceWatchUpdater

BuildDependentResourcesWatchUpdater builds a function that adds watches for resources in released Helm charts.

type GenericChartKind

type GenericChartKind string

GenericChart Kind

const (
	GenericFlows  GenericChartKind = "genericflows"
	GenericPhases GenericChartKind = "genericphases"
)

Describe the possible values of an GenericChart

func (GenericChartKind) String

func (x GenericChartKind) String() string

String converts a GenericChartKind to a printable string

type InstallPhaseManager

type InstallPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

InstallPhaseManager manages the InstallPhase Phase of an OpenstackServiceLifeCycle

type OperationalPhaseManager

type OperationalPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

OperationalPhaseManager manages the OperationalPhase Phase of an OpenstackServiceLifeCycle

type OslcManager

type OslcManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.LifecycleFlow, error)
	UpdateResource(context.Context) (*av1.LifecycleFlow, *av1.LifecycleFlow, error)
	ReconcileResource(context.Context) (*av1.LifecycleFlow, error)
	UninstallResource(context.Context) (*av1.LifecycleFlow, error)
}

Manager manages a Openstack Service . It can deploy, upgrade, backup, restore

type OslcManagerFactory

type OslcManagerFactory interface {
	NewOslcManager(r *av1.Oslc) OslcManager
}

ManagerFactory creates Managers that are specific to custom resources.

type OwnerRefHelmRenderer

type OwnerRefHelmRenderer interface {
	RenderFile(name string, namespace string, fileName string) (*av1.SubResourceList, error)
	RenderChart(name string, namespace string, chartLocation string) (*av1.SubResourceList, error)
}

OwnerRefHelmRenderer

type PhaseManagerFactory

type PhaseManagerFactory interface {
	NewPlanningPhaseManager(r *av1.PlanningPhase) PlanningPhaseManager
	NewInstallPhaseManager(r *av1.InstallPhase) InstallPhaseManager
	NewTestPhaseManager(r *av1.TestPhase) TestPhaseManager
	NewTrafficRolloutPhaseManager(r *av1.TrafficRolloutPhase) TrafficRolloutPhaseManager
	NewOperationalPhaseManager(r *av1.OperationalPhase) OperationalPhaseManager
	NewTrafficDrainPhaseManager(r *av1.TrafficDrainPhase) TrafficDrainPhaseManager
	NewUpgradePhaseManager(r *av1.UpgradePhase) UpgradePhaseManager
	NewRollbackPhaseManager(r *av1.RollbackPhase) RollbackPhaseManager
	NewDeletePhaseManager(r *av1.DeletePhase) DeletePhaseManager
}

ManagerFactory creates Managers that are specific to custom resources.

type PlanningPhaseManager

type PlanningPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

PlanningPhaseManager manages the PlanningPhase Phase of an OpenstackServiceLifeCycle

type RollbackPhaseManager

type RollbackPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

RollbackPhaseManager manages the RollbackPhase Phase of an OpenstackServiceLifeCycle

type SortOrder

type SortOrder []string

SortOrder is an ordering of Kinds.

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

InstallOrder is the order in which manifests should be installed (by Kind).

Those occurring earlier in the list get installed before those occurring later in the list.

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",
	"PodDisruptionBudget",
	"PodSecurityPolicy",
	"LimitRange",
	"ResourceQuota",
	"Namespace",
}

UninstallOrder is the order in which manifests should be uninstalled (by Kind).

Those occurring earlier in the list get uninstalled before those occurring later in the list.

type TestPhaseManager

type TestPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

TestPhaseManager manages the TestPhase Phase of an OpenstackServiceLifeCycle

type TrafficDrainPhaseManager

type TrafficDrainPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

TrafficDrainPhaseManager manages the TrafficDrainPhase Phase of an OpenstackServiceLifeCycle

type TrafficRolloutPhaseManager

type TrafficRolloutPhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

TrafficRolloutPhaseManager manages the TrafficRolloutPhase Phase of an OpenstackServiceLifeCycle

type UpgradePhaseManager

type UpgradePhaseManager interface {
	ResourceName() string
	IsInstalled() bool
	IsUpdateRequired() bool
	SyncResource(context.Context) error
	InstallResource(context.Context) (*av1.SubResourceList, error)
	UpdateResource(context.Context) (*av1.SubResourceList, *av1.SubResourceList, error)
	ReconcileResource(context.Context) (*av1.SubResourceList, error)
	UninstallResource(context.Context) (*av1.SubResourceList, error)
}

UpgradePhaseManager manages the UpgradePhase Phase of an OpenstackServiceLifeCycle

Jump to

Keyboard shortcuts

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