nstemplatetiers

package
v0.0.0-...-1ceadb6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTiers

func GenerateTiers(s *runtime.Scheme, ensureObject EnsureObject, namespace string, metadata map[string]string, files map[string][]byte) error

GenerateTiers processes the given metadata and files, generates TierTemplates and NSTemplateTiers, and ensures them via the provided EnsureObject function

Types

type BasedOnTier

type BasedOnTier struct {
	Revision   string
	From       string                 `json:"from"`
	Parameters []templatev1.Parameter `json:"parameters,omitempty" protobuf:"bytes,4,rep,name=parameters"`
}

BasedOnTier defines which tier is supposed to be reused and which parameters should be modified An example:

from: base parameters:

  • name: IDLER_TIMEOUT_SECONDS value: 43200

Which defines that for creating baseextendedidling tier the base tier should be used and the parameter IDLER_TIMEOUT_SECONDS should be set to 43200

type EnsureObject

type EnsureObject func(toEnsure runtimeclient.Object, canUpdate bool, tierName string) (bool, error)

type TierGenerator

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

Jump to

Keyboard shortcuts

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