@firestartr/cli 2.4.0 → 2.6.0-snapshot
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/{709.index.js → 351.index.js} +3 -3
- package/build/{55.index.js → 540.index.js} +5 -5
- package/build/{318.index.js → 594.index.js} +3 -3
- package/build/{539.index.js → 647.index.js} +5 -5
- package/build/{346.index.js → 857.index.js} +5 -5
- package/build/index.js +107580 -107031
- package/build/packages/catalog_common/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +8 -19
- package/build/packages/cdk8s_renderer/src/charts/catalog/tfWorkspaceChart.d.ts +2 -2
- package/build/packages/cdk8s_renderer/src/normalizers/refValues.d.ts +10 -6
- package/build/packages/cdk8s_renderer/src/normalizers/tfworkspace.d.ts +4 -1
- package/build/packages/cdk8s_renderer/src/refsSorter/refsExtractor.d.ts +6 -3
- package/build/packages/cdk8s_renderer/src/utils/tfwp-refs.d.ts +13 -0
- package/build/packages/gh_provisioner/src/entities/ghmembership/helpers/index.d.ts +2 -0
- package/build/packages/gh_provisioner/src/entities/ghmembership/index.d.ts +1 -0
- package/build/packages/operator/src/ctl.d.ts +8 -2
- package/build/packages/operator/src/definitions.d.ts +1 -1
- package/build/packages/operator/src/informer.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2899,14 +2899,18 @@ export declare function toJson_TfResultProps(obj: TfResultProps | undefined): Re
|
|
|
2899
2899
|
*/
|
|
2900
2900
|
export interface TfResultSpec {
|
|
2901
2901
|
/**
|
|
2902
|
-
* @schema TfResultSpec#
|
|
2902
|
+
* @schema TfResultSpec#reference
|
|
2903
2903
|
*/
|
|
2904
|
-
readonly
|
|
2904
|
+
readonly reference: TfResultSpecReference;
|
|
2905
2905
|
/**
|
|
2906
|
-
*
|
|
2906
|
+
* DEPRECATED: this field is no longer used and will be removed in a future version.
|
|
2907
|
+
*
|
|
2908
|
+
* @schema TfResultSpec#action
|
|
2907
2909
|
*/
|
|
2908
|
-
readonly
|
|
2910
|
+
readonly action?: string;
|
|
2909
2911
|
/**
|
|
2912
|
+
* Terraform command output or result data.
|
|
2913
|
+
*
|
|
2910
2914
|
* @schema TfResultSpec#result
|
|
2911
2915
|
*/
|
|
2912
2916
|
readonly result?: string;
|
|
@@ -2915,21 +2919,6 @@ export interface TfResultSpec {
|
|
|
2915
2919
|
* Converts an object of type 'TfResultSpec' to JSON representation.
|
|
2916
2920
|
*/
|
|
2917
2921
|
export declare function toJson_TfResultSpec(obj: TfResultSpec | undefined): Record<string, any> | undefined;
|
|
2918
|
-
/**
|
|
2919
|
-
* @schema TfResultSpecAction
|
|
2920
|
-
*/
|
|
2921
|
-
export declare enum TfResultSpecAction {
|
|
2922
|
-
/** init */
|
|
2923
|
-
INIT = "init",
|
|
2924
|
-
/** plan */
|
|
2925
|
-
PLAN = "plan",
|
|
2926
|
-
/** apply */
|
|
2927
|
-
APPLY = "apply",
|
|
2928
|
-
/** destroy */
|
|
2929
|
-
DESTROY = "destroy",
|
|
2930
|
-
/** synth */
|
|
2931
|
-
SYNTH = "synth"
|
|
2932
|
-
}
|
|
2933
2922
|
/**
|
|
2934
2923
|
* @schema TfResultSpecReference
|
|
2935
2924
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCatalogChart } from './base';
|
|
2
2
|
import { ApiObject, GroupVersionKind } from 'cdk8s';
|
|
3
3
|
export declare class CatalogTFWorkspaceChart extends BaseCatalogChart {
|
|
4
|
-
template(): {
|
|
4
|
+
template(): Promise<{
|
|
5
5
|
apiVersion: string;
|
|
6
6
|
kind: string;
|
|
7
7
|
metadata: {
|
|
@@ -32,7 +32,7 @@ export declare class CatalogTFWorkspaceChart extends BaseCatalogChart {
|
|
|
32
32
|
};
|
|
33
33
|
dependsOn: string[];
|
|
34
34
|
};
|
|
35
|
-
}
|
|
35
|
+
}>;
|
|
36
36
|
instanceApiObject(template: any): ApiObject;
|
|
37
37
|
gvk(): GroupVersionKind;
|
|
38
38
|
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { ICustomResourcePatch } from '../patches';
|
|
2
2
|
import { Normalizer } from './base';
|
|
3
3
|
export declare class RefValuesNormalizer extends Normalizer {
|
|
4
|
-
applicableProviders: string[];
|
|
5
|
-
__validate(_schema: any): Promise<boolean>;
|
|
6
4
|
rsClaimRef: Function;
|
|
7
|
-
|
|
5
|
+
constructor();
|
|
6
|
+
normalize(values: any): Promise<{
|
|
7
|
+
values: any;
|
|
8
|
+
references: any[];
|
|
9
|
+
}>;
|
|
10
|
+
__patches(claim: any, previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
11
|
+
__validate(): Promise<any>;
|
|
12
|
+
static applicableProviders: string[];
|
|
13
|
+
get applicableProviders(): string[];
|
|
8
14
|
}
|
|
9
15
|
export declare function replaceReferences(providerValues: any, resolveRef: Function, references?: Map<string, any>): Promise<{
|
|
10
|
-
values:
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
16
|
+
values: any;
|
|
13
17
|
references: any[];
|
|
14
18
|
}>;
|
|
@@ -6,5 +6,8 @@ export declare class TFWorkspaceNormalizer extends Normalizer {
|
|
|
6
6
|
__validate(_schema: any): Promise<boolean>;
|
|
7
7
|
__patches(claim: any, _previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
8
8
|
}
|
|
9
|
-
export declare function normalizeModuleContent(tfRootModulePath: string): Promise<
|
|
9
|
+
export declare function normalizeModuleContent(tfRootModulePath: string, claim?: any, resolveRef?: Function): Promise<{
|
|
10
|
+
content: string;
|
|
11
|
+
references: any[];
|
|
12
|
+
}>;
|
|
10
13
|
export declare function validatek8sLimits(moduleContent: any): boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { RenderClaims } from '../renderer/types';
|
|
2
|
-
export declare function extractRefs(renderClaims: RenderClaims, kind: string): any
|
|
3
|
-
export declare function extractAllRefs(claimData: string): any[]
|
|
2
|
+
export declare function extractRefs(renderClaims: RenderClaims, kind: string): Promise<any>;
|
|
3
|
+
export declare function extractAllRefs(claimData: string): Promise<any[]>;
|
|
4
4
|
export declare function getGroupParentRef(parent: string, references?: any[]): any[];
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function extractTfwpReferences(claim: any): Promise<{
|
|
6
|
+
tfworkspaceRefs: string[];
|
|
7
|
+
secretsClaimRefs: string[];
|
|
8
|
+
}>;
|
|
6
9
|
export declare function getComponentVarsAndSecretsRefs(parsedClaim: any): string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TfwpRefInterpolationContext = {
|
|
2
|
+
claim: any;
|
|
3
|
+
path: Array<string | number>;
|
|
4
|
+
raw: string;
|
|
5
|
+
match: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
name: string;
|
|
8
|
+
namespace?: string;
|
|
9
|
+
resolvedNamespace: string;
|
|
10
|
+
target: string;
|
|
11
|
+
};
|
|
12
|
+
export type TfwpRefInterpolator = (match: string, context: TfwpRefInterpolationContext) => string | Promise<string>;
|
|
13
|
+
export declare function walkTfwpRefs<T>(input: T, claim: any, interpolate: TfwpRefInterpolator, path?: Array<string | number>): Promise<T>;
|
|
@@ -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): Promise<any>;
|
|
13
|
+
export declare function upsertResult(namespace: string, item: any, result: string, exitCode?: 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>;
|
|
@@ -32,7 +32,13 @@ export declare function upsertFinalizer(kind: string, namespace: string, item: a
|
|
|
32
32
|
* @returns {void}
|
|
33
33
|
*/
|
|
34
34
|
export declare function unsetFinalizer(kind: string, namespace: string, item: any | string, finalizer: string): Promise<any>;
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Misspelled export kept for backward compatibility.
|
|
37
|
+
* Use {@link writeTerraformOutputInTFResult} instead.
|
|
38
|
+
*/
|
|
39
|
+
export declare function writeTerraformOuputInTFResult(item: any, output: string, exitCode?: number): Promise<any>;
|
|
40
|
+
/** Correctly-spelled canonical export. Use this instead of the deprecated {@link writeTerraformOuputInTFResult}. */
|
|
41
|
+
export declare const writeTerraformOutputInTFResult: typeof writeTerraformOuputInTFResult;
|
|
36
42
|
export declare function writeConnectionSecret(item: any, outputsConnection: any, finalize?: boolean): Promise<void>;
|
|
37
43
|
export declare function writePlanInGithubPR(prUrl: string, planText: string): Promise<void>;
|
|
38
44
|
export declare function addApplyCommitStatus(cr: any, state: 'error' | 'failure' | 'pending' | 'success', targetURL?: string, description?: string, context?: string): Promise<void>;
|
|
@@ -32,7 +32,7 @@ export type WorkItem = {
|
|
|
32
32
|
};
|
|
33
33
|
type HandlerFinalizerFn = (kind: string, namespace: string, item: any | string, finalizer: string) => Promise<any>;
|
|
34
34
|
type HandlerInformPlanFn = (prUrl: string, planText: string) => Promise<void>;
|
|
35
|
-
type WriteTerraformOutputInTfResultFn = (item: any, output: string) => Promise<any>;
|
|
35
|
+
type WriteTerraformOutputInTfResultFn = (item: any, output: string, exitCode?: number) => Promise<any>;
|
|
36
36
|
type WriteConnectionSecretFn = (item: any, outputsConnection: any, finalize?: boolean) => Promise<void>;
|
|
37
37
|
type ResolveReferencesFn = () => Promise<Dependencies>;
|
|
38
38
|
type DeleteSecretFn = () => Promise<null | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OperationType, WorkStatus } from './definitions';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WorkItemHandler, WorkItem } from './definitions';
|
|
3
3
|
export { OperationType, WorkStatus };
|
|
4
|
-
export type {
|
|
4
|
+
export type { WorkItemHandler, WorkItem };
|
|
5
5
|
/**
|
|
6
6
|
* Observe whenever a new item is added, modified or deleted in a given kind
|
|
7
7
|
* @param {string} pluralKind - Kind to observe
|