-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ReplicaCount to AKODeploymentConfig #248
Add ReplicaCount to AKODeploymentConfig #248
Conversation
1b61e4b
to
5026df8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #248 +/- ##
==========================================
+ Coverage 31.01% 31.42% +0.40%
==========================================
Files 31 31
Lines 2879 2896 +17
==========================================
+ Hits 893 910 +17
Misses 1916 1916
Partials 70 70
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes overall look good. Could you add a validation inside the validation webhook?
https://github.com/vmware-tanzu/load-balancer-operator-for-kubernetes/blob/main/api/v1alpha1/akodeploymentconfig_webhook.go
f1fa253
to
1b1516e
Compare
Added. |
Signed-off-by: Christian Ang <[email protected]>
1b1516e
to
09db096
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR does / why we need it:
This adds
spec.extraConfigs.replicaCount
toAKODeploymentConfig
, which will set theloadBalancerAndIngressService.config.replica_count
field in theload-balancer-and-ingress-service-data-values
secret.I also left the default if the field is unset at 1.
Which issue(s) this PR fixes:
Fixes #247
Describe testing done for PR:
Created an
AKODeploymentConfig
with a replica count of two and see that the data values was configured correctly. I also see two ako instances on my cluster.Special notes for your reviewer:
Release note:
New PR Checklist