[ 
https://issues.apache.org/jira/browse/MESOS-3962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054654#comment-15054654
 ] 

Avinash Sridharan commented on MESOS-3962:
------------------------------------------

[~sargun] the Labels protobuf has key as a required field and value as an 
optional field 

message Label {
  required string key = 1;
  optional string value = 2;
}

[~adam-mesos] was of the opinion that another option was to use the Parameter 
protobuf instead of Labels, since Kay and value are required in Paramter:
message Parameter {
  required string key = 1;
  required string value = 2;
}

Whats your take on this? Should we stick with Labels or go with a strong 
constraint of using Parameter?




> Add labels to the message Port
> ------------------------------
>
>                 Key: MESOS-3962
>                 URL: https://issues.apache.org/jira/browse/MESOS-3962
>             Project: Mesos
>          Issue Type: Wish
>            Reporter: Sargun Dhillon
>            Assignee: Avinash Sridharan
>            Priority: Minor
>              Labels: mesosphere
>
> I want to add arbitrary labels to the message "Port". I have a few use cases 
> for this:
> 1) I want to use it to drive isolators to install firewall rules associated 
> with the port
> 2) I want to use it to drive third party components to be able to specify 
> advertising information
> 3) I want to be able to able to use this to associate a deterministic virtual 
> hostname with a given port
> Ideally, once the task is launched, these labels would be immutable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to