Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle differing indent levels for jobTemplate vs template #135

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

etrikp
Copy link
Contributor

@etrikp etrikp commented Feb 16, 2024

Added additional test data, test suite passes.

@etrikp etrikp changed the title fix: handle differing indent levels for jobTemplate vs temlpate fix: handle differing indent levels for jobTemplate vs template Feb 16, 2024
pkg/processor/pod/pod.go Outdated Show resolved Hide resolved
test_data/sample-app.yaml Outdated Show resolved Hide resolved
@@ -9,7 +9,8 @@ spec:
template:
spec:
containers:
- command:
- args: {{- toYaml .Values.batchJob.pi.args | nindent 12 }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for CronJob nindent 12 is correct, but for Job it should be less because it does not have jobTemplate, right?

Comment on lines +24 to +25
resources: {{- toYaml .Values.batchJob.pi.resources | nindent 14 }}
nodeSelector: {{- toYaml .Values.batchJob.nodeSelector | nindent 12 }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same applies here: nindent should be less than for CronJob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants