Skip to content

Commit

Permalink
Make sure files can be only read (or optionally writable), default to…
Browse files Browse the repository at this point in the history
… AppVersion if image.tag is not defined in Helm Chart
  • Loading branch information
auguwu committed Dec 18, 2022
1 parent e5edab9 commit eeb040c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ package org.noelware.charted.gradle
import org.gradle.api.JavaVersion
import dev.floofy.utils.gradle.*

val VERSION = Version(0, 3, 1, ReleaseType("nightly"), true)
val VERSION = Version(0, 3, 2, ReleaseType("nightly"), true)
val JAVA_VERSION = JavaVersion.VERSION_17
4 changes: 2 additions & 2 deletions cli/src/main/kotlin/commands/ServerCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ServerCommand(private val terminal: Terminal): CliktCommand(
mustExist = true,
canBeFile = true,
canBeDir = false,
mustBeWritable = true,
mustBeWritable = false,
mustBeReadable = true,
canBeSymlink = true
)
Expand All @@ -58,7 +58,7 @@ class ServerCommand(private val terminal: Terminal): CliktCommand(
mustExist = false,
canBeFile = true,
canBeDir = false,
mustBeWritable = true,
mustBeWritable = false,
mustBeReadable = true,
canBeSymlink = true
)
Expand Down
4 changes: 2 additions & 2 deletions distribution/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# limitations under the License.

apiVersion: v2
appVersion: 0.3.1-nightly
appVersion: 0.3.2-nightly
kubeVersion: '>=1.23'
version: 0.3.1-nightly
version: 0.3.2-nightly
name: charted
home: https://charts.noelware.org
icon: https://cdn.noelware.cloud/branding/charted.png
Expand Down
2 changes: 1 addition & 1 deletion distribution/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
{{- end }}
containers:
- name: {{ include "charted.fullname" . }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
image: {{ printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: {{ default (include "charted.defaultContainerSecurityContext" .) .Values.global.containerSecurityContext | nindent 12 }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion distribution/chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
{{- end }}
containers:
- name: {{ include "charted.fullname" . }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
image: {{ printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: {{ default (include "charted.defaultContainerSecurityContext" .) .Values.global.containerSecurityContext | nindent 12 }}
resources:
Expand Down

0 comments on commit eeb040c

Please sign in to comment.