Skip to content

Commit

Permalink
Merge pull request #22 from vmware-tanzu/rm-sec-request
Browse files Browse the repository at this point in the history
Remove SecretRequest
  • Loading branch information
cppforlife committed Aug 20, 2021
2 parents 25485e9 + c849019 commit 39cc310
Show file tree
Hide file tree
Showing 62 changed files with 739 additions and 2,726 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-use-default: false
new-from-rev: 3f7427bfdd28067b58ba827eb806bd5783f9b5bb
new-from-rev: ae7b7b79a75756ae3cec92e8bb8c6bf0c4dab48e
21 changes: 3 additions & 18 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
sgclient "github.com/vmware-tanzu/carvel-secretgen-controller/pkg/client/clientset/versioned"
"github.com/vmware-tanzu/carvel-secretgen-controller/pkg/generator"
"github.com/vmware-tanzu/carvel-secretgen-controller/pkg/sharing"
sharing2 "github.com/vmware-tanzu/carvel-secretgen-controller/pkg/sharing2"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
Expand Down Expand Up @@ -75,7 +74,7 @@ func main() {
sshKeyReconciler := generator.NewSSHKeyReconciler(sgClient, coreClient, log.WithName("sshkey"))
exitIfErr(entryLog, "registering", registerCtrl("sshkey", mgr, sshKeyReconciler))

{ // Lives under secretgen.k14s.io
{
secretExports := sharing.NewSecretExportsWarmedUp(
sharing.NewSecretExports(log.WithName("secretexports")))

Expand All @@ -84,25 +83,11 @@ func main() {
secretExports.WarmUpFunc = secretExportReconciler.WarmUp
exitIfErr(entryLog, "registering", registerCtrl("secexp", mgr, secretExportReconciler))

secretRequestReconciler := sharing.NewSecretRequestReconciler(
mgr.GetClient(), secretExports, log.WithName("secreq"))
exitIfErr(entryLog, "registering", registerCtrl("secreq", mgr, secretRequestReconciler))
}

{ // Lives under secretgen.carvel.dev
secretExports := sharing2.NewSecretExportsWarmedUp(
sharing2.NewSecretExports(log.WithName("secretexports")))

secretExportReconciler := sharing2.NewSecretExportReconciler(
mgr.GetClient(), secretExports, log.WithName("secexp"))
secretExports.WarmUpFunc = secretExportReconciler.WarmUp
exitIfErr(entryLog, "registering", registerCtrl("secexp", mgr, secretExportReconciler))

secretImportReconciler := sharing2.NewSecretImportReconciler(
secretImportReconciler := sharing.NewSecretImportReconciler(
mgr.GetClient(), secretExports, log.WithName("secimp"))
exitIfErr(entryLog, "registering", registerCtrl("secimp", mgr, secretImportReconciler))

secretReconciler := sharing2.NewSecretReconciler(
secretReconciler := sharing.NewSecretReconciler(
mgr.GetClient(), secretExports, log.WithName("secret"))
exitIfErr(entryLog, "registering", registerCtrl("secret", mgr, secretReconciler))
}
Expand Down
Loading

0 comments on commit 39cc310

Please sign in to comment.