-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: WoodenMaiden <[email protected]>
- Loading branch information
1 parent
1eeeaff
commit 053089a
Showing
47 changed files
with
1,042 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ | |
.project | ||
.idea/ | ||
*.tmproj | ||
# img folder | ||
img/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 2.14.1 | ||
- name: virtuoso | ||
repository: file://../virtuoso | ||
version: 0.1.0 | ||
digest: sha256:c582e2a872feb8c8cb2fe1c1587f0e46b2170284be489805c86fe8c42584600f | ||
generated: "2024-02-09T15:18:42.633332491+01:00" | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.19.1 | ||
digest: sha256:c883732817d9aaa3304f7b3109262aa338959de15b432dc5a2dbde13d2e136a5 | ||
generated: "2024-03-27T14:58:35.744336265+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# img folder | ||
img/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
151 changes: 18 additions & 133 deletions
151
agrold-javaweb/charts/agrold-javaweb/charts/common/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
agrold-javaweb/charts/agrold-javaweb/charts/common/templates/_compatibility.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{/* | ||
Copyright VMware, Inc. | ||
SPDX-License-Identifier: APACHE-2.0 | ||
*/}} | ||
|
||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* | ||
Return true if the detected platform is Openshift | ||
Usage: | ||
{{- include "common.compatibility.isOpenshift" . -}} | ||
*/}} | ||
{{- define "common.compatibility.isOpenshift" -}} | ||
{{- if .Capabilities.APIVersions.Has "security.openshift.io/v1" -}} | ||
{{- true -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Render a compatible securityContext depending on the platform. By default it is maintained as it is. In other platforms like Openshift we remove default user/group values that do not work out of the box with the restricted-v1 SCC | ||
Usage: | ||
{{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) -}} | ||
*/}} | ||
{{- define "common.compatibility.renderSecurityContext" -}} | ||
{{- $adaptedContext := .secContext -}} | ||
{{- if .context.Values.global.compatibility -}} | ||
{{- if .context.Values.global.compatibility.openshift -}} | ||
{{- if or (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "force") (and (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "auto") (include "common.compatibility.isOpenshift" .context)) -}} | ||
{{/* Remove incompatible user/group values that do not work in Openshift out of the box */}} | ||
{{- $adaptedContext = omit $adaptedContext "fsGroup" "runAsUser" "runAsGroup" -}} | ||
{{- if not .secContext.seLinuxOptions -}} | ||
{{/* If it is an empty object, we remove it from the resulting context because it causes validation issues */}} | ||
{{- $adaptedContext = omit $adaptedContext "seLinuxOptions" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- omit $adaptedContext "enabled" | toYaml -}} | ||
{{- end -}} |
5 changes: 5 additions & 0 deletions
5
agrold-javaweb/charts/agrold-javaweb/charts/common/templates/_errors.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.