Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #155 from ajeddeloh/fix-nils
Browse files Browse the repository at this point in the history
Use nil-able fields in sugar sections
  • Loading branch information
ajeddeloh authored May 18, 2018
2 parents 5fde54b + d834cde commit 8177496
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 307 deletions.
8 changes: 4 additions & 4 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,9 @@ etcd:
Patch: 15,
})),
Options: types.Etcd3_0{
Discovery: "https://discovery.etcd.io/<token>",
ListenClientUrls: "http://0.0.0.0:2379,http://0.0.0.0:4001",
MaxWals: 44,
Discovery: util.StringToPtr("https://discovery.etcd.io/<token>"),
ListenClientUrls: util.StringToPtr("http://0.0.0.0:2379,http://0.0.0.0:4001"),
MaxWals: util.IntToPtr(44),
},
},
}},
Expand All @@ -865,7 +865,7 @@ flannel:
Patch: 2,
})),
Options: types.Flannel0_6{
EtcdPrefix: "/coreos.com/network2",
EtcdPrefix: util.StringToPtr("/coreos.com/network2"),
},
},
}},
Expand Down
Loading

0 comments on commit 8177496

Please sign in to comment.