This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watch k8s secrets and update oidc client secrets (#54)
* watch secret changes and update config Signed-off-by: huabing zhao <[email protected]> * add test Signed-off-by: huabing zhao <[email protected]> * add controller test to coverage Signed-off-by: huabing zhao <[email protected]> * fix check Signed-off-by: huabing zhao <[email protected]> * fix check Signed-off-by: huabing zhao <[email protected]> * fix check Signed-off-by: huabing zhao <[email protected]> * fix test Signed-off-by: huabing zhao <[email protected]> * set register order Signed-off-by: huabing zhao <[email protected]> * fix test Signed-off-by: huabing zhao <[email protected]> * minor changes Signed-off-by: huabing zhao <[email protected]> * Update internal/k8s/controller.go Co-authored-by: Ignasi Barrera <[email protected]> * Update internal/k8s/controller.go Co-authored-by: Ignasi Barrera <[email protected]> * Update internal/k8s/controller.go Co-authored-by: Ignasi Barrera <[email protected]> * address comments Signed-off-by: huabing zhao <[email protected]> * bridge controller log to telemetry.Logger Signed-off-by: huabing zhao <[email protected]> * remove unused test files Signed-off-by: huabing zhao <[email protected]> * add more tests Signed-off-by: huabing zhao <[email protected]> * remove configuration copy Signed-off-by: huabing zhao <[email protected]> * rename secret controller Signed-off-by: huabing zhao <[email protected]> * fix lint Signed-off-by: huabing zhao <[email protected]> * Update Makefile Co-authored-by: Ignasi Barrera <[email protected]> * Update Makefile Co-authored-by: Ignasi Barrera <[email protected]> * Update internal/k8s/secret_controller_test.go Co-authored-by: Ignasi Barrera <[email protected]> * address comments Signed-off-by: huabing zhao <[email protected]> * fix e2e test Signed-off-by: huabing zhao <[email protected]> * seperate reconcile and controller test Signed-off-by: huabing zhao <[email protected]> * move controller initialization to PreRun Signed-off-by: huabing zhao <[email protected]> * fix lint Signed-off-by: huabing zhao <[email protected]> * fix e2e test Signed-off-by: huabing zhao <[email protected]> * add more tests Signed-off-by: huabing zhao <[email protected]> * add validate rule for client secret Signed-off-by: huabing zhao <[email protected]> --------- Signed-off-by: huabing zhao <[email protected]> Co-authored-by: Ignasi Barrera <[email protected]>
- Loading branch information
1 parent
bef473d
commit 090a9bd
Showing
32 changed files
with
1,472 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ GOLANGCI_LINT ?= github.com/golangci/golangci-lint/cmd/[email protected] | |
GOSIMPORTS ?= github.com/rinchsan/gosimports/cmd/[email protected] | ||
LICENSER ?= github.com/liamawhite/[email protected] | ||
KIND ?= sigs.k8s.io/[email protected] | ||
ENVTEST ?= sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
|
||
NAME ?= authservice | ||
TARGETS ?= linux-amd64 linux-arm64 #darwin-amd64 darwin-arm64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.