Andrew Keesler
6e46ff345a
Run ./hack/module.sh tidy
...
I'm assuming if any of this is wrong, someone will yell at me...
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-08-14 09:16:48 -04:00
Matt Moyer
c5d5914866
Split up into multiple modules.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-08-06 20:09:15 -05:00
Matt Moyer
cbe4c1b370
Pull placeholder-name-api back into this repo as a library.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-08-06 20:09:15 -05:00
Matt Moyer
ad55f9e310
Pull placeholder-name-client-go back into this repo as a library.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-08-06 19:38:13 -05:00
Ryan Richard
f10c61f591
Add request logging to the create LoginRequest endpoint
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-08-06 15:14:30 -07:00
Andrew Keesler
31e6d8fbb1
Drop main module dependency on test module
...
I suppose we could solve this other ways, but this utility was
only used in one place right now, so it is easiest to copy it over.
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-08-06 10:29:04 -04:00
Ryan Richard
cf56c67329
Move LoginDiscoveryConfig to the crds.placeholder.suzerain-io.github.io group
...
- Also includes bumping the api and client-go dependencies to the newer
version which also moved LoginDiscoveryConfig to the
crds.placeholder.suzerain-io.github.io group in the generated code
2020-07-31 17:22:12 -07:00
Ryan Richard
9fe82ec5f1
Merge remote-tracking branch 'upstream/main' into discovery_doc
2020-07-31 16:38:40 -07:00
aram price
bd594e19ff
Update -api and -client-go dependencies
...
- pulls in chage to make ExpirationTimestamp mandatory on
LoginRequestCredential
2020-07-30 20:05:32 -07:00
Ryan Richard
2e05e032ee
Merge remote-tracking branch 'upstream/main' into discovery_doc
2020-07-30 17:28:35 -07:00
Ryan Richard
5aebb76146
Make the PublisherController use informers
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-07-30 14:34:13 -07:00
Matt Moyer
04cacabc16
Convert pkg/client to depend only on stdlib.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-07-30 13:49:45 -05:00
Andrew Keesler
9a859875a7
logindiscovery: add tests for conditional update and error cases
...
- Also add some log lines for better observability of behavior.
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-07-30 10:39:15 -04:00
Andrew Keesler
a5f7de429d
First commit of PublisherController
...
- Also upgrade go-client and api dependencies, and add controller-go as a dependency
Signed-off-by: Ryan Richard <richardry@vmware.com >
2020-07-29 17:22:25 -07:00
Ryan Richard
27cd82065b
Add placeholder-name CLI
...
- main and unit tests for main
- client package to be done in a future commit
Signed-off-by: Aram Price <pricear@vmware.com >
2020-07-28 15:15:59 -05:00
Matt Moyer
6dfae48b65
Add generated mock for loginrequest.CertIssuer interface.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-07-27 12:33:33 -07:00
Ryan Richard
9af3637403
Bump version of -api dependency
...
Signed-off-by: Aram Price <pricear@vmware.com >
2020-07-23 17:12:25 -07:00
Ryan Richard
6a93de3931
More validations and error handling for create LoginRequest endpoint
2020-07-23 16:01:55 -07:00
Mo Khan
5fdc20886d
Initial aggregated API server ( #15 )
...
Add initial aggregated API server (squashed from a bunch of commits).
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
Signed-off-by: Aram Price <pricear@vmware.com >
Signed-off-by: Ryan Richard <richardry@vmware.com >
2020-07-23 10:05:21 -05:00
Monis Khan
549da37805
Encode git version info into binary and user agent
...
Signed-off-by: Monis Khan <mok@vmware.com >
2020-07-20 00:32:11 -04:00
Matt Moyer
092cc26789
Refactor app.go and wire in autoregistration.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-07-17 12:10:33 -05:00
Matt Moyer
a3bce5f42e
Add autoregistration package to manage APIService.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com >
2020-07-17 10:53:13 -05:00
Monis Khan
ffa417f745
Bump kube deps to v0.19.0-rc.0
...
Signed-off-by: Monis Khan <mok@vmware.com >
2020-07-15 16:47:02 -04:00
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
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
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
Andrew Keesler
619ae2b178
Add -c/--config flag
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com >
2020-07-08 13:06:44 -04: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
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
Ryan Richard
911f8736f1
Hello, world!
2020-07-02 17:05:59 -07:00