This repository was archived by the owner on Apr 24, 2024. It is now read-only.
pass APIExport name as first arg to manager#9
Merged
ncdc merged 1 commit intokcp-dev:mainfrom Jun 17, 2022
Merged
Conversation
Member
|
@robinbobbitt thanks! If you wanted, we could do something like this, to support variable replacement instead of hard-coding the project name: diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml
index 6930af0..6224b59 100644
--- a/config/default/kustomization.yaml
+++ b/config/default/kustomization.yaml
@@ -72,3 +72,6 @@ vars:
# kind: Service
# version: v1
# name: webhook-service
+
+configurations:
+ - kustomizeconfig.yaml
diff --git a/config/default/kustomizeconfig.yaml b/config/default/kustomizeconfig.yaml
new file mode 100644
index 0000000..b629681
--- /dev/null
+++ b/config/default/kustomizeconfig.yaml
@@ -0,0 +1,5 @@
+nameReference:
+- kind: APIExport
+ fieldSpecs:
+ - kind: Deployment
+ path: spec/template/spec/containers/args
diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml
index 131a314..7baab3a 100644
--- a/config/default/manager_auth_proxy_patch.yaml
+++ b/config/default/manager_auth_proxy_patch.yaml
@@ -32,3 +32,4 @@ spec:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:8080"
- "--leader-elect"
+ - data.my.domain
|
Contributor
Author
|
Thanks @ncdc - will take a look! |
Signed-off-by: Robin Y Bobbitt <rbobbitt@redhat.com>
Contributor
Author
|
Thanks for the suggestion @ncdc .. Ready for another look. |
ncdc
approved these changes
Jun 17, 2022
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently if you deploy the controller as documented in the README, the manager logs show the following failure:
Note the wrong name for APIExport. The controller expects the APIExport name as the first arg to the manager container.
Signed-off-by: Robin Y Bobbitt rbobbitt@redhat.com