Skip to content

Commit

Permalink
Merge branch 'master' into node-problem-detector-0.8.15
Browse files Browse the repository at this point in the history
  • Loading branch information
stxm committed Apr 8, 2024
2 parents d9edd84 + e24b5c6 commit 6d7572c
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: actions/checkout@v2
- uses: deepakputhraya/action-pr-title@master
with:
regex: '^\[stable\/+.+]\s.+'
regex: '^\[stable\/+.+].*'
prefix_case_sensitive: false
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,17 @@ All commands to be run from the root of this repo.

`helm-docs`:

To generate chart `README.md` files from the [template](ci/README.md.gotmpl):
To generate chart `README.md` files from the [template](ci/README.md.gotmpl), you can run `helm-docs` via docker:

```console
<!-- docker -->
docker run --rm -v "${PWD}:/helm-docs" jnorwood/helm-docs:v1.11.3 --template-files ./ci/README.md.gotmpl
<!-- pre-commit -->
# install pre-commit https://pre-commit.com/#install
$ brew install pre-commit
$ pre-commit install
$ pre-commit install-hooks
```

Or alternatively install via [pre-commit](https://pre-commit.com/#install):

```console
pre-commit install
pre-commit install-hooks
```

`helm-conftest`:
Expand Down
2 changes: 1 addition & 1 deletion stable/k8s-resources/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.6.5
version: 0.6.6
appVersion: 0.0.1
name: k8s-resources
description: |
Expand Down
2 changes: 1 addition & 1 deletion stable/k8s-resources/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8s-resources

![Version: 0.6.5](https://img.shields.io/badge/Version-0.6.5-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
![Version: 0.6.6](https://img.shields.io/badge/Version-0.6.6-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)

Not an application but a Helm chart to create any and many resources in Kubernetes.

Expand Down
10 changes: 7 additions & 3 deletions stable/k8s-resources/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.HorizontalPodAutoscalers -}}
{{- range .Values.HorizontalPodAutoscalers }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
{{- if .namespace }}
Expand All @@ -26,13 +26,17 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .targetCPUUtilizationPercentage }}
{{- end }}
{{- if .targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .targetMemoryUtilizationPercentage }}
{{- end }}
---
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion stable/node-local-dns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: node-local-dns
version: 2.0.6
version: 2.0.7
appVersion: 1.22.23
maintainers:
- name: gabrieladt
Expand Down
3 changes: 2 additions & 1 deletion stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-local-dns

![Version: 2.0.6](https://img.shields.io/badge/Version-2.0.6-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square)
![Version: 2.0.7](https://img.shields.io/badge/Version-2.0.7-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square)

A chart to install node-local-dns.

Expand Down Expand Up @@ -52,6 +52,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| config.bindIp | bool | `false` | |
| config.commProtocol | string | `"force_tcp"` | |
| config.customConfig | string | `""` | |
| config.customUpstreamsvc | string | `""` | |
| config.dnsDomain | string | `"cluster.local"` | |
| config.dnsServer | string | `"172.20.0.10"` | |
| config.healthPort | int | `8080` | |
Expand Down
4 changes: 4 additions & 0 deletions stable/node-local-dns/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ spec:
- "-conf"
- "/etc/Corefile"
- "-upstreamsvc"
{{- if .Values.config.customUpstreamsvc }}
- "{{ .Values.config.customUpstreamsvc }}"
{{- else }}
- "{{ include "node-local-dns.fullname" . }}-upstream"
{{- end }}
- "-skipteardown={{ .Values.config.skipTeardown }}"
- "-setupinterface={{ .Values.config.setupInterface }}"
- "-setupiptables={{ .Values.config.setupIptables }}"
Expand Down
2 changes: 2 additions & 0 deletions stable/node-local-dns/templates/service-upstream.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.config.customUpstreamsvc -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,3 +18,4 @@ spec:
targetPort: 53
selector:
k8s-app: kube-dns
{{- end -}}
3 changes: 3 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ config:
# Virtual IP to be used by ipvs mode, to be used as --cluster-dns, must not collide.
localDns: "169.254.20.25"

# Use a custom upstreamsvc for -upstreamsvc
customUpstreamsvc: ""

# If true, it will bind 0.0.0.0, otherwise dnsServer and localDns will be used. https://github.com/bottlerocket-os/bottlerocket/issues/3711#issuecomment-1907087528
bindIp: false

Expand Down

0 comments on commit 6d7572c

Please sign in to comment.