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 ConstructSpecForClusterScope ¶
func ConstructSpecForClusterScope(d *schema.ResourceData) (spec *packageinstallmodel.VmwareTanzuManageV1alpha1ClusterNamespaceTanzupackageInstallSpec)
func FlattenSpecForClusterScope ¶
func FlattenSpecForClusterScope(spec *packageinstallmodel.VmwareTanzuManageV1alpha1ClusterNamespaceTanzupackageInstallSpec) (data []interface{})
func HasSpecChanged ¶
func HasSpecChanged(d *schema.ResourceData) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.