templatize

command module
v0.0.0-...-fd200ee Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

ARO HCP Templatize Tooling

Local Development

  • Get config values
  • Create output folder if doesn't exist
  • Generate output file using input template file and config values
  • Command example

For local development we share on subscription. We use the current username as region stamp to generate unique resourcegroup names.

~/aro/ARO-HCP/tooling/templatize$ go run . generate --config-file="testdata/config.yaml" --input="testdata/helm.sh" --output="output" --cloud="public" --deploy-env="dev" --region="taiwan" --region-stamp=${USER} --cx-stamp="1"

      --config-file string   (Required) config file path
      --input string         (Required) input file path
      --output string        (Required) output file path
      --cloud string         (Required) the cloud (public, fairfax)
      --deploy-env string    (Required) the deploy environment
      --region string        (Required) resources location
      --region-stamp string  (Required) stamp of a region
      --cx-stamp string      (Required) stamp of a CX underlay

To inspect the actual config variables available during templating with the generate command, use the inspect command.

~/aro/ARO-HCP/tooling/templatize$ go run . inspect --config-file="testdata/config.yaml" --cloud="public" --deploy-env="dev" --region="taiwan" --region-stamp=${USER} --cx-stamp="1"

Config

  • Retrieve values from a single configuration file according to the cloud, environment, and region.
  • Replace region, regionStamp and cxStamp values.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
pkg
aks
ev2

Jump to

Keyboard shortcuts

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