Skip to content

Instantly share code, notes, and snippets.

@MikaelSmith
Last active January 30, 2021 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikaelSmith/5c05aed753e38be57c5cdb0ce1394a66 to your computer and use it in GitHub Desktop.
Save MikaelSmith/5c05aed753e38be57c5cdb0ce1394a66 to your computer and use it in GitHub Desktop.
make packaging with patterns
charts/%: charts/%/*
touch -r $@/$$(ls -Lt $@ | head -n1) $@
%-${ver}.tgz: charts/%
helm package $<
charts
├── postgres
│   ├── Chart.yaml
│   ├── templates
│   │   ├── _helpers.tpl
│   │   ├── networkpolicy.yaml
│   │   ├── poddisruptionbudget.yaml
│   │   ├── service.yaml
│   │   └── statefulset.yaml
│   └── values.yaml
└── puppet-enterprise
├── Chart.yaml
├── charts
│   ├── pe-console-services
│   │   ├── Chart.yaml
│   │   ├── templates
│   │   │   ├── networkpolicy.yaml
│   │   │   ├── service.yaml
│   │   │   └── statefulset.yaml
│   │   └── values.yaml
│   ├── pe-orchestration-services
│   │   ├── Chart.yaml
│   │   ├── templates
│   │   │   ├── networkpolicy.yaml
│   │   │   ├── service.yaml
│   │   │   └── statefulset.yaml
│   │   └── values.yaml
│   ├── pe-postgres
│   │   ├── Chart.yaml
│   │   ├── templates
│   │   │   ├── _initcontainer.tpl
│   │   │   ├── credentials-secret.yaml
│   │   │   └── initdb-configmap.yaml
│   │   └── values.yaml
│   ├── pe-puppetdb
│   │   ├── Chart.yaml
│   │   ├── templates
│   │   │   ├── networkpolicy.yaml
│   │   │   ├── service.yaml
│   │   │   └── statefulset.yaml
│   │   └── values.yaml
│   ├── pe-puppetserver
│   │   ├── Chart.yaml
│   │   ├── templates
│   │   │   ├── networkpolicy.yaml
│   │   │   ├── service.yaml
│   │   │   └── statefulset.yaml
│   │   └── values.yaml
│   └── postgres -> ../../postgres
├── templates
│   ├── _helpers.tpl
│   ├── init-job-account.yaml
│   ├── init-job.yaml
│   ├── secret.yaml
│   └── ssl-generation-configmap.yaml
└── values.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment