strategy

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S

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

S knows what type of deployments to build based on a given spec

func For

func For(ctx context.Context, jaeger *v1.Jaeger, secrets []corev1.Secret) S

For returns the appropriate Strategy for the given Jaeger instance

func New added in v1.10.0

func New() *S

New constructs a new strategy from scratch

func (S) Accounts added in v1.10.0

func (s S) Accounts() []v1.ServiceAccount

Accounts returns the list of service accounts for this strategy

func (S) ClusterRoleBindings added in v1.14.0

func (s S) ClusterRoleBindings() []rbac.ClusterRoleBinding

ClusterRoleBindings returns the list of cluster role bindings for this strategy

func (S) ConfigMaps added in v1.10.0

func (s S) ConfigMaps() []v1.ConfigMap

ConfigMaps returns the list of config maps for this strategy

func (S) CronJobs added in v1.10.0

func (s S) CronJobs() []batchv1beta1.CronJob

CronJobs returns the list of cron jobs for this strategy

func (S) DaemonSets added in v1.10.0

func (s S) DaemonSets() []appsv1.DaemonSet

DaemonSets returns the list of daemon sets for this strategy

func (S) Dependencies

func (s S) Dependencies() []batchv1.Job

Dependencies returns the list of batches for this strategy that are considered dependencies

func (S) Deployments added in v1.10.0

func (s S) Deployments() []appsv1.Deployment

Deployments returns the list of deployments for this strategy

func (S) Elasticsearches added in v1.10.0

func (s S) Elasticsearches() []esv1.Elasticsearch

Elasticsearches returns the list of elastic search instances for this strategy

func (S) Ingresses added in v1.10.0

func (s S) Ingresses() []v1beta1.Ingress

Ingresses returns the list of ingress objects for this strategy. This might be platform-dependent

func (S) Routes added in v1.10.0

func (s S) Routes() []osv1.Route

Routes returns the list of routes for this strategy. This might be platform-dependent

func (S) Secrets added in v1.10.0

func (s S) Secrets() []v1.Secret

Secrets returns the list of secrets for this strategy

func (S) Services added in v1.10.0

func (s S) Services() []v1.Service

Services returns the list of services for this strategy

func (S) Type added in v1.10.0

func (s S) Type() Type

Type returns the strategy type for the given strategy

func (S) WithAccounts added in v1.10.0

func (s S) WithAccounts(accs []v1.ServiceAccount) S

WithAccounts returns the strategy with the given list of service accounts

func (S) WithClusterRoleBindings added in v1.14.0

func (s S) WithClusterRoleBindings(c []rbac.ClusterRoleBinding) S

WithClusterRoleBindings returns the strategy with the given list of config maps

func (S) WithConfigMaps added in v1.10.0

func (s S) WithConfigMaps(c []v1.ConfigMap) S

WithConfigMaps returns the strategy with the given list of config maps

func (S) WithCronJobs added in v1.10.0

func (s S) WithCronJobs(c []batchv1beta1.CronJob) S

WithCronJobs returns the strategy with the given list of cron jobs

func (S) WithDaemonSets added in v1.10.0

func (s S) WithDaemonSets(d []appsv1.DaemonSet) S

WithDaemonSets returns the strategy with the given list of daemonsets

func (S) WithDependencies added in v1.10.0

func (s S) WithDependencies(deps []batchv1.Job) S

WithDependencies returns the strategy with the given list of dependencies

func (S) WithDeployments added in v1.10.0

func (s S) WithDeployments(deps []appsv1.Deployment) S

WithDeployments returns the strategy with the given list of deployments

func (S) WithElasticsearches added in v1.10.0

func (s S) WithElasticsearches(es []esv1.Elasticsearch) S

WithElasticsearches returns the strategy with the given list of elastic search instances

func (S) WithIngresses added in v1.10.0

func (s S) WithIngresses(i []v1beta1.Ingress) S

WithIngresses returns the strategy with the given list of dependencies

func (S) WithRoutes added in v1.10.0

func (s S) WithRoutes(r []osv1.Route) S

WithRoutes returns the strategy with the given list of routes

func (S) WithSecrets added in v1.10.0

func (s S) WithSecrets(secrets []v1.Secret) S

WithSecrets returns the strategy with the given list of secrets

func (S) WithServices added in v1.10.0

func (s S) WithServices(svcs []v1.Service) S

WithServices returns the strategy with the given list of routes

type Type added in v1.10.0

type Type string

Type represents a specific deployment strategy, like 'all-in-one'

const (

	// AllInOne represents the 'all-in-one' deployment strategy
	AllInOne Type = "allInOne"

	// Production represents the 'production' deployment strategy
	Production Type = "production"

	// Streaming represents the 'streaming' deployment strategy
	Streaming Type = "streaming"
)

Jump to

Keyboard shortcuts

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