Skip to content

Commit

Permalink
Merge pull request #148 from AKamyshnikova/logLevelFix
Browse files Browse the repository at this point in the history
Fix logLevel check in chart
  • Loading branch information
AKamyshnikova authored Jun 10, 2024
2 parents edcceb3 + 366d855 commit e0b5b3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/casskop/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{- end }}
securityContext:
runAsUser: 1000
{{- if .Values.debug.enabled }}
{{- if eq .Values.logLevel "DEBUG" }}
shareProcessNamespace: true
{{- end }}
containers:
Expand Down
2 changes: 1 addition & 1 deletion charts/multi-casskop/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
{{- end }}
securityContext:
runAsUser: 1000
{{- if .Values.debug.enabled }}
{{- if eq .Values.logLevel "DEBUG" }}
shareProcessNamespace: true
{{- end }}
containers:
Expand Down
8 changes: 7 additions & 1 deletion controllers/cassandracluster/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,12 @@ func createCassandraContainer(cc *api.CassandraCluster, status *api.CassandraClu
} else {
command = []string{"cassandra", "-f"}
}
cassandraEnv := commonBootstrapCassandraEnvVar(cc)
// This option required for nodetool correct execution
cassandraEnv = append(cassandraEnv, v1.EnvVar{
Name: "JAVA_TOOL_OPTIONS",
Value: "-Dcom.sun.jndi.rmiURLParsing=legacy",
})

cassandraContainer := v1.Container{
Name: cassandraContainerName,
Expand Down Expand Up @@ -973,7 +979,7 @@ func createCassandraContainer(cc *api.CassandraCluster, status *api.CassandraClu
ProcMount: func(s v1.ProcMountType) *v1.ProcMountType { return &s }(v1.DefaultProcMount),
ReadOnlyRootFilesystem: cc.Spec.ReadOnlyRootFilesystem,
},
Env: commonBootstrapCassandraEnvVar(cc),
Env: cassandraEnv,
ReadinessProbe: &v1.Probe{
InitialDelaySeconds: *cc.Spec.ReadinessInitialDelaySeconds,
TimeoutSeconds: *cc.Spec.ReadinessHealthCheckTimeout,
Expand Down

0 comments on commit e0b5b3c

Please sign in to comment.