Documentation ¶
Index ¶
- Constants
- func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
- type Config
- func (c *Config) ApplyDefaults(templateName string, defaults *v1alpha2.TestClusterGKE) error
- func (c *Config) ApplyDefaultsForClusterAccessResources(defaults *v1alpha2.TestClusterGKE) error
- func (c *Config) ApplyDefaultsForTestInfraWorkloads(defaults *v1alpha2.TestClusterGKE) error
- func (c *Config) ExistingTemplates() []string
- func (c *Config) HaveExistingTemplate(name string) bool
- func (c *Config) Load() error
- func (c *Config) RenderAllClusterResources(cluster *v1alpha2.TestClusterGKE) (*unstructured.UnstructuredList, error)
- func (c *Config) RenderClusterAccessResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)
- func (c *Config) RenderClusterCoreResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)
- func (c *Config) RenderPromResourcesAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)
- func (c *Config) RenderTestInfraWorkloads(cluster *v1alpha2.TestClusterGKE) (*unstructured.UnstructuredList, error)
- func (c *Config) RenderTestInfraWorkloadsAsJSON(cluster *v1alpha2.TestClusterGKE) ([]byte, error)
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 (*Config) HaveExistingTemplate ¶
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)
Click to show internal directories.
Click to hide internal directories.