{ "name": "{{ .name }}", "rules":[ {{- if value, ok := .jvm; ok }} {{- range $i, $e := .jvm}} {{- if $i}},{{- end}} { "type": "PROCESS_GROUP", "enabled": true, "valueFormat": null, "propagationTypes": [ "PROCESS_GROUP_TO_SERVICE" ], "conditions": [ { "key": { "attribute": "PROCESS_GROUP_NAME" }, "comparisonInfo": { "type": "STRING", "operator": "EQUALS", "value": "{{ $e }}_was9", "negate": false, "caseSensitive": false } } ] } {{- end}} {{- end}} ], "entitySelectorBasedRules":[ {{- if $workloadName }} { "enabled": true, "entitySelector": "type(CLOUD_APPLICATION),entityName.contains(\"{{ $workloadName }}\"),toRelationships.isClusterOfCa(type(KUBERNETES_CLUSTER),entityName.contains(\"{{ $clusterName }}\"))", "valueFormat": "" } {{- end -}} ] }