Skip to content

Commit

Permalink
151 pr 149 forces initcontainers for everyone (#152)
Browse files Browse the repository at this point in the history
* Fix bug #151

* Bump versions

* After test

* Update doc

* Fixes #151

* Fixes #151
  • Loading branch information
knutia committed Aug 21, 2024
1 parent 80ba74e commit 293b6c3
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Read Helm's official [Charts Development Guide][helm-development].
## Testing

```
./test.sh
./helm-test.sh
```
4 changes: 2 additions & 2 deletions dotnet/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: .NET Core Helm Chart
name: dotnet
version: 13.0.1
version: 13.1.1
dependencies:
- name: libchart
version: 4.1.0
version: 4.1.1
repository: file://../libchart
6 changes: 3 additions & 3 deletions golang/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: libchart
repository: file://../libchart
version: 0.3.0
digest: sha256:e51db0ee894288ecbe88427507cf23b80d5f5449c5f47d27044675537092ca49
generated: "2022-02-17T17:13:18.1276499+01:00"
version: 4.1.1
digest: sha256:a0d373dba375b132066231779128bed30eccc46cb8c76e8f38949b42ccdaf919
generated: "2024-08-21T10:45:20.463196+02:00"
4 changes: 2 additions & 2 deletions golang/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: golan Helm Chart
name: golang
version: 17.0.1
version: 17.1.1
dependencies:
- name: libchart
version: 4.1.0
version: 4.1.1
repository: file://../libchart
1 change: 1 addition & 0 deletions helm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ for chart in */Chart.yaml; do
rm -rf data temp
}
done

4 changes: 2 additions & 2 deletions java/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Java Helm Chart
name: java
version: 10.1.0
version: 10.1.1
dependencies:
- name: libchart
version: 4.1.0
version: 4.1.1
repository: file://../libchart
8 changes: 4 additions & 4 deletions java/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ image:
# - secret1
# - secret2

initContainers:
- name: network-proxy
image: network-proxy:1.0
restartPolicy: Always
initContainers: {}
# - name: network-proxy
# image: network-proxy:1.0
# restartPolicy: Always

nameOverride: ""
fullnameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion libchart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# 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: 4.1.0
version: 4.1.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
11 changes: 4 additions & 7 deletions libchart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ image:
# - secret1
# - secret2

initContainers:
- name: network-proxy
image: network-proxy:1.0
restartPolicy: Always
initContainers: {}
# - name: network-proxy
# image: network-proxy:1.0
# restartPolicy: Always

nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -202,8 +202,5 @@ volumes: []
# - key: ssh-pub-key
# path: id_rsa.pub

autoscaling:
enabled: false

# https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
dnsConfig: {}
6 changes: 3 additions & 3 deletions nodejs/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: libchart
repository: file://../libchart
version: 0.3.0
digest: sha256:e51db0ee894288ecbe88427507cf23b80d5f5449c5f47d27044675537092ca49
generated: "2022-02-17T17:15:23.372119587+01:00"
version: 4.1.1
digest: sha256:a0d373dba375b132066231779128bed30eccc46cb8c76e8f38949b42ccdaf919
generated: "2024-08-21T10:45:25.684476+02:00"
4 changes: 2 additions & 2 deletions nodejs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Node.js Helm Chart
name: nodejs
version: 17.0.1
version: 17.1.1
dependencies:
- name: libchart
version: 4.1.0
version: 4.1.1
repository: file://../libchart
12 changes: 6 additions & 6 deletions policy/base_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ no_violations {
empty(deny)
}

no_warnings {
empty(warn)
}
# no_warnings {
# empty(warn)
# }

test_deployment_without_security_context {
deny["Containers must not run as root in Deployment sample"] with input as {"kind": "Deployment", "metadata": { "name": "sample" }}
Expand All @@ -26,6 +26,6 @@ test_services_not_denied {
no_violations with input as {"kind": "Service", "metadata": { "name": "sample" }}
}

test_services_issue_warning {
warn["Found service sample but services are not allowed"] with input as {"kind": "Service", "metadata": { "name": "sample" }}
}
# test_services_issue_warning {
# warn["Found service sample but services are not allowed"] with input as {"kind": "Service", "metadata": { "name": "sample" }}
# }
4 changes: 2 additions & 2 deletions web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
appVersion: "1.0"
description: Helm chart for deployment of web servers
name: web
version: 14.0.1
version: 14.1.1
dependencies:
- name: libchart
version: 4.1.0
version: 4.1.1
repository: file://../libchart

0 comments on commit 293b6c3

Please sign in to comment.