fixtures

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackendTemplateSecret added in v0.3.1

func NewBackendTemplateSecret(namespace, name string) *v1.Secret

NewBackendTemplateSecret returns a fake backend template secret

func NewCostsReport

func NewCostsReport(configuration *terraformv1alphav1.Configuration) *v1.Secret

NewCostsReport returns a secret used to mock a cost report for a configuration

func NewCostsSecret

func NewCostsSecret(namespace, name string) *v1.Secret

NewCostsSecret returns a fake costs secret

func NewJobTemplateConfigmap

func NewJobTemplateConfigmap(namespace, name string) *v1.ConfigMap

NewJobTemplateConfigmap returns a custom job template configmap

func NewMatchAllPolicyConstraint

func NewMatchAllPolicyConstraint(name string) *terraformv1alphav1.Policy

NewMatchAllPolicyConstraint returns a policy which matches all configurations

func NewNamespace

func NewNamespace(name string) *v1.Namespace

NewNamespace returns a new namespace

func NewPolicy

func NewPolicy(name string) *terraformv1alphav1.Policy

NewPolicy returns an empty policy

func NewTerraformJob

func NewTerraformJob(configuration *terraformv1alphav1.Configuration, namespace, stage string) *batchv1.Job

NewTerraformJob returns a new terraform job

func NewTerraformState

func NewTerraformState(configuration *terraformv1alphav1.Configuration) *v1.Secret

NewTerraformState returns a fake state

func NewValidAWSNotReadyProvider

func NewValidAWSNotReadyProvider(name string, secret *v1.Secret) *terraformv1alphav1.Provider

NewValidAWSNotReadyProvider returns a ready aws provider

func NewValidAWSProvider

func NewValidAWSProvider(name string, secret *v1.Secret) *terraformv1alphav1.Provider

NewValidAWSProvider returns a valid provider for aws

func NewValidAWSProviderSecret

func NewValidAWSProviderSecret(namespace, name string) *v1.Secret

NewValidAWSProviderSecret returns a valid provider secret for aws

func NewValidAWSReadyProvider

func NewValidAWSReadyProvider(name string, secret *v1.Secret) *terraformv1alphav1.Provider

NewValidAWSReadyProvider returns a ready aws provider

func NewValidBucketConfiguration

func NewValidBucketConfiguration(namespace, name string) *terraformv1alphav1.Configuration

NewValidBucketConfiguration returns a valid configuration for aws bucket

Types

This section is empty.

Jump to

Keyboard shortcuts

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