Flow Control 16 ཁૉ ֓ཁ IF / ELSE IFΛͬͨ݅ذ͕Մೳ WITH มͷείʔϓఆٛΛมߋՄೳ RANGE Ϧετͷݸͷϧʔϓॲཧ͕Մೳ DEFINE มΛఆٛ͢ΔɻTEMPLATEͱΈ߹ΘͤΔ TEMPLATE มΛಡΈࠐΉɻDEFINEͱΈ߹ΘͤΔ INCLUDE มΛಡΈࠐΉɻYAMLܗࣜʹ͍͑͢ ϓϩάϥϜݴޠͷΑ͏ͳॲཧ͕Մೳ
SubChart 18 IFMNEFQFOEFODZVQEBUF Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "local" chart repository ...Successfully got an update from the "stable" chart repository ...Successfully got an update from the "example" chart repository ...Successfully got an update from the "another" chart repository Update Complete. Happy Helming! Saving 2 charts Downloading apache from repo http://example.com/charts Downloading mysql from repo http://another.example.com/charts dependencies: - name: apache version: 1.2.3 repository: http://example.com/charts - name: mysql version: 3.2.1 repository: http://another.example.com/charts requirements.yaml ґଘؔΛ࣋ͭ͜ͱͰଞͷ ChartΛར༻Մೳ requirements.yamlΛ༻ҙ͠ɺ ʮhelm dependencyʯͰཧ
Hooks 19 Hooks pre-install post-install pre-delete post-delete pre-update post-upgrade pre-rollback post-rollback crd-install apiVersion: batch/v1 kind: Job metadata: name: "{{.Release.Name}}" labels: app.kubernetes.io/managed-by: {{.Release.Service | quote }} app.kubernetes.io/instance: {{.Release.Name | quote }} helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}" annotations: # This is what defines this resource as a hook. # Without this line, the job is considered part of the release. "helm.sh/hook": post-install "helm.sh/hook-weight": "-5" "helm.sh/hook-delete-policy": hook-succeeded ... ReleaseͷLife Cycleʹհೖ͢Δख๏ ChartΠϯετʔϧલޙʹJobΛ࣮ߦ͢Δ͜ͱ ChartΠϯετʔϧલޙʹConfigMapͷઃఆͳͲ͕Մೳ