fix: make sure autopermissions sets the group owner correctly (#994)
* fix: make sure autopermissions sets the group owner correctly * add test fix
This commit is contained in:
@@ -22,4 +22,4 @@ name: common-test
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/apps/tree/master/charts/library/common-test
|
- https://github.com/truecharts/apps/tree/master/charts/library/common-test
|
||||||
type: application
|
type: application
|
||||||
version: 3.1.1
|
version: 3.1.2
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ maintainers:
|
|||||||
- email: info@truecharts.org
|
- email: info@truecharts.org
|
||||||
name: TrueCharts
|
name: TrueCharts
|
||||||
url: truecharts.org
|
url: truecharts.org
|
||||||
- email: kjeld@schouten-lebbing.nl
|
|
||||||
name: Ornias1993
|
|
||||||
url: truecharts.org
|
|
||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 7.0.13
|
version: 7.0.14
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ before chart installation.
|
|||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
- "echo 'Automatically correcting permissions...';{{ range $_, $hpm := $hostPathMounts }}chown -R {{ $group }} {{ $hpm.mountPath | squote }}; chmod -R g+w {{ $hpm.mountPath | squote }};{{ end }}"
|
- "echo 'Automatically correcting permissions...';{{ range $_, $hpm := $hostPathMounts }}chown -R :{{ $group }} {{ $hpm.mountPath | squote }}; chmod -R g+w {{ $hpm.mountPath | squote }};{{ end }}"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range $name, $hpm := $hostPathMounts }}
|
{{- range $name, $hpm := $hostPathMounts }}
|
||||||
- name: {{ $name }}
|
- name: {{ $name }}
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ func (suite *PersistenceVolumeClaimTestSuite) TestMetaData() {
|
|||||||
"app.kubernetes.io/instance": "common-test",
|
"app.kubernetes.io/instance": "common-test",
|
||||||
"app.kubernetes.io/managed-by": "Helm",
|
"app.kubernetes.io/managed-by": "Helm",
|
||||||
"app.kubernetes.io/name": "common-test",
|
"app.kubernetes.io/name": "common-test",
|
||||||
"app.kubernetes.io/version":"none",
|
"app.kubernetes.io/version":"latest",
|
||||||
"helm.sh/chart": "common-test-3.1.0",
|
"helm.sh/chart": "common-test-3.1.2",
|
||||||
}
|
}
|
||||||
|
|
||||||
tests := map[string]struct {
|
tests := map[string]struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user