mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-11-22 23:20:19 +00:00
Support wait_for_jobs flag for helm release upgrade/install (#1140)
* Support wait_for_jobs flag for helm release upgrade/install * Update plugins/modules/helm.py Co-authored-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua> * Apply suggestion from @abikouo * fix(helm): correct wait_for_jobs implementation and add changelog - Fix double-append of --wait-for-jobs flag - Fix version check to run before appending the flag - Fetch helm_version before use to avoid undefined variable - Fix YAML indentation for version_added in docs - Add changelog fragment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test: add integration tests for wait_for_jobs - Test that --wait-for-jobs is appended when wait=true and wait_for_jobs=true - Test that wait_for_jobs fails with appropriate message on helm < 3.5.0 - Test that wait_for_jobs is ignored when wait is not set - Add test-chart-job helm chart containing a simple Job resource Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: harden test Job pod spec Disable service account token automounting and add memory limit to the test Job container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: add resource requests and pin image version in test Job Add CPU, memory, and ephemeral-storage requests. Pin busybox image to version 1.37. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * style: apply linter formatting to helm argument_spec Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update sanity ignore file * fix: quote Helm template expression to pass yamllint sanity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix linters errors --------- Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> Co-authored-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua> Co-authored-by: aubin bikouo <abikouo@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Bikouo Aubin
Yuriy Novostavskiy
aubin bikouo
Claude Opus 4.6
parent
f31ecce59c
commit
e475d06403
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: test-chart-job
|
||||
description: A chart with a Job for testing wait_for_jobs
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "default"
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-job"
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
template:
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: test
|
||||
image: "busybox:1.37"
|
||||
command: ["sh", "-c", "echo done"]
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "32Mi"
|
||||
ephemeral-storage: "16Mi"
|
||||
limits:
|
||||
memory: "64Mi"
|
||||
Reference in New Issue
Block a user