Skip to content

Commit 0b2c425

Browse files
committed
Remove option to disable secureCookies
1 parent eae8434 commit 0b2c425

5 files changed

Lines changed: 3 additions & 11 deletions

File tree

docs/deployment/bases/clustered/resources/shinyproxy-operator.deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ spec:
3131
# value: "0" # 0 is default
3232
# - name: SPO_PROBE_FAILURE_THRESHOLD
3333
# value: "5" # 5 is default
34-
# - name: SPO_DISABLE_SECURE_COOKIES
35-
# value: "TRUE" # when specifying the env variable with any value secure cookies are disabled (this by default the operator uses secure cookies)
3634
# - name: "SPO_LOG_LEVEL"
3735
# VALUE: "DEBUG" # by default DEBUG
3836
# - name: SPO_PROCESS_MAX_LIFETIME

docs/deployment/bases/namespaced/resources/shinyproxy-operator.deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ spec:
3131
# value: "0" # 0 is default
3232
# - name: SPO_PROBE_FAILURE_THRESHOLD
3333
# value: "5" # 5 is default
34-
# - name: SPO_DISABLE_SECURE_COOKIES
35-
# value: "TRUE" # when specifying the env variable with any value secure cookies are disabled (this by default the operator uses secure cookies)
3634
# - name: "SPO_LOG_LEVEL"
3735
# VALUE: "DEBUG" # by default DEBUG
3836
# - name: SPO_PROCESS_MAX_LIFETIME

src/main/kotlin/eu/openanalytics/shinyproxyoperator/Operator.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import kotlin.system.exitProcess
6060

6161
class Operator(client: NamespacedKubernetesClient? = null,
6262
mode: Mode? = null,
63-
disableSecureCookies: Boolean? = null,
6463
reconcileListener: IReconcileListener? = null,
6564
probeInitialDelay: Int? = null,
6665
probeFailureThreshold: Int? = null,
@@ -73,7 +72,6 @@ class Operator(client: NamespacedKubernetesClient? = null,
7372
private val client: NamespacedKubernetesClient
7473
val mode: Mode
7574
val namespace: String
76-
val disableSecureCookies: Boolean
7775
val probeInitialDelay: Int
7876
val probeFailureThreshold: Int
7977
val probeTimeout: Int
@@ -113,7 +111,6 @@ class Operator(client: NamespacedKubernetesClient? = null,
113111
else -> error("Unsupported operator mode: $it")
114112
}
115113
}
116-
this.disableSecureCookies = readConfigValue(disableSecureCookies, false, "SPO_DISABLE_SECURE_COOKIES") { true }
117114
this.probeInitialDelay = readConfigValue(probeInitialDelay, 0, "SPO_PROBE_INITIAL_DELAY", String::toInt)
118115
this.probeFailureThreshold = readConfigValue(probeFailureThreshold, 0, "SPO_PROBE_FAILURE_THRESHOLD", String::toInt)
119116
this.probeTimeout = readConfigValue(probeTimeout, 1, "SPO_PROBE_TIMEOUT", String::toInt)

src/test/kotlin/eu/openanalytics/shinyproxyoperator/MainIntegrationTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ class MainIntegrationTest : IntegrationTestBase() {
655655
@Test
656656
fun `may no re-create instance after remove`() = setup(
657657
Mode.NAMESPACED,
658-
disableSecureCookies = true
659658
) { namespace, shinyProxyClient, namespacedClient, _, operator, reconcileListener, _ ->
660659
if (chaosEnabled) return@setup // this test depends on timings and therefore it does not work with chaos enabled
661660
// 1. create a SP instance

src/test/kotlin/eu/openanalytics/shinyproxyoperator/helpers/IntegrationTestBase.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ abstract class IntegrationTestBase {
8383

8484
}
8585

86-
protected fun setup(mode: Mode, disableSecureCookies: Boolean = false, block: suspend (String, ShinyProxyClient, NamespacedKubernetesClient, NamespacedKubernetesClient, Operator, ReconcileListener, MockRecyclableChecker) -> Unit) {
86+
protected fun setup(mode: Mode, block: suspend (String, ShinyProxyClient, NamespacedKubernetesClient, NamespacedKubernetesClient, Operator, ReconcileListener, MockRecyclableChecker) -> Unit) {
8787
runBlocking {
8888

8989
// 1. Create the namespace
@@ -104,9 +104,9 @@ abstract class IntegrationTestBase {
104104
val reconcileListener = ReconcileListener()
105105

106106
val operator = if (stableClient.isStartupProbesSupported()) {
107-
Operator(namespacedKubernetesClient, mode, disableSecureCookies, reconcileListener, recyclableChecker=recyclableChecker)
107+
Operator(namespacedKubernetesClient, mode, reconcileListener, recyclableChecker=recyclableChecker)
108108
} else {
109-
Operator(namespacedKubernetesClient, mode, disableSecureCookies, reconcileListener, 40, 2, recyclableChecker=recyclableChecker)
109+
Operator(namespacedKubernetesClient, mode, reconcileListener, 40, 2, recyclableChecker=recyclableChecker)
110110
}
111111

112112
Operator.setOperatorInstance(operator)

0 commit comments

Comments
 (0)