File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1919 DOCKER_TAG="$(curl -H "Authorization: Bearer ${GHCR_TOKEN}" -L -s 'https://ghcr.io/v2/nextcloud-releases/all-in-one/tags/list?page_size=1024' | jq '.tags' | sed 's|"||g;s|[[:space:]]||g;s|,||g' | grep '^20[0-9_]\+' | grep -v latest | sort -r | head -1)"
2020 export DOCKER_TAG
2121 set +x
22- if [ -n "$DOCKER_TAG" ] && ! grep -q "$DOCKER_TAG" ./nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then
22+ if [ -n "$DOCKER_TAG" ] && ! grep -q "aio-nextcloud: $DOCKER_TAG" ./nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then
2323 sudo bash nextcloud-aio-helm-chart/update-helm.sh "$DOCKER_TAG"
2424 fi
2525 - name : Create Pull Request
Original file line number Diff line number Diff line change @@ -259,6 +259,15 @@ find ./ \( -not -name '*service.yaml' -name '*.yaml' \) -exec sed -i "/^status:/
259259find ./ \( -not -name ' *persistentvolumeclaim.yaml' -name ' *.yaml' \) -exec sed -i " /resources:/d" \{ } \;
260260# shellcheck disable=SC1083
261261find ./ -name " *namespace.yaml" -exec sed -i " 1i\\ {{- if and \(ne .Values.NAMESPACE \" default\" \) \(ne .Values.NAMESPACE_DISABLED \" yes\" \) }}" \{ } \;
262+ # Additional config
263+ cat << EOL > /tmp/additional-namespace.config
264+ {{- if eq (.Values.RPSS_ENABLED | default "no") "yes" }}
265+ labels:
266+ pod-security.kubernetes.io/enforce: restricted
267+ {{- end }}
268+ EOL
269+ # shellcheck disable=SC1083
270+ find ./ -name " *namespace.yaml" -exec sed -i " /namespace.*/r /tmp/additional-namespace.config" \{ } \;
262271# shellcheck disable=SC1083
263272find ./ -name " *namespace.yaml" -exec sed -i " $ a {{- end }}" \{ } \;
264273# shellcheck disable=SC1083
You can’t perform that action at this time.
0 commit comments