Skip to content

Commit

Permalink
Support ipFamilyPolicy on services
Browse files Browse the repository at this point in the history
Signed-off-by: Arend Lapere <[email protected]>
  • Loading branch information
UXabre committed Jan 25, 2023
1 parent c6ebc86 commit 6233bd6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
8 changes: 2 additions & 6 deletions charts/opensearch-dashboards/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security
---
## [2.8.0]
## [2.8.1]
### Added
- Support setting ipFamilyPolicy on Service
### Changed
- Updated OpenSearch Dashboards appVersion to 2.5.0
### Deprecated
### Removed
### Fixed
### Security
---
## [2.7.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion charts/opensearch-dashboards/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.8.0
version: 2.8.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions charts/opensearch-dashboards/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if (semverCompare ">= 1.23-0" .Capabilities.KubeVersion.Version) }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/opensearch-dashboards/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ serverHost: "0.0.0.0"

service:
type: ClusterIP
ipFamilyPolicy: SingleStack
port: 5601
loadBalancerIP: ""
nodePort: ""
Expand Down
4 changes: 2 additions & 2 deletions charts/opensearch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security
---
## [2.10.0]
## [2.10.1]
### Added
- Support setting ipFamilyPolicy on Service
### Changed
- Updated OpenSearch appVersion to 2.5.0
### Deprecated
### Removed
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion charts/opensearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.10.0
version: 2.10.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions charts/opensearch/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
{{ toYaml .Values.service.annotations | indent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if (semverCompare ">= 1.23-0" .Capabilities.KubeVersion.Version) }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
selector:
{{- include "opensearch.selectorLabels" . | nindent 4 }}
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/opensearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ service:
headless:
annotations: {}
type: ClusterIP
ipFamilyPolicy: SingleStack
nodePort: ""
annotations: {}
httpPortName: http
Expand Down

0 comments on commit 6233bd6

Please sign in to comment.