ev2config

package
v0.0.0-...-a8fc514 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 5 Imported by: 6

README

Ev2 Central Configuration

We want to provide access to the Ev2 central configuration in templatize local runs using pipeline configurations. Furthermore, we want to do this without requiring that users PIM to higher levels of privilege required to access the true configuration using the ev2 CLI, so we can store a copy of the configuration in this repo and use it as necessary. However, we want to make sure that we are not accidentally leaking anything important from this configuration, so we 'sanitize' the inputs to strip out just the fields we need.

Accessing Central Configuration

It is challenging to automate the download of central configuration files from Ev2. While the ev2 CLI does work for public cloud values, an escort and SAW would be required to use it for sovereign clouds. Use the portal to access the values instead and populate public.config.json and ff.config.json before sanitizing them.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllContexts

func AllContexts() (map[string][]string, error)

func GetDefaultRegionForCloud

func GetDefaultRegionForCloud(cloud cmdutils.RolloutCloud) (string, error)

func ResolveConfig

func ResolveConfig(cloud, region string) (types.Configuration, error)

func ResolveConfigForCloud

func ResolveConfigForCloud(cloud string) (types.Configuration, error)

Types

type SanitizedCloudConfig

type SanitizedCloudConfig struct {
	Defaults types.Configuration            `json:"defaults"`
	Regions  map[string]types.Configuration `json:"regions"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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