From 6c85da21eae3f29bd80869ff5d97006d7e0c254e Mon Sep 17 00:00:00 2001 From: Senjuti De Date: Fri, 5 Jan 2024 18:23:22 +0530 Subject: [PATCH] Migrated resources from v1beta1 to v1 --- templates/task.yaml | 8 ++++---- values.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/task.yaml b/templates/task.yaml index 6f7f8c6..c74d164 100644 --- a/templates/task.yaml +++ b/templates/task.yaml @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: Task metadata: name: git @@ -140,9 +140,9 @@ spec: stepTemplate: env: {{- include "environment-variables" . | nindent 6 }} -{{- if .Values.stepTemplate.resources }} - resources: - {{- .Values.stepTemplate.resources | toYaml | nindent 6 }} +{{- if .Values.stepTemplate.computeResources }} + computeResources: + {{- .Values.stepTemplate.computeResources | toYaml | nindent 6 }} {{- end }} {{- if .Values.stepTemplate.securityContext }} securityContext: diff --git a/values.yaml b/values.yaml index 7e52d2e..88e4bcc 100644 --- a/values.yaml +++ b/values.yaml @@ -14,7 +14,7 @@ stepTemplate: securityContext: runAsNonRoot: true runAsUser: 65532 - resources: + computeResources: limits: cpu: 100m memory: 256Mi