@firestartr/cli 2.6.0-snapshot-5 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +37327 -36917
- package/build/packages/gh_provisioner/src/entities/base.d.ts +5 -0
- package/build/packages/gh_provisioner/src/tp_bridge.d.ts +3 -1
- package/build/packages/github/src/config_resolver.d.ts +1 -1
- package/build/packages/operator/src/ctl.d.ts +1 -1
- package/build/packages/operator/src/retry.d.ts +3 -0
- package/build/packages/operator/src/status.d.ts +1 -0
- package/build/packages/terraform_provisioner/src/project_tf.d.ts +2 -0
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +1 -0
- package/build/packages/terraform_provisioner/src/schema.d.ts +5 -0
- package/build/packages/terraform_provisioner/src/utils.d.ts +14 -0
- package/package.json +1 -1
|
@@ -12,6 +12,11 @@ type PatchData = {
|
|
|
12
12
|
};
|
|
13
13
|
export { PatchOperations, PatchData };
|
|
14
14
|
export declare abstract class Entity {
|
|
15
|
+
parent?: Entity;
|
|
16
|
+
_terraformHasRun?: boolean;
|
|
17
|
+
sessionId?: string;
|
|
18
|
+
sessionProjectPath?: string;
|
|
19
|
+
__ghProvisionerSessionWorkspaceInitialized?: boolean;
|
|
15
20
|
static refResolver: RefResolver;
|
|
16
21
|
static setRefResolver(refResolver: RefResolver): void;
|
|
17
22
|
_cr: EntityCR;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity } from './entities';
|
|
2
2
|
export declare function runOnTerraform(entity: Entity, command: string, customArgs?: any[], opts?: any): Promise<any>;
|
|
3
|
-
export declare function buildContext(entity: Entity): {
|
|
3
|
+
export declare function buildContext(entity: Entity, reuseExistingProjectOverride?: boolean, importMode?: boolean): {
|
|
4
4
|
type: string;
|
|
5
5
|
inline: string;
|
|
6
6
|
module: string;
|
|
@@ -12,4 +12,6 @@ export declare function buildContext(entity: Entity): {
|
|
|
12
12
|
tfStatePath: string;
|
|
13
13
|
references: {};
|
|
14
14
|
projectPath: string;
|
|
15
|
+
reuseExistingProject: boolean;
|
|
16
|
+
importMode: boolean;
|
|
15
17
|
};
|
|
@@ -10,7 +10,7 @@ export declare function getConnection(): Promise<{
|
|
|
10
10
|
kc: client.KubeConfig;
|
|
11
11
|
opts: any;
|
|
12
12
|
}>;
|
|
13
|
-
export declare function upsertResult(namespace: string, item: any, result: string, exitCode?: number): Promise<any>;
|
|
13
|
+
export declare function upsertResult(namespace: string, item: any, result: string, exitCode?: number, existingRetryCount?: number): Promise<any>;
|
|
14
14
|
export declare function deleteSecret(secretName: string, namespace: string): Promise<any>;
|
|
15
15
|
export declare function upsertSecret(namespace: string, secret: any): Promise<void>;
|
|
16
16
|
export declare function getSecret(namespace: string, secretName: string): Promise<client.V1Secret>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export declare const NEXT_RETRY_MS: number;
|
|
2
|
+
export declare const MAXRETRY = 5;
|
|
3
|
+
export declare function nextRetryMs(currCounter: number): number;
|
|
1
4
|
export declare function initRetry(enqueue: Function): Promise<{
|
|
2
5
|
errorReconciling(itemPath: string): void;
|
|
3
6
|
successReconciling(itemPath: string): void;
|
|
@@ -6,6 +6,7 @@ export declare function upsertInitialStatus(pluralKind: string, namespace: strin
|
|
|
6
6
|
export declare function needsProvisioningOnCreateOrUpdate(cr: any): Promise<NeedsCreationOrUpdate>;
|
|
7
7
|
export declare function shouldForceReconcileByAnnotation(cr: any): boolean;
|
|
8
8
|
export declare function updateSyncTransition(itemPath: string, reason: string, lastSyncTime: string, nextSyncTime: string, message: string, status: string): Promise<void>;
|
|
9
|
+
export declare function updateRetryStatusInCR(pluralKind: string, namespace: string, name: string, retryCount: number, nextRetryTime?: string): Promise<void>;
|
|
9
10
|
export declare function writePrioritizedStatus(kind: string, namespace: string, item: any): Promise<void>;
|
|
10
11
|
export declare function updateTransition(itemPath: string, reason: string, type: string, statusValue: string, message?: string, updateStatusOnly?: boolean): Promise<void>;
|
|
11
12
|
export declare function getConditionByType(conditionList: Array<any>, type: string): any;
|
|
@@ -6,6 +6,8 @@ import { WriterAdditionalFiles } from './writer_additional_files';
|
|
|
6
6
|
import { PassThrough } from 'stream';
|
|
7
7
|
import type { ProcessHandler } from './process_handler';
|
|
8
8
|
export declare class TFProjectManager {
|
|
9
|
+
tearUpProject(): Promise<void>;
|
|
10
|
+
ctx: any;
|
|
9
11
|
mainTfWriter: WriterMainTf;
|
|
10
12
|
providerJsonWriter: WriterProviderJson;
|
|
11
13
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
@@ -6,6 +6,7 @@ import { WriterAdditionalFiles } from './writer_additional_files';
|
|
|
6
6
|
import { PassThrough } from 'stream';
|
|
7
7
|
import type { ProcessHandler } from './process_handler';
|
|
8
8
|
export declare class TFProjectManagerRemote {
|
|
9
|
+
tearUpProject(): Promise<void>;
|
|
9
10
|
writerTerraform: WriterTerraform;
|
|
10
11
|
providerJsonWriter: WriterProviderJson;
|
|
11
12
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { PassThrough } from 'stream';
|
|
3
3
|
import type { ProcessHandler } from './process_handler';
|
|
4
|
+
export declare function shouldWriteProviderJson(ctx: any): Promise<boolean>;
|
|
5
|
+
/**
|
|
6
|
+
* Compute the expected generated workspace files for Inline projects.
|
|
7
|
+
*/
|
|
8
|
+
export declare function computeInlineWorkspaceFiles(ctx: any): Promise<string[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Compute the expected generated workspace files for Remote projects.
|
|
11
|
+
*/
|
|
12
|
+
export declare function computeRemoteWorkspaceFiles(ctx: any): Promise<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Validate workspace structure: checks for existence of all required files/dirs.
|
|
15
|
+
* Returns array of missing paths (or [] if all exist).
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateWorkspaceStructure(projectPath: string, expectedFiles: string[]): string[];
|
|
4
18
|
export declare function validate(path: string, secrets: any[]): Promise<unknown>;
|
|
5
19
|
export declare function init(path: string, secrets: any[], stream?: PassThrough, ctl?: ProcessHandler): Promise<unknown>;
|
|
6
20
|
export declare function initFromModule(path: string, source: string, secrets: any[], stream?: PassThrough, ctl?: ProcessHandler): Promise<unknown>;
|