validate

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validate mirrors Terraform locals.tf node-arch derivation and the homogeneous-cluster precondition so mixed-arch tfvars fail in offline tests without a live AWS plan.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerivedNodeArch

func DerivedNodeArch(instanceType string) string

DerivedNodeArch returns amd64 or arm64 from the instance type alone.

func ExplicitArchMatchesInstance

func ExplicitArchMatchesInstance(explicit, instanceType string) bool

ExplicitArchMatchesInstance mirrors Terraform's guard that prevents selecting arm artifacts/AMIs for x86 instances or x86 artifacts/AMIs for Graviton.

func FirecrackerUpstreamArch

func FirecrackerUpstreamArch(clusterArch string) string

FirecrackerUpstreamArch maps cluster arch to Firecracker release bucket arch.

func HomogeneousClusterArch

func HomogeneousClusterArch(nodeArch map[string]string) string

HomogeneousClusterArch returns the single arch when all nodes agree, or "".

func NodeArch

func NodeArch(explicit, instanceType string) string

NodeArch returns amd64 or arm64 from an explicit arch field or instance type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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