We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7d81c2 commit a24270fCopy full SHA for a24270f
1 file changed
src/main/kotlin/eu/openanalytics/shinyproxyoperator/components/PodTemplateSpecFactory.kt
@@ -33,6 +33,12 @@ class PodTemplateSpecFactory {
33
34
val operator = Operator.getOperatorInstance()
35
36
+ val version = if (shinyProxyInstance.hashOfSpec == shinyProxy.hashOfCurrentSpec) {
37
+ System.currentTimeMillis()
38
+ } else {
39
+ 0
40
+ }
41
+
42
//@formatter:off
43
val template = PodTemplateSpecBuilder()
44
.withNewMetadata()
@@ -75,6 +81,10 @@ class PodTemplateSpecFactory {
75
81
EnvVarBuilder()
76
82
.withName("PROXY_REALM_ID")
77
83
.withValue(shinyProxy.realmId)
84
+ .build(),
85
+ EnvVarBuilder()
86
+ .withName("PROXY_VERSION")
87
+ .withValue(version.toString())
78
88
.build()))
79
89
.withVolumeMounts(VolumeMountBuilder()
80
90
.withName("config-volume")
0 commit comments