Skip to content

Commit

Permalink
Adds omitempty and cleans lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Zepeda Mas <[email protected]>
  • Loading branch information
chentex committed Feb 22, 2024
1 parent c0a5f97 commit 0af14b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions ocp-metadata/ocp-metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import (
"k8s.io/utils/pointer"
)

var restConfig *rest.Config

// Metadata object
type Metadata struct {
clientSet *kubernetes.Clientset
Expand Down
12 changes: 6 additions & 6 deletions ocp-metadata/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ type ClusterMetadata struct {
SDNType string `json:"sdnType,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Region string `json:"region,omitempty"`
Fips bool `json:"fips"`
Publish string `json:"publish"`
WorkerArch string `json:"workerArch"`
ControlPlaneArch string `json:"controlPlaneArch"`
Ipsec bool `json:"ipsec"`
IpsecMode string `json:"ipsecMode"`
Fips bool `json:"fips,omitempty"`
Publish string `json:"publish,omitempty"`
WorkerArch string `json:"workerArch,omitempty"`
ControlPlaneArch string `json:"controlPlaneArch,omitempty"`
Ipsec bool `json:"ipsec,omitempty"`
IpsecMode string `json:"ipsecMode,omitempty"`
}

0 comments on commit 0af14b4

Please sign in to comment.