Verified Commit ffe9acd8 authored by João Capucho's avatar João Capucho
Browse files

Use Secret characteristic value type for KubernetesSecret data

parent d3c531fb
Loading
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -112,10 +112,10 @@ public class KubernetesSecret extends DomainModelDefinition
		rsc.addResourceSpecificationCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("metadata", this.metadata, EValueType.OBJECT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("metadata", this.metadata, EValueType.SECRET.getValue(), "", false);
//		rsc.addResourceSpecificationCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue(), "", false);
        rsc.addResourceSpecificationCharacteristicItemShort("data", this.dataObj, EValueType.OBJECT.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("json", this.json, EValueType.SECRET.getValue(), "", false);
		rsc.addResourceSpecificationCharacteristicItemShort("data", this.dataObj, EValueType.SECRET.getValue(), "", false);
        
		if (this.properties != null)
		  this.properties.forEach((kPropName, vProVal) -> {
@@ -127,7 +127,7 @@ public class KubernetesSecret extends DomainModelDefinition
		if (this.data != null)
		  this.data.forEach((kPropName, vProVal) -> {
		    EValueType etype;        
		    etype = EValueType.TEXT;
		    etype = EValueType.SECRET;
		    rsc.addResourceSpecificationCharacteristicItemShort(kPropName , vProVal, etype.getValue(), "", false);

		  });
@@ -182,10 +182,10 @@ public class KubernetesSecret extends DomainModelDefinition
		rs.addResourceCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.OBJECT.getValue());
		rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.SECRET.getValue());
//		//rs.addResourceCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue());
        rs.addResourceCharacteristicItemShort("data", this.dataObj, EValueType.OBJECT.getValue());
		rs.addResourceCharacteristicItemShort("json", this.json, EValueType.SECRET.getValue());
		rs.addResourceCharacteristicItemShort("data", this.dataObj, EValueType.SECRET.getValue());
		

		if (this.properties != null)
@@ -199,7 +199,7 @@ public class KubernetesSecret extends DomainModelDefinition
        if (this.data != null)
          this.data.forEach((kPropName, vProVal) -> {
            EValueType etype;        
            etype = EValueType.TEXT;
            etype = EValueType.SECRET;
            rs.addResourceCharacteristicItemShort( kPropName , vProVal, etype.getValue());

          });