Skip to content

Commit

Permalink
feat: Remove all loadbalancing handling from action (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
Santos92 authored Dec 3, 2024
1 parent 317fc77 commit 940f763
Show file tree
Hide file tree
Showing 27 changed files with 364 additions and 3,436 deletions.
596 changes: 298 additions & 298 deletions cloud-deploy/dist/index.js

Large diffs are not rendered by default.

59 changes: 1 addition & 58 deletions cloud-deploy/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ const readSecret = require('./utils/load-credentials');
const runScan = require('./utils/vulnerability-scanning');
const getImageWithSha256 = require('./manifests/image-sha256');
const publishPolicies = require('./policies/publish-policies');
const createExternalLoadbalancer = require('./loadbalancing/external/create-external-loadbalancer');
const configureInternalDomain = require('./loadbalancing/internal/create-internal-backend');
const configureExternalDomain = require('./loadbalancing/external/create-external-backend');
const configureExternalLBFrontend = require('./loadbalancing/external/create-external-frontend');
const configureInternalFrontend = require('./loadbalancing/internal/create-internal-frontend');
const {
checkPolicyExists,
setCloudArmorPolicyTarget,
checkPolicyTarget,
} = require('./loadbalancing/external/cloud-armor');
const checkPolicyExists = require('./utils/cloud-armor');
const {
sendScaleSetup,
sendDeployInfo,
Expand Down Expand Up @@ -208,54 +199,6 @@ const action = async () => {
),
);

await createExternalLoadbalancer(projectID, env);
if (domainMappings) {
await configureExternalLBFrontend(
projectID,
env,
[...domainMappings],
migrate,
);
await configureExternalDomain(
projectID,
serviceName,
env,
domainMappings,
protocol,
timeout,
platformGKE,
);
const updateCloudArmorPolicy = await checkPolicyTarget(
serviceName,
cloudArmorPolicy,
projectID,
);
if (!updateCloudArmorPolicy) {
await setCloudArmorPolicyTarget(
serviceName,
cloudArmorPolicy,
projectID,
);
}
}
if (internalTraffic) {
await configureInternalDomain(
projectID,
serviceName,
env,
protocol,
timeout,
platformGKE,
);
await configureInternalFrontend(
projectID,
serviceName,
env,
protocol,
platformGKE,
);
}

await Promise.all(requests);
}

Expand Down
56 changes: 0 additions & 56 deletions cloud-deploy/src/loadbalancing/external/cloud-armor.js

This file was deleted.

Loading

0 comments on commit 940f763

Please sign in to comment.