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

fix(spec): add optional tag in struct fields #311

Merged
merged 1 commit into from
Oct 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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