Pinniped is the easy, secure way to log in to your Kubernetes clusters.
Go to file
Ryan Richard 08961919b5 Fix a garbage collection bug
- Previously the golang code would create a Service and an APIService.
  The APIService would be given an owner reference which pointed to
  the namespace in which the app was installed.
- This prevented the app from being uninstalled. The namespace would
  refuse to delete, so `kapp delete` or `kubectl delete` would fail.
- The new approach is to statically define the Service and an APIService
  in the deployment.yaml, except for the caBundle of the APIService.
  Then the golang code will perform an update to add the caBundle at
  runtime.
- When the user uses `kapp deploy` or `kubectl apply` either tool will
  notice that the caBundle is not declared in the yaml and will
  therefore avoid editing that field.
- When the user uses `kapp delete` or `kubectl delete` either tool will
  destroy the objects because they are statically declared with names
  in the yaml, just like all of the other objects. There are no
  ownerReferences used, so nothing should prevent the namespace from
  being deleted.
- This approach also allows us to have less golang code to maintain.
- In the future, if our golang controllers want to dynamically add
  an Ingress or other objects, they can still do that. An Ingress
  would point to our statically defined Service as its backend.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-08-04 16:46:27 -07:00
cmd Merge remote-tracking branch 'upstream/main' into discovery_doc 2020-07-30 17:28:35 -07:00
deploy Fix a garbage collection bug 2020-08-04 16:46:27 -07:00
hack We need an extra "go test" command for the new pkg/client module. 2020-07-30 14:00:06 -05:00
internal Fix a garbage collection bug 2020-08-04 16:46:27 -07:00
pkg Allow override of discovery URL via ConfigMap 2020-08-03 10:17:11 -04:00
test Merge pull request #33 from cfryanr/discovery_doc 2020-08-04 10:01:20 -07:00
tools Add generated mock for loginrequest.CertIssuer interface. 2020-07-27 12:33:33 -07:00
.gitignore Hello, world! 2020-07-02 17:05:59 -07:00
.golangci.yaml Consolidate duplicate header definitions 2020-07-30 17:59:03 -04:00
Dockerfile Convert pkg/client to depend only on stdlib. 2020-07-30 13:49:45 -05:00
go.mod Move LoginDiscoveryConfig to the crds.placeholder.suzerain-io.github.io group 2020-07-31 17:22:12 -07:00
go.sum Move LoginDiscoveryConfig to the crds.placeholder.suzerain-io.github.io group 2020-07-31 17:22:12 -07:00
LICENSE Add Apache 2.0 license. 2020-07-06 13:50:31 -05:00
README.md Initial commit 2020-07-02 15:23:21 -07:00

placeholder-name