Skip to content

Commit 6bbac74

Browse files
[ci] Revert "Cluster Reaper job for deleting bad pods (#3414)" (#3424)
This reverts commit df8da1b. Signed-off-by: Raymond Roestenburg <[email protected]>
1 parent 7373050 commit 6bbac74

File tree

8 files changed

+5
-216
lines changed

8 files changed

+5
-216
lines changed

cluster/images/splice-debug/Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@
55
# so we're hard-coding amd64, and accepting that this will break on arm64.
66
FROM --platform=linux/amd64 ubuntu:24.04@sha256:440dcf6a5640b2ae5c77724e68787a906afb8ddee98bf86db94eea8528c2c076
77
LABEL org.opencontainers.image.base.name="ubuntu:24.04"
8-
ARG KUBECTL_VERSION
9-
10-
RUN apt-get update && apt-get install -y \
11-
postgresql-client \
12-
curl \
13-
netcat-openbsd \
14-
jq
15-
16-
RUN curl -fL -LO https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
178

9+
RUN apt-get update && apt-get install -y postgresql-client curl netcat-openbsd
1810
RUN curl -sSLO https://github.com/fullstorydev/grpcurl/releases/download/v1.9.2/grpcurl_1.9.2_linux_amd64.deb && dpkg -i grpcurl_1.9.2_linux_amd64.deb && rm grpcurl_1.9.2_linux_amd64.deb
1911

2012
COPY target/LICENSE .

cluster/images/splice-debug/local.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
dir := $(call current_dir)
55

66
$(dir)/$(docker-build): $(dir)/target/LICENSE
7-
$(dir)/$(docker-build): build_arg := --build-arg KUBECTL_VERSION=v${KUBECTL_VERSION}
7+
88
$(dir)/target/LICENSE: ${SPLICE_ROOT}/cluster/images/LICENSE
99
cp $< $@

cluster/pulumi/infra/src/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export const InfraConfigSchema = z.object({
9393
extraWhitelistedIngress: z.array(z.string()).default([]),
9494
})
9595
.optional(),
96-
enableGCReaperJob: z.boolean().default(false),
9796
prometheus: z.object({
9897
storageSize: z.string(),
9998
retentionDuration: z.string(),
@@ -118,7 +117,7 @@ export type Config = z.infer<typeof InfraConfigSchema>;
118117
// eslint-disable-next-line
119118
// @ts-ignore
120119
const fullConfig = InfraConfigSchema.parse(clusterYamlConfig);
121-
export const enableGCReaperJob = fullConfig.infra.enableGCReaperJob;
120+
122121
console.error(
123122
`Loaded infra config: ${util.inspect(fullConfig, {
124123
depth: null,

cluster/pulumi/infra/src/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ import { config } from '@lfdecentralizedtrust/splice-pulumi-common';
66
import { clusterIsResetPeriodically, enableAlerts } from './alertings';
77
import { configureAuth0 } from './auth0';
88
import { configureCloudArmorPolicy } from './cloudArmor';
9-
import {
10-
cloudArmorConfig,
11-
clusterBaseDomain,
12-
clusterBasename,
13-
enableGCReaperJob,
14-
monitoringConfig,
15-
} from './config';
9+
import { cloudArmorConfig, clusterBaseDomain, clusterBasename, monitoringConfig } from './config';
1610
import { installExtraCustomResources } from './extraCustomResources';
1711
import {
1812
getNotificationChannel,
@@ -21,7 +15,6 @@ import {
2115
installClusterMaintenanceUpdateAlerts,
2216
} from './gcpAlerts';
2317
import { configureIstio, istioMonitoring } from './istio';
24-
import { deployGCPodReaper } from './maintenance';
2518
import { configureNetwork } from './network';
2619
import { configureObservability } from './observability';
2720
import { configureStorage } from './storage';
@@ -55,10 +48,6 @@ configureCloudArmorPolicy(cloudArmorConfig);
5548

5649
installExtraCustomResources();
5750

58-
if (enableGCReaperJob) {
59-
deployGCPodReaper('cluster-pod-gc-reaper', ['multi-validator'], { parent: network.ingressNs.ns });
60-
}
61-
6251
let configuredAuth0;
6352
if (config.envFlag('CLUSTER_CONFIGURE_AUTH0', true)) {
6453
configuredAuth0 = configureAuth0(clusterBasename, network.dnsNames);

cluster/pulumi/infra/src/maintenance.ts

Lines changed: 0 additions & 190 deletions
This file was deleted.

cluster/pulumi/multi-validator/src/multiNodeDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
numNodesPerInstance,
1111
} from '@lfdecentralizedtrust/splice-pulumi-common';
1212
import { ServiceMonitor } from '@lfdecentralizedtrust/splice-pulumi-common/src/metrics';
13-
import { Version } from '@lfdecentralizedtrust/splice-pulumi-common/src/version';
1413
import _ from 'lodash';
1514

15+
import { Version } from '../version';
1616
import { EnvironmentVariable, multiValidatorConfig } from './config';
1717

1818
export interface BaseMultiNodeArgs {

nix/shell.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,4 @@ in pkgs.mkShell {
133133

134134
PULUMI_VERSION="${pkgs.pulumi-bin.version}";
135135
GECKODRIVER="${pkgs.geckodriver}/bin/geckodriver";
136-
KUBECTL_VERSION="${pkgs.kubectl.version}";
137136
}

0 commit comments

Comments
 (0)