Skip to content

Latest commit

Β 

History

History
61 lines (57 loc) Β· 2.7 KB

README.md

File metadata and controls

61 lines (57 loc) Β· 2.7 KB

Simple example

This example project consists of two environments (dev and prod) with a single helm chart.

File tree

.
β”œβ”€β”€ envs
β”‚Β Β  β”œβ”€β”€ 'env-data.ytt.yaml' # shared environment configuration
β”‚Β Β  β”œβ”€β”€ dev
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ _apps
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── httpbingo
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”œβ”€β”€ vendir
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”‚Β Β  └── 'vendir-data.ytt.yaml'  # overwrite helm chart version for dev environment
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── vendor # vendored helm chart
β”‚Β Β  β”‚Β Β  └── 'env-data.ytt.yaml' # environment configuration dev
β”‚Β Β  └── prod
β”‚Β Β      β”œβ”€β”€ _apps
β”‚Β Β      β”‚Β Β  └── httpbingo
β”‚Β Β      β”‚Β Β      β”œβ”€β”€ helm
β”‚Β Β      β”‚Β Β      β”‚Β Β  └── 'httpbingo.yaml' # overwrite helm chart values for prod
β”‚Β Β      β”‚Β Β      └── vendor # vendored helm chart
β”‚Β Β      └── 'env-data.ytt.yaml' # environment configuration prod
β”œβ”€β”€ prototypes
β”‚Β Β  └── httpbingo
β”‚Β Β      β”œβ”€β”€ helm
β”‚Β Β      β”‚Β Β  └── 'httpbingo.yaml' # helm default values for all environments
β”‚Β Β      └── vendir
β”‚Β Β          β”œβ”€β”€ 'base.ytt.yaml' # templated vendir config
β”‚Β Β          └── 'vendir-data.ytt.yaml' # vendir configuration, e.g. helm chart url and version (overwritten for dev)
└── rendered  # rendered files for all enviroments
    β”œβ”€β”€ argocd # argocd app definitionas
    β”‚Β Β  β”œβ”€β”€ mykso-dev
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ 'app-httpbingo.yaml'
    β”‚Β Β  β”‚Β Β  └── 'env-mykso-dev.yaml'
    β”‚Β Β  └── mykso-prod
    β”‚Β Β      β”œβ”€β”€ 'app-httpbingo.yaml'
    β”‚Β Β      └── 'env-mykso-prod.yaml'
    └── envs # rendered manifests
        β”œβ”€β”€ mykso-dev
        β”‚Β Β  └── httpbingo
        β”‚Β Β      β”œβ”€β”€ 'deployment-httpbingo.yaml'
        β”‚Β Β      β”œβ”€β”€ 'service-httpbingo.yaml'
        β”‚Β Β      └── 'serviceaccount-httpbingo.yaml'
        └── mykso-prod
            └── httpbingo
                β”œβ”€β”€ 'deployment-httpbingo.yaml'
                β”œβ”€β”€ 'service-httpbingo.yaml'
                └── 'serviceaccount-httpbingo.yaml'