fix
This commit is contained in:
@@ -4,7 +4,7 @@ resource "kubectl_manifest" "Task_python-coverage" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: python-coverage
|
name: python-coverage
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
@@ -62,7 +62,7 @@ resource "kubectl_manifest" "Task_npm" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: npm
|
name: npm
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
tekton.dev/categories: Build Tools
|
tekton.dev/categories: Build Tools
|
||||||
@@ -110,7 +110,7 @@ resource "kubectl_manifest" "Task_pytest" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: pytest
|
name: pytest
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Testing
|
tekton.dev/categories: Testing
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
@@ -190,7 +190,7 @@ resource "kubectl_manifest" "Task_shellcheck" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: shellcheck
|
name: shellcheck
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -227,7 +227,7 @@ resource "kubectl_manifest" "Task_markdown-lint" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: markdown-lint
|
name: markdown-lint
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -264,7 +264,7 @@ resource "kubectl_manifest" "Task_black" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: black
|
name: black
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -312,7 +312,7 @@ resource "kubectl_manifest" "Task_kube-linter" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: kube-linter
|
name: kube-linter
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -404,7 +404,7 @@ resource "kubectl_manifest" "Task_yaml-lint" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: yaml-lint
|
name: yaml-lint
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -441,7 +441,7 @@ resource "kubectl_manifest" "Task_buildpacks-phases" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: buildpacks-phases
|
name: buildpacks-phases
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Image Build, Security
|
tekton.dev/categories: Image Build, Security
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
@@ -676,7 +676,7 @@ resource "kubectl_manifest" "Task_sonarqube-scanner" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: sonarqube-scanner
|
name: sonarqube-scanner
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/deprecated: 'true'
|
tekton.dev/deprecated: 'true'
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
@@ -834,7 +834,7 @@ resource "kubectl_manifest" "Task_check-make" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: check-make
|
name: check-make
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
@@ -871,7 +871,7 @@ resource "kubectl_manifest" "Task_gitea-set-status" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea-set-status
|
name: gitea-set-status
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Git
|
tekton.dev/categories: Git
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
@@ -1021,7 +1021,7 @@ resource "kubectl_manifest" "Task_hadolint" {
|
|||||||
tekton.dev/platforms: linux/amd64
|
tekton.dev/platforms: linux/amd64
|
||||||
tekton.dev/tags: Kubernetes, Misconfiguration
|
tekton.dev/tags: Kubernetes, Misconfiguration
|
||||||
name: hadolint
|
name: hadolint
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
namespace: ${var.namespace}
|
namespace: ${var.namespace}
|
||||||
ownerReferences: ${jsonencode(var.install_owner)}
|
ownerReferences: ${jsonencode(var.install_owner)}
|
||||||
spec:
|
spec:
|
||||||
@@ -1076,7 +1076,7 @@ resource "kubectl_manifest" "Task_hugo" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: hugo
|
name: hugo
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Build Tools, Cloud
|
tekton.dev/categories: Build Tools, Cloud
|
||||||
@@ -1156,7 +1156,7 @@ resource "kubectl_manifest" "Task_buildah" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: buildah
|
name: buildah
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Image Build
|
tekton.dev/categories: Image Build
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
@@ -1249,7 +1249,7 @@ resource "kubectl_manifest" "Task_buildpacks" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: buildpacks
|
name: buildpacks
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Image Build
|
tekton.dev/categories: Image Build
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
@@ -1420,7 +1420,7 @@ resource "kubectl_manifest" "Task_kubeval" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: kubeval
|
name: kubeval
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/pipelines.minVersion: 0.12.1
|
tekton.dev/pipelines.minVersion: 0.12.1
|
||||||
tekton.dev/categories: Code Quality, Kubernetes
|
tekton.dev/categories: Code Quality, Kubernetes
|
||||||
@@ -1462,7 +1462,7 @@ resource "kubectl_manifest" "Task_pylint" {
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: pylint
|
name: pylint
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common_labels)}
|
||||||
annotations:
|
annotations:
|
||||||
tekton.dev/categories: Code Quality
|
tekton.dev/categories: Code Quality
|
||||||
tekton.dev/pipelines.minVersion: 0.17.0
|
tekton.dev/pipelines.minVersion: 0.17.0
|
||||||
|
|||||||
13
share/tekton-tasks/common.tf
Normal file
13
share/tekton-tasks/common.tf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
locals {
|
||||||
|
common_labels = {
|
||||||
|
"vynil.solidite.fr/owner-name" = var.instance
|
||||||
|
"vynil.solidite.fr/owner-namespace" = var.namespace
|
||||||
|
"vynil.solidite.fr/owner-category" = var.category
|
||||||
|
"vynil.solidite.fr/owner-component" = var.component
|
||||||
|
"app.kubernetes.io/managed-by" = "vynil"
|
||||||
|
"app.kubernetes.io/name" = var.component
|
||||||
|
"app.kubernetes.io/instance" = var.instance
|
||||||
|
}
|
||||||
|
common-labels = common_labels
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user