Andrew Keesler
63f5416b21
Define initial config file format
...
- 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>
2020-07-14 11:50:28 -04:00
Matt Moyer
5a66b56b93
Merge pull request #13 from suzerain-io/add-ca-code
...
Add initial CA code.
2020-07-13 16:25:44 -05:00
Matt Moyer
2596ddfa25
Add initial CA code.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-13 16:23:54 -05:00
Andrew Keesler
89c8d1183b
Use 'main' branch instead of 'master'
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-10 08:09:06 -04:00
Monis Khan
7da347866b
Avoid hard-coding namespace and deployment names in integration tests
...
Signed-off-by: Ryan Richard <richardry@vmware.com>
2020-07-09 13:57:59 -07:00
Ryan Richard
d3d9cc6fac
Change the name of the env var that turns on integration tests
...
- Trying to use "placeholder-name" or "placeholder_name" everywhere
that should later be changed to the actual name of the product,
so we can just do a simple search and replace when we have a name.
2020-07-09 13:43:30 -07:00
Ryan Richard
81e91accfa
Merge pull request #9 from enj/enj/t/integration_check_deployment
...
Add integration test to check app is running
2020-07-09 13:30:16 -07:00
Monis Khan
a544f7d7bf
Add integration test to check app is running
...
Signed-off-by: Monis Khan <mok@vmware.com>
2020-07-09 15:30:59 -04:00
Ryan Richard
3fd7e7835a
Allow optionally using a tag instead of a digest in deployment.yaml
2020-07-09 10:16:46 -07:00
Matt Moyer
a9cf376000
Fix string templating in YAML config.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-09 11:58:28 -05:00
Matt Moyer
fe81958d2c
Add an example config to ./deploy resources.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-09 11:42:31 -05:00
Mo Khan
12255109bd
Merge pull request #8 from enj/enj/i/kind_ci_pull
...
Set imagePullPolicy to prevent defaulting
2020-07-09 00:40:45 -04:00
Monis Khan
e9145bbe2e
Set imagePullPolicy to prevent defaulting
...
Signed-off-by: Monis Khan <mok@vmware.com>
2020-07-09 00:39:56 -04:00
Ryan Richard
c307a263ec
TestGetNodes prints more output for debugging failures
2020-07-08 16:37:25 -07:00
Matt Moyer
1c7109d5aa
Merge pull request #6 from suzerain-io/add-golangci-lint-action
...
Add golangci-lint as a GitHub Action.
2020-07-08 13:16:17 -05:00
Andrew Keesler
85e3b356dd
Merge pull request #5 from ankeesler/config-webhook
...
Add -c/--config flag
2020-07-08 14:10:33 -04:00
Matt Moyer
518ae7eb4c
Add golangci-lint and go test as GitHub Actions.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-08 13:01:13 -05:00
Andrew Keesler
619ae2b178
Add -c/--config flag
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-08 13:06:44 -04:00
Mo Khan
568febea79
Merge pull request #4 from enj/enj/i/linters
...
Make the linters happy
2020-07-08 01:21:20 -04:00
Monis Khan
8d6a645915
Make the linters happy
...
Signed-off-by: Monis Khan <mok@vmware.com>
2020-07-08 01:20:34 -04:00
Mo Khan
fd70eda033
Merge pull request #3 from enj/enj/i/kind_ci
...
Add integration test stub
2020-07-07 23:08:24 -04:00
Monis Khan
622d488fc3
Add integration test stub
...
Signed-off-by: Monis Khan <mok@vmware.com>
2020-07-07 22:59:00 -04:00
Ryan Richard
f0d7077efc
Update deploy README.md
2020-07-07 18:50:35 -07:00
Ryan Richard
ee7480bcda
Make package constants private
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-07 13:41:05 -07:00
Andrew Keesler
68d01f97a4
Add a log statement so we can tell that things are starting
...
Signed-off-by: Ryan Richard <richardry@vmware.com>
2020-07-07 13:20:07 -07:00
Ryan Richard
4e17853ecf
Example deployment
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-07 13:17:34 -07:00
Matt Moyer
7eaca5a56d
Merge pull request #2 from suzerain-io/add-linting
...
Add linting and fix initial warnings.
2020-07-07 15:05:25 -05:00
Matt Moyer
82f89c501a
Fix initial lint violations.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-07 14:55:50 -05:00
Matt Moyer
9bcd532c19
Add initial linter configuration.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-07 14:55:50 -05:00
Ryan Richard
84dcbf4f5f
Add Dockerfile
2020-07-06 16:54:04 -07:00
Ryan Richard
57a22f99aa
Add a simple /healthz endpoint
...
- Also remove the old hello world code
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-07-06 16:07:21 -07:00
Matt Moyer
cc81dd04e9
Merge pull request #1 from suzerain-io/add-license
...
Add Apache 2.0 license.
2020-07-06 14:37:19 -05:00
Matt Moyer
c85507e46d
Add Apache 2.0 license.
...
See https://www.apache.org/licenses/LICENSE-2.0.txt .
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-06 13:50:31 -05:00
Ryan Richard
90ff9d57b8
Revert "Break the unit tests to confirm that CI goes red"
...
This reverts commit fb6085da39
.
2020-07-02 19:11:06 -07:00
Ryan Richard
fb6085da39
Break the unit tests to confirm that CI goes red
2020-07-02 19:10:24 -07:00
Ryan Richard
911f8736f1
Hello, world!
2020-07-02 17:05:59 -07:00
Ryan Richard
a3d64bef62
Initial commit
2020-07-02 15:23:21 -07:00