Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
[common] add ipFamilyPolicy and ipFamilies (#109)
Browse files Browse the repository at this point in the history
* feat(service): add ipFamilyPolicy and ipFamilies
  • Loading branch information
AlexanderBabel authored Nov 22, 2021
1 parent aa8b14a commit 2cb3d00
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/stable/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: Function library for k8s-at-home charts
type: library
version: 4.1.0
version: 4.2.0
kubeVersion: ">=1.16.0-0"
keywords:
- k8s-at-home
Expand Down
10 changes: 9 additions & 1 deletion charts/stable/common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# common

![Version: 4.1.0](https://img.shields.io/badge/Version-4.1.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 4.2.0](https://img.shields.io/badge/Version-4.2.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)

Function library for k8s-at-home charts

Expand Down Expand Up @@ -64,6 +64,8 @@ N/A
| addons.codeserver.image.tag | string | `"3.9.2"` | Specify the code-server image tag |
| addons.codeserver.ingress.enabled | bool | `false` | Enable an ingress for the code-server add-on. |
| addons.codeserver.service.enabled | bool | `true` | Enable a service for the code-server add-on. |
| addons.codeserver.service.ipFamilies | list | `["IPv4"]` | The ip families that should be used. Options: IPv4, IPv6 |
| addons.codeserver.service.ipFamilyPolicy | string | `"SingleStack"` | Specify the ip policy. Options: SingleStack, PreferDualStack, RequireDualStack |
| addons.codeserver.volumeMounts | list | `[]` | Specify a list of volumes that get mounted in the code-server container. At least 1 volumeMount is required! |
| addons.codeserver.workingDir | string | `""` | Specify the working dir that will be opened when code-server starts If not given, the app will default to the mountpah of the first specified volumeMount |
| addons.netshoot | object | See values.yaml | The common library supports adding a netshoot add-on to troubleshoot network issues within a Pod. It can be configured under this key. |
Expand Down Expand Up @@ -222,6 +224,12 @@ All notable changes to this library Helm chart will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [4.2.0]

#### Added

- Support for defining ipFamilyPolicy and ipFamilies in service resources

### [4.1.0]

#### Changed
Expand Down
6 changes: 6 additions & 0 deletions charts/stable/common/README_CHANGELOG.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ All notable changes to this library Helm chart will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [4.2.0]

#### Added

- Support for defining ipFamilyPolicy and ipFamilies in service resources

### [4.1.0]

#### Changed
Expand Down
7 changes: 7 additions & 0 deletions charts/stable/common/templates/classes/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ spec:
{{- if $values.publishNotReadyAddresses }}
publishNotReadyAddresses: {{ $values.publishNotReadyAddresses }}
{{- end }}
{{- if $values.ipFamilyPolicy }}
ipFamilyPolicy: {{ $values.ipFamilyPolicy }}
{{- end }}
{{- with $values.ipFamilies }}
ipFamilies:
{{ toYaml . | nindent 4 }}
{{- end }}
ports:
{{- range $name, $port := $values.ports }}
{{- if $port.enabled }}
Expand Down
5 changes: 5 additions & 0 deletions charts/stable/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ addons:
# nodePort:
annotations: {}
labels: {}
# -- Specify the ip policy. Options: SingleStack, PreferDualStack, RequireDualStack
ipFamilyPolicy: SingleStack
# -- The ip families that should be used. Options: IPv4, IPv6
ipFamilies:
- IPv4

ingress:
# -- Enable an ingress for the code-server add-on.
Expand Down

0 comments on commit 2cb3d00

Please sign in to comment.