spec

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageRefKey          = "package_ref"
	RoleBindingScopeKey    = "role_binding_scope"
	InlineValuesKey        = "inline_values"
	PackageMetadataNameKey = "package_metadata_name"
	VersionSelectionKey    = "version_selection"
	ConstraintsKey         = "constraints"
	SpecKey                = "spec"
)

Variables

View Source
var (
	SpecSchema = &schema.Schema{
		Type:        schema.TypeList,
		Description: "spec for package install.",
		Required:    true,
		MinItems:    1,
		MaxItems:    1,
		Elem: &schema.Resource{
			Schema: map[string]*schema.Schema{
				PackageRefKey: PackageRefKeySpec,
				RoleBindingScopeKey: {
					Type:        schema.TypeString,
					Description: "Role binding scope for service account which will be used by Package Install.",
					Computed:    true,
				},
				InlineValuesKey: {
					Type:        schema.TypeMap,
					Description: "Inline values to configure the Package Install.",
					Optional:    true,
					Sensitive:   true,
				},
			},
		},
	}

	PackageRefKeySpec = &schema.Schema{
		Type:        schema.TypeList,
		Description: "Reference to the Package which will be installed.",
		Required:    true,
		MaxItems:    1,
		Elem: &schema.Resource{
			Schema: map[string]*schema.Schema{
				PackageMetadataNameKey: {
					Type:        schema.TypeString,
					Description: "Name of the Package Metadata.",
					Required:    true,
					ForceNew:    true,
				},
				VersionSelectionKey: versionSelectionSpec,
			},
		},
	}
)

Functions

func HasSpecChanged

func HasSpecChanged(d *schema.ResourceData) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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