Skip to content

Instantly share code, notes, and snippets.

@marcel-dias
Created March 20, 2020 21:33
Show Gist options
  • Save marcel-dias/9c72a4c7a17a524d8f6265db121a8ddd to your computer and use it in GitHub Desktop.
Save marcel-dias/9c72a4c7a17a524d8f6265db121a8ddd to your computer and use it in GitHub Desktop.
Fabrikate disable subcomponent stack example

how to test the disable subcomponent feature. Execute the following comands

fab install
fab generate local
fab generate disabled

after that you will be able to compare the generated folders. You should see:

$ ls generated/disabled
my-stack.yaml  pod-info.yaml

$ ls generated/local
elasticsearch.yaml  my-stack.yaml  mysql.yaml  pod-info.yaml
name: my-stack
type: component
subcomponents:
- name: pod-info
type: helm
method: git
source: https://github.com/stefanprodan/podinfo
path: charts/podinfo
- name: elasticsearch
type: helm
method: git
source: https://github.com/helm/charts
path: stable/elasticsearch
- name: mysql
type: helm
method: git
source: https://github.com/helm/charts
path: stable/mysql
subcomponents:
pod-info:
config:
env: local
elasticsearch:
disabled: true
config:
env: local
mysql:
disabled: true
config:
env: local
subcomponents:
pod-info:
config:
env: local
elasticsearch:
config:
env: local
mysql:
config:
env: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment