From bccca5832e7f37778354e3005ebf8a8d5c2fae42 Mon Sep 17 00:00:00 2001 From: Joy Liu <34288846+joyliu-q@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:24:32 -0700 Subject: [PATCH] Bump Redis Persistence To Also Update Command (#178) * Add ConfigMap for Persistent Redis Configuration * Add initial changes needed * Update snapshots * i am but a servant to the great ol' Code Coverage * Cleanup * Snapshott * Failing chart test :D * Woooo * the anti-power of eunsoo shin * bet * lol * Better testing * Abstract away configmap interface * Update snapshot and naming conventions * Update host path * Update host path * Oops :'D * Bump version again --- cdk/kittyhawk/.projenrc.js | 2 +- cdk/kittyhawk/package.json | 2 +- cdk/kittyhawk/src/application/redis.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cdk/kittyhawk/.projenrc.js b/cdk/kittyhawk/.projenrc.js index 1ad4f333..b0c0478c 100644 --- a/cdk/kittyhawk/.projenrc.js +++ b/cdk/kittyhawk/.projenrc.js @@ -16,7 +16,7 @@ const project = new TypeScriptProject({ }, }); -project.addFields({ ["version"]: "1.1.9" }); +project.addFields({ ["version"]: "1.1.10" }); project.prettier?.ignoreFile?.addPatterns("src/imports"); project.testTask.steps.forEach((step) => { if (step.exec) { diff --git a/cdk/kittyhawk/package.json b/cdk/kittyhawk/package.json index ac1469ff..c25c114d 100644 --- a/cdk/kittyhawk/package.json +++ b/cdk/kittyhawk/package.json @@ -65,7 +65,7 @@ "main": "lib/index.js", "license": "MIT", "homepage": "https://kittyhawk.pennlabs.org", - "version": "1.1.9", + "version": "1.1.10", "jest": { "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", diff --git a/cdk/kittyhawk/src/application/redis.ts b/cdk/kittyhawk/src/application/redis.ts index 5cfea2c4..1a4abbba 100644 --- a/cdk/kittyhawk/src/application/redis.ts +++ b/cdk/kittyhawk/src/application/redis.ts @@ -102,6 +102,9 @@ export class RedisApplication extends Application { deployment: { image: redisProps.deployment?.image ?? "redis", tag: redisProps.deployment?.tag ?? "6.0", + ...(redisProps.persistData + ? { cmd: ["redis-server", "/redis-master/redis.conf"] } + : {}), volumeMounts: [ ...(redisProps.persistData ? [