3012 - Probes for external-secrets#3131
Conversation
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
|
Updated failing Helm unit tests for livenessProbes: ➜ external-secrets git:(issue/3012) ✗ make helm.test
./hack/helm.generate.sh deploy/crds deploy/charts/external-secrets
13:07:01 [ OK ] Finished generating helm chart files
### Chart [ external-secrets ] deploy/charts/external-secrets/
PASS test cert controller deployment deploy/charts/external-secrets/tests/cert_controller_test.yaml
PASS test controller deployment deploy/charts/external-secrets/tests/controller_test.yaml
|
Signed-off-by: Benjamin Walterscheid <52604859+fdberlking@users.noreply.github.com>
…veAddr flag Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
@Skarlso, could you quickly help me, if the issue is just with |
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
I think so... 🤔 :D |
At least I'm getting closer 😄 but it was a good learning experience 👍 |
|
Now you just need to run |
|
Readme if missing these: +++ b/deploy/charts/external-secrets/README.md
@@ -106,6 +106,13 @@ The command removes all the Kubernetes components associated with the chart and
| imagePullSecrets | list | `[]` | |
| installCRDs | bool | `true` | If set, install and upgrade CRDs through helm chart. |
| leaderElect | bool | `false` | If true, external-secrets will perform leader election between instances to ensure no more than one instance of external-secrets operates at a time. |
+| livenessProbe.address | string | `""` | Address for readiness probe |
+| livenessProbe.failureThreshold | int | `5` | |
+| livenessProbe.initialDelaySeconds | int | `10` | |
+| livenessProbe.periodSeconds | int | `10` | |
+| livenessProbe.port | int | `8082` | ReadinessProbe port for kubelet |
+| livenessProbe.successThreshold | int | `1` | |
+| livenessProbe.timeoutSeconds | int | `5` | |
| metrics.listen.port | int | `8080` | |
| metrics.service.annotations | object | `{}` | Additional service annotations |
| metrics.service.enabled | bool | `false` | Enable if you use another monitoring tool than Prometheus to scrape the metrics |
You have to run |
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
I have not fixed my issue when pulling the latest changes from master, but it should be okay now. I had an issue with make helm.docs
make: *** [helm.docs] Error 125After restarting Podman, the issue was resolved make helm.docs
time="2024-02-27T11:46:02Z" level=info msg="Found Chart directories [.]"
time="2024-02-27T11:46:02Z" level=info msg="Generating README Documentation for chart /helm-docs"
time="2024-02-27T11:46:02Z" level=warning msg="Could not open chart README file /helm-docs/README.md, skipping chart"At least I don't get a critical *** error anymore. |
Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com>
|
@fdberlking nooooo... helm lint is failing again. :D |
|
Hmmm, is it failing because it's installing the wrong version of the controller? The command arg is obviously there. So I guess it's just installing an older version via the helm chart. Not the one that is being developed here. |
|
Yah. This should probably pull the branch or something instead of main. @moolen Can we safely ignore a failure if the helm chart is dealing with a new value that has been introduced but it's pulling the wrong branch binary, so it's failing because it's expecting a value to be there that is not yet in main? |
Sorry, I didn't have time yesterday to further look into the failing checks. Nevertheless, I will also check the issue with check-diff again as everything should be actually place now. |
Signed-off-by: Benjamin Walterscheid <git@berlking.io>
Signed-off-by: Benjamin Walterscheid <git@berlking.io>
Signed-off-by: Benjamin Walterscheid <git@berlking.io>
|
@Skarlso finally some progress at the end of the week 😄 I definitely learnt a lot about Makefile and Helm unit tests during this PR. Overall, this should be good to go now (see results below). external-secrets % make lint
...
23:08:57 [ OK ] Finished lintingexternal-secrets % make check-diff
23:09:15 [ OK ] Finished generating deepcopy and crds
/Library/Developer/CommandLineTools/usr/bin/make -C ./hack/api-docs build
docker build -t github.com/external-secrets-mkdocs:latest -f Dockerfile .
[+] Building 0.1s (10/10) FINISHED
...
23:09:55 [ OK ] Finished linting
23:09:55 [ .. ] checking that branch is clean
23:09:55 [ OK ] branch is cleanexternal-secrets % make helm.docs
time="2024-02-29T22:11:49Z" level=info msg="Found Chart directories [.]"
time="2024-02-29T22:11:49Z" level=info msg="Generating README Documentation for chart /helm-docs"external-secrets % make reviewable
23:12:18 [ OK ] Finished generating deepcopy and crds
/Library/Developer/CommandLineTools/usr/bin/make -C ./hack/api-docs build
docker build -t github.com/external-secrets-mkdocs:latest -f Dockerfile .
[+] Building 0.1s (10/10) FINISHED
...
INFO - Documentation built in 4.54 seconds
./hack/helm.generate.sh deploy/crds deploy/charts/external-secrets
23:12:49 [ OK ] Finished generating helm chart files
mkdir -p bin/deploy/manifests
helm template external-secrets deploy/charts/external-secrets -f deploy/manifests/helm-values.yaml > bin/deploy/manifests/external-secrets.yaml
time="2024-02-29T22:12:49Z" level=info msg="Found Chart directories [.]"
time="2024-02-29T22:12:49Z" level=info msg="Generating README Documentation for chart /helm-docs"
test -s /Users/xxx/GitHub/external-secrets/bin/golangci-lint && /Users/xxx/GitHub/external-secrets/bin/golangci-lint version --format short | grep -q 1.54.2 || \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /Users/xxx/GitHub/external-secrets/bin v1.54.2
23:12:51 [ OK ] Finished linting |
|
@fdberlking You're a legend! Well done! Thanks for investing the time into this. :) I really appreciate it. :) |
This reverts commit 7eebfa0. Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
* issue/3012 - introduced livenessProbe for core controller Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - updated livenessprobe for core controller Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - updated failing tests for controller_test.yaml Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - liveness probes with missing LivenessEndpointName and liveAddr flag Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - added missing live-addr core controller flag Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - removed obsolete align Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - added missing livenessProbe to README Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - updated docu for livenessProbes Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> * issue/3012 - corrected description within values.yaml for check-diff Signed-off-by: Benjamin Walterscheid <git@berlking.io> * issue/3012 - minor README corrections Signed-off-by: Benjamin Walterscheid <git@berlking.io> * issue/3012 - updated snapshots for fortanix and onboardbase Signed-off-by: Benjamin Walterscheid <git@berlking.io> --------- Signed-off-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> Signed-off-by: Benjamin Walterscheid <52604859+fdberlking@users.noreply.github.com> Signed-off-by: Benjamin Walterscheid <git@berlking.io> Co-authored-by: Benjamin Walterscheid <benjamin.walterscheid@de.ibm.com> Signed-off-by: Bude8 <henryblee8@gmail.com>
…xternal-secrets#3213) This reverts commit 7eebfa0. Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> Signed-off-by: Bude8 <henryblee8@gmail.com>




Problem Statement
Introducing livenessProbe for the core controller.
Related Issue
Fixes #3012
Proposed Changes
Checklist
git commit --signoffmake buildmake lintmake testmake check-diffmake docsmake helm.docsmake helm.testmake reviewable