Commit bdec583f authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix for #9

parent 4e8b2397
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -184,9 +184,11 @@ public class KubernetesService extends DomainModelDefinition
		.resourceSpecification( rSpecRef )
		.resourceVersion( this.version);
		
		
		String firstToken = this.fullResourceName.substring(  0, this.fullResourceName.indexOf('@') );
		String cprefix = this.kind + "." + firstToken + ".";
		String cprefix = "";
		if ( this.name.indexOf('@')>0) {
	        String firstToken = this.name.substring(  0, this.name.indexOf('@') );
	        cprefix = this.kind + "." + firstToken + ".";		  
		}
		
		rs.addResourceCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue());
		rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue());