Commit 4e8b2397 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix for prefix json

parent 4d7d7c1a
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -184,6 +184,10 @@ public class KubernetesService extends DomainModelDefinition
		.resourceSpecification( rSpecRef )
		.resourceVersion( this.version);
		
		
		String firstToken = this.fullResourceName.substring(  0, this.fullResourceName.indexOf('@') );
		String cprefix = this.kind + "." + firstToken + ".";
		
		rs.addResourceCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue());
@@ -192,7 +196,7 @@ public class KubernetesService extends DomainModelDefinition
		rs.addResourceCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.OBJECT.getValue());
		rs.addResourceCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue());
        rs.addResourceCharacteristicItemShort(cprefix + "json", this.json, EValueType.TEXT.getValue());
        rs.addResourceCharacteristicItemShort("spec", this.specObj, EValueType.OBJECT.getValue());
        rs.addResourceCharacteristicItemShort("status", this.statusObj, EValueType.OBJECT.getValue());