63f5416b21
- Users may want to consume pkg/config to generate configuration files. - This also involved putting config-related utilities in the config package for ease of consumption. - We did not add in versioning into the Config type for now...this is something we will likely do in the future, but it is not deemed necessary this early in the project. - The config file format tries to follow the patterns of Kube. One such example of this is requiring the use of base64-encoded CA bundle PEM bytes instead of a file path. This also slightly simplifies the config file handling because we don't have to 1) read in a file or 2) deal with the error case of the file not being there. - The webhook code from k8s.io/apiserver is really exactly what we want here. If this dependency gets too burdensome, we can always drop it, but the pros outweigh the cons at the moment. - Writing out a kubeconfig to disk to configure the webhook is a little janky, but hopefully this won't hurt performance too much in the year 2020. - Also bonus: call the right *Serve*() function when starting our servers. Signed-off-by: Andrew Keesler <akeesler@vmware.com>
18 lines
461 B
Modula-2
18 lines
461 B
Modula-2
module github.com/suzerain-io/placeholder-name
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/golangci/golangci-lint v1.28.1
|
|
github.com/spf13/cobra v1.0.0
|
|
github.com/stretchr/testify v1.6.1
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
|
|
golang.org/x/tools v0.0.0-20200707134715-9e0a013e855f // indirect
|
|
k8s.io/api v0.18.5
|
|
k8s.io/apimachinery v0.18.5
|
|
k8s.io/apiserver v0.18.5
|
|
k8s.io/client-go v0.18.5
|
|
sigs.k8s.io/yaml v1.2.0
|
|
)
|