holos-run / holos

Holos - The Holistic platform manager
https://holos.run
Apache License 2.0
19 stars 0 forks source link

(#175) Add podinfo oci example #177

Closed jeffmccune closed 5 months ago

jeffmccune commented 5 months ago

This patch adds to more example helm chart based components. podinfo installs as a normal https repository based helm chart. podinfo-oci uses an oci image to manage the helm chart.

The way holos handls OCI images is subtle, so it's good to include an example right out of the chute. Github actions uses OCI images for example.

❯ holos generate component helm podinfo-oci --help
Podinfo is a tiny web application made with Go that showcases best practices of running microservices in Kubernetes.

Usage:
  holos generate component helm podinfo-oci [flags]

Flags:
      --chart string               chart name (default "oci://ghcr.io/stefanprodan/charts/podinfo")
      --component-version string   component version (default "6.6.2")
      --name string                component name (default "podinfo-oci")
      --namespace string           namespace (default "default")
  -h, --help                       help for podinfo-oci
  -v, --version                    version for podinfo-oci

Global Flags:
      --log-drop strings    log attributes to drop (example "user-agent,version")
      --log-format string   log format (text|json) (default "text")
      --log-level string    log level (debug|info|warn|error) (default "info")
❯ holos generate component helm --help
generate a helm component from a schematic

Usage:
  holos generate component helm [command]

Available Commands:
  cert-manager cloud native certificate management
  podinfo      simple helm chart example
  podinfo-oci  oci helm chart example

Flags:
  -h, --help      help for helm
  -v, --version   version for helm

Global Flags:
      --log-drop strings    log attributes to drop (example "user-agent,version")
      --log-format string   log format (text|json) (default "text")
      --log-level string    log level (debug|info|warn|error) (default "info")

Use "holos generate component helm [command] --help" for more information about a command.