config

package
v0.0.0-...-d10fae5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterAccessResourcesTemplateName = "iam"
	TestInfraWorkloadsTemplateName     = "infra"
	PromResourcesTemplateName          = "prom"
)

Variables

This section is empty.

Functions

func ToUnstructured

func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)

ToUnstructured convers runtime.Object so that it can be appended to UnstructuredList with all other resouces

Types

type Config

type Config struct {
	BaseDirectory string
	// contains filtered or unexported fields
}

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(templateName string, defaults *v1alpha2.TestClusterGKE) error

func (*Config) ApplyDefaultsForClusterAccessResources

func (c *Config) ApplyDefaultsForClusterAccessResources(defaults *v1alpha2.TestClusterGKE) error

func (*Config) ApplyDefaultsForTestInfraWorkloads

func (c *Config) ApplyDefaultsForTestInfraWorkloads(defaults *v1alpha2.TestClusterGKE) error

func (*Config) ExistingTemplates

func (c *Config) ExistingTemplates() []string

func (*Config) HaveExistingTemplate

func (c *Config) HaveExistingTemplate(name string) bool

func (*Config) Load

func (c *Config) Load() error

func (*Config) RenderAllClusterResources

func (c *Config) RenderAllClusterResources(cluster *v1alpha2.TestClusterGKE) (*unstructured.UnstructuredList, error)

func (*Config) RenderClusterAccessResourcesAsJSON

func (c *Config) RenderClusterAccessResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)

func (*Config) RenderClusterCoreResourcesAsJSON

func (c *Config) RenderClusterCoreResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)

func (*Config) RenderPromResourcesAsJSON

func (c *Config) RenderPromResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)

func (*Config) RenderTestInfraWorkloads

func (c *Config) RenderTestInfraWorkloads(cluster *v1alpha2.TestClusterGKE) (*unstructured.UnstructuredList, error)

func (*Config) RenderTestInfraWorkloadsAsJSON

func (c *Config) RenderTestInfraWorkloadsAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)

Jump to

Keyboard shortcuts

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