Skip to content

Commit 7bd8332

Browse files
feat(deploy): fixup
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1 parent 0f411be commit 7bd8332

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/deployment/rhdh/deployment.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export class RHDHDeployment {
3939
this.rhdhUrl = this._buildBaseUrl();
4040
}
4141

42-
async deploy(options?: { timeout?: number | null, forceUpdate?: boolean }): Promise<void> {
42+
async deploy(options?: {
43+
timeout?: number | null;
44+
forceUpdate?: boolean;
45+
}): Promise<void> {
4346
// Default 600s, custom number to override, null to skip and let consumer control the timeout
4447
const timeout = options?.timeout === undefined ? 600_000 : options.timeout;
4548
if (timeout !== null) {
@@ -60,12 +63,12 @@ export class RHDHDeployment {
6063

6164
if (this.deploymentConfig.method === "helm") {
6265
const isUpgrade = await this._deploymentExists();
63-
await this._deployWithHelm(this.deploymentConfig.valueFile);
66+
await this._deployWithHelm(this.deploymentConfig.valueFile);
6467
if (isUpgrade) {
6568
await this.scaleDownAndRestart(); // Restart as helm does not monitor config changes
6669
}
6770
} else {
68-
await this._applyDynamicPlugins();
71+
await this._applyDynamicPlugins();
6972
await this._deployWithOperator(this.deploymentConfig.subscription);
7073
}
7174
await this.waitUntilReady();
@@ -79,7 +82,7 @@ export class RHDHDeployment {
7982
} else {
8083
executed = await runOnce(
8184
`deploy-${this.deploymentConfig.namespace}`,
82-
deployFunc
85+
deployFunc,
8386
);
8487
}
8588

0 commit comments

Comments
 (0)