Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

feat(approval-service): Consider nats connection in readiness probe #7723

Merged
merged 4 commits into from May 13, 2022

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented May 12, 2022

Part of #7613
This PR modifies the readiness probe of the approval service to consider the current state of the control plane connector. The service will now be considered ready, only when it's connected to the controlplane. Until that is the case, previous pods of the approval-service will not be terminated. This will ensure that there is always at least one replica available that is ready to receive events.

Integration test run: https://github.com/keptn/keptn/actions/runs/2313756860

@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #7723 (835e8f6) into master (a68297c) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 835e8f6 differs from pull request most recent head 99f07be. Consider uploading reports for the commit 99f07be to get more accurate results

@@           Coverage Diff           @@
##           master    #7723   +/-   ##
=======================================
  Coverage   60.00%   60.01%           
=======================================
  Files         558      558           
  Lines       31907    31907           
  Branches     1590     1590           
=======================================
+ Hits        19147    19149    +2     
+ Misses      11462    11460    -2     
  Partials     1298     1298           
Impacted Files Coverage Δ
...root-events-list/ktb-root-events-list.component.ts 100.00% <0.00%> (ø)
...s/ktb-sequence-view/ktb-sequence-view.component.ts 45.77% <0.00%> (+0.45%) ⬆️
Flag Coverage Δ
api 88.35% <ø> (ø)
approval-service 64.61% <ø> (ø)
bridge-server 67.62% <ø> (ø)
bridge2 74.04% <ø> (+0.02%) ⬆️
cli 43.04% <ø> (ø)
configuration-service 9.17% <ø> (ø)
distributor 70.75% <ø> (ø)
helm-service 49.07% <ø> (ø)
jmeter-service 25.29% <ø> (ø)
lighthouse-service 73.35% <ø> (ø)
mongodb-datastore 59.25% <ø> (ø)
remediation-service 79.77% <ø> (ø)
resource-service 81.37% <ø> (ø)
secret-service 82.53% <ø> (ø)
shipyard-controller 60.71% <ø> (ø)
statistics-service 59.29% <ø> (ø)
webhook-service 83.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@bacherfl bacherfl force-pushed the feat/7613/approval-svc-readiness branch from b2dc8ff to 6fa446c Compare May 12, 2022 12:13
@bacherfl bacherfl added the CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE label May 12, 2022
@bacherfl bacherfl marked this pull request as ready for review May 12, 2022 13:36
@bacherfl bacherfl requested a review from a team as a code owner May 12, 2022 13:36
warber
warber previously approved these changes May 12, 2022
Copy link
Contributor

@warber warber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -7,7 +7,7 @@ require (
github.com/google/uuid v1.3.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/keptn/go-utils v0.15.1-0.20220512082458-c5e1b7519bec
github.com/keptn/keptn/cp-connector v0.0.0-20220509104843-d040776782e2
github.com/keptn/keptn/cp-connector v0.0.0-20220512103206-c36faf0071dc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls update dependency to the newest

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@odubajDT odubajDT force-pushed the feat/7613/approval-svc-readiness branch from 7b410c0 to 99f07be Compare May 13, 2022 06:14
@sonarcloud
Copy link

sonarcloud bot commented May 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@odubajDT odubajDT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bacherfl bacherfl removed the CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE label May 13, 2022
@bacherfl bacherfl merged commit d170354 into master May 13, 2022
@mowies mowies deleted the feat/7613/approval-svc-readiness branch September 27, 2022 11:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants