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

Commit

Permalink
omitempty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Jun 24, 2021
1 parent 382513a commit fd643c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ Available env variables:
| `LEADER_ELECTION_NAMESPACE` | Change the leader election namespace. This is by default the same where the controller is deployed. | `` |
| `NAMESPACES` | The controller listens by default for all namespaces. This may be limited to a comma delimted list of dedicated namespaces. | `` |
| `CONCURRENT` | The number of concurrent reconcile workers. | `4` |
| `TCP_CONFIG_MAP` | The default tcp configmap | |
| `FRONTEND_SERVICE` | The default frontend service | |
4 changes: 2 additions & 2 deletions api/v1beta1/tcpingressmapping_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ type TCPIngressMappingSpec struct {
BackendService BackendService `json:"backendService"`

// +optional
FrontendService *FrontendService `json:"frontendService"`
FrontendService *FrontendService `json:"frontendService,omitempty"`

// +optional
TCPConfigMap *TCPConfigMap `json:"tcpConfigMap"`
TCPConfigMap *TCPConfigMap `json:"tcpConfigMap,omitempty"`
}

type TCPConfigMap struct {
Expand Down

0 comments on commit fd643c8

Please sign in to comment.