Documentation
¶
Index ¶
Constants ¶
const ( StatusPlanned = "planned" StatusApplied = "applied" StatusNoOp = "no-op" StatusBlocked = "blocked" StatusDeclined = "declined" // DefaultLinuxImageName is the operator preference applied when no // --image-name is given. It is a NAME, resolved against live Glance // inventory exactly like an explicit selector, so nothing is ever persisted // unless the cloud actually has that image. Image IDs are project-scoped and // must never be baked in (see the stale-image detection in Plan); a name // carries no such risk. When the cloud does not have it, plan falls through // to the ordinary ambiguous path and prints the candidate list. DefaultLinuxImageName = "Ubuntu 24.04" )
Variables ¶
var EnsureProfileAuth = func(ctx context.Context, profile cloudopenstack.Profile, name string) (cloudopenstack.AppCredential, cloudopenstack.Profile, error) { return cloudopenstack.EnsureApplicationCredential(ctx, profile, cloudopenstack.NewAppCredentialProvisioner(), name) }
EnsureProfileAuth is the seam through which the command layer obtains a persistable application credential for a cloud profile, minting and persisting one into clouds.yaml when the profile lacks an ID/secret pair. Tests replace it to exercise the auto-import flow without a live Keystone.
Functions ¶
This section is empty.
Types ¶
type ApplyPersistence ¶
type ApplyPersistence struct {
FileSystem fs.FileSystem
Validate func(context.Context, *v2.Config) error
}
ApplyPersistence persists a non-empty provider patch after prospective validation. It deliberately has no remote mutation capability.
type AuthImport ¶
type Result ¶
type Result struct {
SchemaVersion int `json:"schema_version" yaml:"schema_version"`
Operation string `json:"operation" yaml:"operation"`
Status string `json:"status" yaml:"status"`
Cluster string `json:"cluster" yaml:"cluster"`
Provider string `json:"provider" yaml:"provider"`
CloudProfile string `json:"cloud_profile" yaml:"cloud_profile"`
InternalNetworkMode string `json:"internal_network_mode,omitempty" yaml:"internal_network_mode,omitempty"`
Changes []Change `json:"changes" yaml:"changes"`
Selections []Selection `json:"selections" yaml:"selections"`
Warnings []string `json:"warnings" yaml:"warnings"`
RemoteActions []string `json:"remote_actions" yaml:"remote_actions"`
SensitiveValuesRedacted bool `json:"sensitive_values_redacted" yaml:"sensitive_values_redacted"`
}
type Selection ¶
type Selection struct {
Field string `json:"field" yaml:"field"`
Candidates []cloudopenstack.Resource `json:"candidates" yaml:"candidates"`
}