-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: warn the user of the deprecation of load-balancer-ip
Warn the chart's user of the deprecation of the Service loadBalacerIP field since Kubernetes v1.24.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if .Values.service.loadBalancerIP }} | ||
service.loadBalancerIP: | ||
You have defined the value of service.loadBalancerIP for this release. Please | ||
be mindful that this field has been deprecated as of Kubernetes v1.24 and may | ||
be removed from the API in a later release. | ||
|
||
Please refer to the Kubernetes documentation for more information. | ||
{{- end }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
suite: NOTES.txt | ||
|
||
templates: | ||
- NOTES.txt | ||
|
||
tests: | ||
- it: warns the user of the deprecation of loadBalancerIP | ||
set: | ||
service.loadBalancerIP: 1.1.1.1 | ||
asserts: | ||
- matchRegexRaw: | ||
pattern: 'service.loadBalancerIP:' | ||
|
||
- it: does not emit a warning for loadBalancerIP when not set | ||
set: | ||
service.loadBalancerIP: null | ||
asserts: | ||
- notMatchRegexRaw: | ||
pattern: 'service.loadBalancerIP:' |