github cloudposse/atmos 0.19.0

latest releases: v1.72.0, v1.71.0, v1.70.0...
2 years ago
Process `component` attribute for `helmfile`. Add `settings` and `env` sections to `stack config` outputs @aknysh (#40)

what

  • Process component attribute for helmfile
  • Add settings and env sections to atmos stack config outputs
  • Add --config-type=describe parameter to atmos stack config command

why

  • Process component attribute in helmfile commands - make helmfile module the same as the terraform module and allow using the component attribute to reference the base component with default values
 √ . example ⨠ atmos helmfile diff nginx-ingress-2 -s ue2-dev
"environment": "ue2"
"installed": true
"namespace": "eg"
"region": "us-east-2"
"stage": "dev"
"test": false

helmfile --state-values-file ./ue2-dev-nginx-ingress-2.helmfile.vars.yaml diff
rm ./components/helmfile/nginx-ingress/ue2-dev-nginx-ingress-2.helmfile.vars.yaml
  • Add settings and env sections to stack config outputs - make atmos compatible with the latest additions to YAML stack configs

  • Add --config-type=describe parameter to atmos stack config command - show all (deep-merged) sections for a component in one output - helps with debugging YAML configs

√ . example ⨠ atmos stack config nginx-ingress-2 -s ue2-dev --config-type=describe --component-type=helmfile
"backend": {}
"backend-type": "s3"
"command": "helmfile"
"component": "nginx-ingress"
"env": {}
"settings": {}
"vars":
  "environment": "ue2"
  "installed": true
  "namespace": "eg"
  "region": "us-east-2"
  "stage": "dev"
  "test": false
 √ . example ⨠ atmos stack config vpc2 -s ue2-dev --config-type=describe
"backend": {}
"backend-type": "s3"
"command": "terraform"
"component": "vpc"
"env":
  "ENV_TEST_1": "test1_override"
  "ENV_TEST_2": "test2_override"
  "ENV_TEST_3": "test3"
  "ENV_TEST_4": "test4"
"settings":
  "spacelift":
    "autodeploy": true
    "branch": "test"
    "triggers":
    - "a"
    - "b"
    - "c"
    "workspace_enabled": true
  "version": 0
"vars":
  "cidr_block": "10.108.0.0/18"
  "environment": "ue2"
  "namespace": "eg"
  "region": "us-east-2"
  "stage": "dev"
  "test-map":
    "a": "a3"
    "atr":
      "atr1": "1-1"
      "atr2": "2-3"
      "atr3": 3
      "atr4": 4
      "list":
      - "1b"
    "atr-2":
      "atr1": 1
      "atr2": 2
    "b": "b2"
    "c": "c1"
    "d": "d3"
    "e": "e3"
    "g": "g1"
    "list":
    - 4
    - 5
    - 6
    "list2":
    - 1
    - 2
    - 3

related

Don't miss a new atmos release

NewReleases is sending notifications on new releases.