Skip to content

Commit

Permalink
Merge pull request #76 from port-labs/remove-jsonworkload
Browse files Browse the repository at this point in the history
remove jsonWorkload from all bps and mappings
  • Loading branch information
hadar-co authored Dec 10, 2023
2 parents 12c9c20 + 29eca12 commit d582962
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 93 deletions.
1 change: 0 additions & 1 deletion kubernetes/argo_rollouts_config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
kind: '"Rollout"'
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
workloadJson: .
strategyConfig: .spec.strategy // null
availableReplicas: .status.availableReplicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/argo-argo_rollouts-blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/argo-blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/istio-blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/kubernetes_complete_usecase_bps.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/kubernetes_knative_usecase.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/lean_kubernetes_usecase_bps.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/opencosts_bps.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/blueprints/openshift-blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/full-configs/k8s-guide/k8s_guide_bps.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
"icon": "Deployment",
"schema": {
"properties": {
"workloadJson": {
"title": "Workload Json",
"type": "object",
"description": "The workloads json"
},
"availableReplicas": {
"type": "number",
"title": "Running Replicas",
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/full-configs/k8s-guide/k8s_guide_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ resources:
replicas: .spec.replicas
strategy: .spec.strategy.type
strategyConfig: .spec.strategy // {}
workloadJson: .
relations:
Namespace: .metadata.namespace + "-" + "my-cluster"
title: .metadata.name
Expand All @@ -75,7 +74,6 @@ resources:
labels: .metadata.labels
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
workloadJson: .
relations:
Namespace: .metadata.namespace + "-" + "my-cluster"
title: .metadata.name
Expand Down Expand Up @@ -103,7 +101,6 @@ resources:
labels: .metadata.labels
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
workloadJson: .
relations:
Namespace: .metadata.namespace + "-" + "my-cluster"
title: .metadata.name
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/full-configs/kubernetes_kantive_usecase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -65,7 +64,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"ReplicaSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -92,7 +90,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // null
Expand All @@ -118,7 +115,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // null
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/full-configs/lean_kubernetes_usecase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/full-configs/openshift_usecase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand All @@ -114,7 +111,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
icon: '"Deployment"'
blueprint: '"replicaSet"'
properties:
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/kubernetes_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // ""
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // ""
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/kubernetes_v1_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand All @@ -114,7 +111,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
icon: '"Deployment"'
blueprint: '"replicaSet"'
properties:
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand All @@ -114,7 +111,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
icon: '"Deployment"'
blueprint: '"replicaSet"'
properties:
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down Expand Up @@ -249,7 +245,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
kind: '"Rollout"'
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
workloadJson: .
strategyConfig: .spec.strategy // null
availableReplicas: .status.availableReplicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand All @@ -114,7 +111,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
icon: '"Deployment"'
blueprint: '"replicaSet"'
properties:
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down Expand Up @@ -249,7 +245,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
kind: '"Rollout"'
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
workloadJson: .
strategyConfig: .spec.strategy // null
availableReplicas: .status.availableReplicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/templates/argo-istio-kubernetes_v1_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"Deployment"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand All @@ -64,7 +63,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"DaemonSet"'
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
strategyConfig: .spec.strategy // {}
Expand All @@ -89,7 +87,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
blueprint: '"workload"'
properties:
kind: '"StatefulSet"'
workloadJson: .
labels: .metadata.labels
creationTimestamp: .metadata.creationTimestamp
strategyConfig: .spec.strategy // {}
Expand All @@ -114,7 +111,6 @@ resources: # List of K8s resources to list, watch, and export to Port.
icon: '"Deployment"'
blueprint: '"replicaSet"'
properties:
workloadJson: .
creationTimestamp: .metadata.creationTimestamp
replicas: .spec.replicas
hasPrivileged: .spec.template.spec.containers | [.[].securityContext.privileged] | any
Expand Down
Loading

0 comments on commit d582962

Please sign in to comment.