From 2204ad632250a5adedcba64b012557cd761870a0 Mon Sep 17 00:00:00 2001 From: stavbernazport Date: Sun, 5 May 2024 15:37:09 +0300 Subject: [PATCH] removed status.conditions from v1/pods in all examples --- kubernetes/blueprints/argo-argo_rollouts-blueprints.json | 6 ------ kubernetes/blueprints/argo-blueprints.json | 6 ------ kubernetes/blueprints/fluxcd-blueprints.json | 6 ------ kubernetes/blueprints/istio-blueprints.json | 6 ------ kubernetes/blueprints/kubernetes_complete_usecase_bps.json | 6 ------ kubernetes/blueprints/kubernetes_knative_usecase.json | 6 ------ kubernetes/blueprints/kyverno-blueprints.json | 6 ------ kubernetes/blueprints/opencosts_bps.json | 6 ------ kubernetes/blueprints/openshift-blueprints.json | 6 ------ kubernetes/blueprints/trivy-blueprints.json | 6 ------ kubernetes/full-configs/kubernetes_kantive_usecase.yaml | 1 - kubernetes/full-configs/openshift_usecase.yaml | 2 -- kubernetes/kubernetes_config.yaml | 2 -- kubernetes/kubernetes_v1_config.yaml | 2 -- ...rgo-argo_rollouts-fluxcd-istio-kubernetes_v1_config.yaml | 2 -- ..._rollouts-fluxcd-istio-kyverno-kubernetes_v1_config.yaml | 2 -- ...uts-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- ...go_rollouts-fluxcd-istio-trivy-kubernetes_v1_config.yaml | 2 -- .../argo-argo_rollouts-fluxcd-kubernetes_v1_config.yaml | 2 -- ...o-argo_rollouts-fluxcd-kyverno-kubernetes_v1_config.yaml | 2 -- ..._rollouts-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- ...rgo-argo_rollouts-fluxcd-trivy-kubernetes_v1_config.yaml | 2 -- .../argo-argo_rollouts-istio-kubernetes_v1_config.yaml | 2 -- ...go-argo_rollouts-istio-kyverno-kubernetes_v1_config.yaml | 2 -- ...o_rollouts-istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- ...argo-argo_rollouts-istio-trivy-kubernetes_v1_config.yaml | 2 -- .../templates/argo-argo_rollouts-kubernetes_v1_config.yaml | 2 -- .../argo-argo_rollouts-kyverno-kubernetes_v1_config.yaml | 2 -- ...go-argo_rollouts-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- .../argo-argo_rollouts-trivy-kubernetes_v1_config.yaml | 2 -- .../templates/argo-fluxcd-istio-kubernetes_v1_config.yaml | 2 -- .../argo-fluxcd-istio-kyverno-kubernetes_v1_config.yaml | 2 -- ...rgo-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- .../argo-fluxcd-istio-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/argo-fluxcd-kubernetes_v1_config.yaml | 2 -- .../templates/argo-fluxcd-kyverno-kubernetes_v1_config.yaml | 2 -- .../argo-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- .../templates/argo-fluxcd-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/argo-istio-kubernetes_v1_config.yaml | 2 -- .../templates/argo-istio-kyverno-kubernetes_v1_config.yaml | 2 -- .../argo-istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- .../templates/argo-istio-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/argo-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/argo-kyverno-kubernetes_v1_config.yaml | 2 -- .../templates/argo-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/argo-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/fluxcd-istio-kubernetes_v1_config.yaml | 2 -- .../fluxcd-istio-kyverno-kubernetes_v1_config.yaml | 2 -- .../fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- .../templates/fluxcd-istio-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/fluxcd-kubernetes_v1_config.yaml | 2 -- .../templates/fluxcd-kyverno-kubernetes_v1_config.yaml | 2 -- .../fluxcd-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/fluxcd-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/istio-kubernetes_v1_config.yaml | 2 -- .../templates/istio-kyverno-kubernetes_v1_config.yaml | 2 -- .../templates/istio-kyverno-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/istio-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/kubernetes_v1_config.yaml | 2 -- kubernetes/templates/kyverno-kubernetes_v1_config.yaml | 2 -- .../templates/kyverno-trivy-kubernetes_v1_config.yaml | 2 -- kubernetes/templates/trivy-kubernetes_v1_config.yaml | 2 -- 62 files changed, 163 deletions(-) diff --git a/kubernetes/blueprints/argo-argo_rollouts-blueprints.json b/kubernetes/blueprints/argo-argo_rollouts-blueprints.json index a7f385a..31cc0b8 100644 --- a/kubernetes/blueprints/argo-argo_rollouts-blueprints.json +++ b/kubernetes/blueprints/argo-argo_rollouts-blueprints.json @@ -227,12 +227,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/argo-blueprints.json b/kubernetes/blueprints/argo-blueprints.json index 0973b90..9e22871 100644 --- a/kubernetes/blueprints/argo-blueprints.json +++ b/kubernetes/blueprints/argo-blueprints.json @@ -226,12 +226,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/fluxcd-blueprints.json b/kubernetes/blueprints/fluxcd-blueprints.json index 187594e..5de3fac 100644 --- a/kubernetes/blueprints/fluxcd-blueprints.json +++ b/kubernetes/blueprints/fluxcd-blueprints.json @@ -298,12 +298,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/istio-blueprints.json b/kubernetes/blueprints/istio-blueprints.json index 246acb8..c04d943 100644 --- a/kubernetes/blueprints/istio-blueprints.json +++ b/kubernetes/blueprints/istio-blueprints.json @@ -226,12 +226,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/kubernetes_complete_usecase_bps.json b/kubernetes/blueprints/kubernetes_complete_usecase_bps.json index 8b7e47c..ccc0270 100644 --- a/kubernetes/blueprints/kubernetes_complete_usecase_bps.json +++ b/kubernetes/blueprints/kubernetes_complete_usecase_bps.json @@ -314,12 +314,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/kubernetes_knative_usecase.json b/kubernetes/blueprints/kubernetes_knative_usecase.json index 39bf6eb..ae5d6a6 100644 --- a/kubernetes/blueprints/kubernetes_knative_usecase.json +++ b/kubernetes/blueprints/kubernetes_knative_usecase.json @@ -479,12 +479,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/kyverno-blueprints.json b/kubernetes/blueprints/kyverno-blueprints.json index d68246f..9ef3de3 100644 --- a/kubernetes/blueprints/kyverno-blueprints.json +++ b/kubernetes/blueprints/kyverno-blueprints.json @@ -298,12 +298,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/opencosts_bps.json b/kubernetes/blueprints/opencosts_bps.json index 7cac32e..bafd70e 100644 --- a/kubernetes/blueprints/opencosts_bps.json +++ b/kubernetes/blueprints/opencosts_bps.json @@ -314,12 +314,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/openshift-blueprints.json b/kubernetes/blueprints/openshift-blueprints.json index c0ffd0e..250b520 100644 --- a/kubernetes/blueprints/openshift-blueprints.json +++ b/kubernetes/blueprints/openshift-blueprints.json @@ -298,12 +298,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/blueprints/trivy-blueprints.json b/kubernetes/blueprints/trivy-blueprints.json index f09db60..96f7489 100644 --- a/kubernetes/blueprints/trivy-blueprints.json +++ b/kubernetes/blueprints/trivy-blueprints.json @@ -226,12 +226,6 @@ "icon": "Service", "schema": { "properties": { - "conditions": { - "type": "array", - "title": "Conditions", - "default": [], - "description": "Pod's conditions" - }, "labels": { "type": "object", "title": "Labels", diff --git a/kubernetes/full-configs/kubernetes_kantive_usecase.yaml b/kubernetes/full-configs/kubernetes_kantive_usecase.yaml index f97c37f..dedd887 100644 --- a/kubernetes/full-configs/kubernetes_kantive_usecase.yaml +++ b/kubernetes/full-configs/kubernetes_kantive_usecase.yaml @@ -143,7 +143,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/full-configs/openshift_usecase.yaml b/kubernetes/full-configs/openshift_usecase.yaml index 39c3acb..282b481 100644 --- a/kubernetes/full-configs/openshift_usecase.yaml +++ b/kubernetes/full-configs/openshift_usecase.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/kubernetes_config.yaml b/kubernetes/kubernetes_config.yaml index 362ab12..09b714b 100644 --- a/kubernetes/kubernetes_config.yaml +++ b/kubernetes/kubernetes_config.yaml @@ -116,7 +116,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: '(.metadata.ownerReferences[0].name | split("-") | .[:-1] | join("-")) + "-" + "Deployment" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME' Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME @@ -137,7 +136,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/kubernetes_v1_config.yaml b/kubernetes/kubernetes_v1_config.yaml index f4c80ff..813c43a 100644 --- a/kubernetes/kubernetes_v1_config.yaml +++ b/kubernetes/kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kubernetes_v1_config.yaml index d456b2c..4ef116a 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-kubernetes_v1_config.yaml index 805b849..d51c5c7 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml index a51177f..7423cfd 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-trivy-kubernetes_v1_config.yaml index 614c23f..6c2ef85 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-kubernetes_v1_config.yaml index daacc55..bee5d92 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-kubernetes_v1_config.yaml index ddddc2c..f433dde 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml index a315824..c226c4b 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-fluxcd-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-fluxcd-trivy-kubernetes_v1_config.yaml index f254e2f..57299c4 100644 --- a/kubernetes/templates/argo-argo_rollouts-fluxcd-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-fluxcd-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-istio-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-istio-kubernetes_v1_config.yaml index 3866a66..8cdf3f0 100644 --- a/kubernetes/templates/argo-argo_rollouts-istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-istio-kyverno-kubernetes_v1_config.yaml index 2a7fcef..ee1f75e 100644 --- a/kubernetes/templates/argo-argo_rollouts-istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-istio-kyverno-trivy-kubernetes_v1_config.yaml index e6101cd..173cfb8 100644 --- a/kubernetes/templates/argo-argo_rollouts-istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-istio-trivy-kubernetes_v1_config.yaml index ffe6396..151be5c 100644 --- a/kubernetes/templates/argo-argo_rollouts-istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-kubernetes_v1_config.yaml index 427b5ee..7cbc397 100644 --- a/kubernetes/templates/argo-argo_rollouts-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-kyverno-kubernetes_v1_config.yaml index 4e5009e..9765d94 100644 --- a/kubernetes/templates/argo-argo_rollouts-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-kyverno-trivy-kubernetes_v1_config.yaml index f73e12f..c1ed46a 100644 --- a/kubernetes/templates/argo-argo_rollouts-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-argo_rollouts-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-argo_rollouts-trivy-kubernetes_v1_config.yaml index 773c16c..c376564 100644 --- a/kubernetes/templates/argo-argo_rollouts-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-argo_rollouts-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-istio-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-istio-kubernetes_v1_config.yaml index 13b406c..38a6a2d 100644 --- a/kubernetes/templates/argo-fluxcd-istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-istio-kyverno-kubernetes_v1_config.yaml index 9382bd1..f2e1ef3 100644 --- a/kubernetes/templates/argo-fluxcd-istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml index 0329357..cd4b208 100644 --- a/kubernetes/templates/argo-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-istio-trivy-kubernetes_v1_config.yaml index 437b54c..5b8611c 100644 --- a/kubernetes/templates/argo-fluxcd-istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-kubernetes_v1_config.yaml index 1aef779..1d7d6d7 100644 --- a/kubernetes/templates/argo-fluxcd-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-kyverno-kubernetes_v1_config.yaml index 87fc1be..5600142 100644 --- a/kubernetes/templates/argo-fluxcd-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml index 0790141..6016c3e 100644 --- a/kubernetes/templates/argo-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-fluxcd-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-fluxcd-trivy-kubernetes_v1_config.yaml index 44c1fb6..fa9cbe8 100644 --- a/kubernetes/templates/argo-fluxcd-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-fluxcd-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-istio-kubernetes_v1_config.yaml b/kubernetes/templates/argo-istio-kubernetes_v1_config.yaml index ae18c11..2073d3c 100644 --- a/kubernetes/templates/argo-istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-istio-kyverno-kubernetes_v1_config.yaml index 33e9771..d6d909c 100644 --- a/kubernetes/templates/argo-istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-istio-kyverno-trivy-kubernetes_v1_config.yaml index a6a26db..7596a54 100644 --- a/kubernetes/templates/argo-istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-istio-trivy-kubernetes_v1_config.yaml index 893c1f1..983c8b8 100644 --- a/kubernetes/templates/argo-istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-kubernetes_v1_config.yaml b/kubernetes/templates/argo-kubernetes_v1_config.yaml index 4904290..4699b3a 100644 --- a/kubernetes/templates/argo-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/argo-kyverno-kubernetes_v1_config.yaml index 7489f7f..584ddd5 100644 --- a/kubernetes/templates/argo-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-kyverno-trivy-kubernetes_v1_config.yaml index 839d82e..bd9cbef 100644 --- a/kubernetes/templates/argo-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/argo-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/argo-trivy-kubernetes_v1_config.yaml index 13882f4..8a72573 100644 --- a/kubernetes/templates/argo-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/argo-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-istio-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-istio-kubernetes_v1_config.yaml index 529fb2b..69e51cf 100644 --- a/kubernetes/templates/fluxcd-istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-istio-kyverno-kubernetes_v1_config.yaml index 08e3ece..d9bbb3f 100644 --- a/kubernetes/templates/fluxcd-istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml index 0cd3d84..61a05f6 100644 --- a/kubernetes/templates/fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-istio-trivy-kubernetes_v1_config.yaml index 72985d4..64cba12 100644 --- a/kubernetes/templates/fluxcd-istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-kubernetes_v1_config.yaml index e79e995..d500c6b 100644 --- a/kubernetes/templates/fluxcd-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-kyverno-kubernetes_v1_config.yaml index 9eb6d20..5bdd6f7 100644 --- a/kubernetes/templates/fluxcd-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-kyverno-trivy-kubernetes_v1_config.yaml index b4775ac..e2a283f 100644 --- a/kubernetes/templates/fluxcd-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/fluxcd-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/fluxcd-trivy-kubernetes_v1_config.yaml index 09b76fe..7edc26f 100644 --- a/kubernetes/templates/fluxcd-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/fluxcd-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/istio-kubernetes_v1_config.yaml b/kubernetes/templates/istio-kubernetes_v1_config.yaml index 1018565..85431f7 100644 --- a/kubernetes/templates/istio-kubernetes_v1_config.yaml +++ b/kubernetes/templates/istio-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/istio-kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/istio-kyverno-kubernetes_v1_config.yaml index 8c4c9ae..2ad666d 100644 --- a/kubernetes/templates/istio-kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/istio-kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/istio-kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/istio-kyverno-trivy-kubernetes_v1_config.yaml index db451fe..cc5a999 100644 --- a/kubernetes/templates/istio-kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/istio-kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/istio-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/istio-trivy-kubernetes_v1_config.yaml index 064d253..95f6384 100644 --- a/kubernetes/templates/istio-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/istio-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/kubernetes_v1_config.yaml b/kubernetes/templates/kubernetes_v1_config.yaml index f4c80ff..813c43a 100644 --- a/kubernetes/templates/kubernetes_v1_config.yaml +++ b/kubernetes/templates/kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/kyverno-kubernetes_v1_config.yaml b/kubernetes/templates/kyverno-kubernetes_v1_config.yaml index 8844cce..c3ef302 100644 --- a/kubernetes/templates/kyverno-kubernetes_v1_config.yaml +++ b/kubernetes/templates/kyverno-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/kyverno-trivy-kubernetes_v1_config.yaml b/kubernetes/templates/kyverno-trivy-kubernetes_v1_config.yaml index 3375d68..c6021a6 100644 --- a/kubernetes/templates/kyverno-trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/kyverno-trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME diff --git a/kubernetes/templates/trivy-kubernetes_v1_config.yaml b/kubernetes/templates/trivy-kubernetes_v1_config.yaml index 41cdef0..f6fa08b 100644 --- a/kubernetes/templates/trivy-kubernetes_v1_config.yaml +++ b/kubernetes/templates/trivy-kubernetes_v1_config.yaml @@ -140,7 +140,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: replicaSet: .metadata.ownerReferences[0].name + "-" + "ReplicaSet" + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME // "" @@ -162,7 +161,6 @@ resources: # List of K8s resources to list, watch, and export to Port. phase: .status.phase labels: .metadata.labels containers: (.spec.containers | map({image, resources})) + .status.containerStatuses | group_by(.image) | map(add) - conditions: .status.conditions relations: workload: .metadata.ownerReferences[0].name + "-" + .metadata.ownerReferences[0].kind + "-" + .metadata.namespace + "-" + env.CLUSTER_NAME Node: (.spec.nodeName) | (split(".")|join("_")) + "-" + env.CLUSTER_NAME