Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #311 from surajssd/optional-tags-struct-fields
Browse files Browse the repository at this point in the history
fix(spec): add optional tag in struct fields
  • Loading branch information
kadel authored Oct 5, 2017
2 parents 38b2b36 + 6f8ae4e commit 3fccda7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ type ServiceSpecMod struct {
// The list of ports that are exposed by this service. More info:
// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
// ref: io.kedge.ServicePort
// +optional
Ports []ServicePortMod `json:"ports,conflicting"`
// The list of portMappings, where each portMapping allows specifying port,
// targetPort and protocol in the format '<port>:<targetPort>/<protocol>'
// +optional
PortMappings []string `json:"portMappings,omitempty"`
}

Expand Down

0 comments on commit 3fccda7

Please sign in to comment.