registry_config

package
v1.6.6-prerelease.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCaMapToMapType

func ConvertCaMapToMapType(stringMap map[string]string, originalState types.Map) (types.Map, error)

func CreateRegistryConfigBuilder

func CreateRegistryConfigBuilder(ctx context.Context,
	state *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)

CreateRegistryConfigBuilder creates a ClusterRegistryConfigBuilder from a Terraform state

func PopulateRegistryConfigState

func PopulateRegistryConfigState(inputCluster *cmv1.Cluster, state *RegistryConfig) error

PopulateRegistryConfigState takes a Cluster object from CS in input and fills a Terraform state with the data in it. Returns an error if there is a failure

func RegistryConfigDatasource

func RegistryConfigDatasource() map[string]dsschemadsschema.Attribute

func RegistryConfigResource

func RegistryConfigResource() map[string]schema.Attribute

func RegistryLocationResource

func RegistryLocationResource() map[string]schema.Attribute

func RegistryLocationResourceType

func RegistryLocationResourceType() map[string]attr.Type

func RegistrySourcesResource

func RegistrySourcesResource() map[string]schema.Attribute

func UpdateRegistryConfigBuilder

func UpdateRegistryConfigBuilder(ctx context.Context, state *RegistryConfig,
	plan *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)

UpdateRegistryConfigBuilder returns a ClusterRegistryConfigBuilder or an error starting from the state and a plan

Types

type RegistryConfig

type RegistryConfig struct {
	RegistrySources            RegistrySources    `tfsdk:"registry_sources"`
	AllowedRegistriesForImport []RegistryLocation `tfsdk:"allowed_registries_for_import"`
	AdditionalTrustedCa        types.Map          `tfsdk:"additional_trusted_ca"`
	PlatformAllowlistId        types.String       `tfsdk:"platform_allowlist_id"`
}

type RegistryLocation

type RegistryLocation struct {
	DomainName types.String `tfsdk:"domain_name"`
	Insecure   types.Bool   `tfsdk:"insecure"`
}

type RegistrySources

type RegistrySources struct {
	AllowedRegistries  types.List `tfsdk:"allowed_registries"`
	BlockedRegistries  types.List `tfsdk:"blocked_registries"`
	InsecureRegistries types.List `tfsdk:"insecure_registries"`
}

Jump to

Keyboard shortcuts

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