Skip to content

Commit

Permalink
feat: Implement parameter to set image repository (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMarusenko authored and SergK committed Nov 8, 2024
1 parent 48f0d18 commit e9023b3
Show file tree
Hide file tree
Showing 288 changed files with 1,158 additions and 381 deletions.
3 changes: 2 additions & 1 deletion charts/pipelines-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Follows [Tekton Interceptor](https://tekton.dev/vault/triggers-main/clusterinter
| grafana.enabled | bool | `false` | |
| grafana.serviceMonitor.prometheusReleaseLabels.release | string | `"prom"` | |
| interceptor.affinity | object | `{}` | Affinity settings for pod assignment |
| interceptor.enabled | bool | `true` | Deploy EDP interceptor as a part of pipeline library when true. Default: true |
| interceptor.enabled | bool | `true` | Deploy KubeRocketCI interceptor as a part of pipeline library when true. Default: true |
| interceptor.image.pullPolicy | string | `"IfNotPresent"` | |
| interceptor.image.repository | string | `"epamedp/edp-tekton"` | |
| interceptor.image.tag | string | `nil` | Overrides the image tag whose default is the chart appVersion. |
Expand All @@ -133,6 +133,7 @@ Follows [Tekton Interceptor](https://tekton.dev/vault/triggers-main/clusterinter
| kaniko.image.tag | string | `"v1.12.1"` | |
| kaniko.roleArn | string | `""` | AWS IAM role to be used for kaniko pod service account (IRSA). Format: arn:aws:iam::<AWS_ACCOUNT_ID>:role/<AWS_IAM_ROLE_NAME> |
| nameOverride | string | `""` | |
| pipelines.image.registry | string | `"docker.io"` | Registry for tekton pipelines images. Default: docker.io |
| tekton-cache.enabled | bool | `true` | Enables the Tekton-cache subchart. |
| tekton-cache.url | string | `"http://tekton-cache:8080"` | Defines the URL to the tekton-cache. Default: http://tekton-cache:8080 |
| tekton.configs.gradleConfigMap | string | `"custom-gradle-settings"` | Default configuration maps for provisioning init.gradle file, REPOSITORY_SNAPSHOTS_PATH and REPOSITORY_RELEASES_PATH environment variables. |
Expand Down
7 changes: 7 additions & 0 deletions charts/pipelines-library/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ Validate values of gitProviders
{{- end }}
{{- end }}
{{- end }}

{{/*
Define registry for pipelines images
*/}}
{{- define "edp-tekton.registry" -}}
{{- .Values.pipelines.image.registry -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
else
ARTIFACT_REPOSITORY_SOURCE="nugetStorageReleases"
fi
# Note: The api-key is only used as a placeholder.
# Note: The api-key is only used as a placeholder.
# Ref: https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops#publish-packages
dotnet nuget push ${nugetPackagesPath} --source ${ARTIFACT_REPOSITORY_SOURCE} --api-key key
workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
versionLowerCase=$(echo $(tasks.get-version.results.VERSION) | tr '[:upper:]' '[:lower:]')
export NEXUS_HOST="//${NEXUS_HOST_URL#*://}"
if [[ "$versionLowerCase" == *"snapshot"* ]]; then
export npm_config_userconfig=/var/configmap/.npmrc-publish-snapshots
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gitlab" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gitlab" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ if has "gitlab" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk8" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- $altResourceMapping := dict
"java8" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java11" (printf "%s/gradle:7.5.1-jdk11" $registry)
"java17" (printf "%s/gradle:7.5.1-jdk17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
{{- $valueFromAlt := pluck $k $altResourceMapping | first -}}
apiVersion: tekton.dev/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "bitbucket" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "gerrit" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "github" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ if has "gitlab" .Values.global.gitProviders }}
{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}}
{{- $registry := include "edp-tekton.registry" . -}}
{{- $resourceMapping := dict
"java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry)
"java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry)
"java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry)
-}}
{{- range $k, $v := $resourceMapping }}
apiVersion: tekton.dev/v1
kind: Pipeline
Expand Down
Loading

0 comments on commit e9023b3

Please sign in to comment.