@firestartr/cli 1.52.0-snapshot-6 → 1.52.0-snapshot-8
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 +6 -30
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +0 -15
- package/build/packages/cdk8s_renderer/src/charts/github/orgWebhookChart.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +0 -3
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -3
- package/build/packages/cdk8s_renderer/src/claims/github/orgWebhook.d.ts +4 -1
- package/build/packages/cdk8s_renderer/src/claims/github/orgwebhook.schema.d.ts +0 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -357975,9 +357975,6 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
357975
357975
|
type: 'boolean',
|
|
357976
357976
|
description: 'If the webhook is active',
|
|
357977
357977
|
},
|
|
357978
|
-
secretRef: {
|
|
357979
|
-
$ref: 'firestartr.dev://github/GithubComponentClaimSecretRef',
|
|
357980
|
-
},
|
|
357981
357978
|
events: {
|
|
357982
357979
|
type: 'array',
|
|
357983
357980
|
description: 'List of events that trigger the webhook (e.g., push, pull_request, issues)',
|
|
@@ -357986,7 +357983,7 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
357986
357983
|
},
|
|
357987
357984
|
},
|
|
357988
357985
|
},
|
|
357989
|
-
required: ['url', 'contentType', 'events'
|
|
357986
|
+
required: ['url', 'contentType', 'events'],
|
|
357990
357987
|
},
|
|
357991
357988
|
},
|
|
357992
357989
|
required: ['orgName', 'webhook'],
|
|
@@ -361735,7 +361732,6 @@ function toJson_FirestartrGithubOrgWebhookSpecWebhookSecretRef(obj) {
|
|
|
361735
361732
|
return undefined;
|
|
361736
361733
|
}
|
|
361737
361734
|
const result = {
|
|
361738
|
-
'kind': obj.kind,
|
|
361739
361735
|
'name': obj.name,
|
|
361740
361736
|
'key': obj.key,
|
|
361741
361737
|
};
|
|
@@ -361784,17 +361780,6 @@ function toJson_FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs(
|
|
|
361784
361780
|
// filter undefined values
|
|
361785
361781
|
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
361786
361782
|
}
|
|
361787
|
-
/* eslint-enable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
361788
|
-
/**
|
|
361789
|
-
* The type of Kubernetes resource to reference.
|
|
361790
|
-
*
|
|
361791
|
-
* @schema FirestartrGithubOrgWebhookSpecWebhookSecretRefKind
|
|
361792
|
-
*/
|
|
361793
|
-
var FirestartrGithubOrgWebhookSpecWebhookSecretRefKind;
|
|
361794
|
-
(function (FirestartrGithubOrgWebhookSpecWebhookSecretRefKind) {
|
|
361795
|
-
/** Secret */
|
|
361796
|
-
FirestartrGithubOrgWebhookSpecWebhookSecretRefKind["SECRET"] = "Secret";
|
|
361797
|
-
})(FirestartrGithubOrgWebhookSpecWebhookSecretRefKind || (FirestartrGithubOrgWebhookSpecWebhookSecretRefKind = {}));
|
|
361798
361783
|
/**
|
|
361799
361784
|
* Converts an object of type 'FirestartrGithubOrgWebhookSpecContextBackendRef' to JSON representation.
|
|
361800
361785
|
*/
|
|
@@ -364248,7 +364233,10 @@ class GithubOrgWebhookChart extends BaseGithubChart {
|
|
|
364248
364233
|
webhook: {
|
|
364249
364234
|
url: claim.providers.github.webhook.url,
|
|
364250
364235
|
contentType: claim.providers.github.webhook.contentType,
|
|
364251
|
-
secretRef:
|
|
364236
|
+
secretRef: {
|
|
364237
|
+
name: claim.providers.github.webhook.secretRef.name,
|
|
364238
|
+
key: claim.providers.github.webhook.secretRef.key,
|
|
364239
|
+
},
|
|
364252
364240
|
active: claim.providers.github.webhook.active,
|
|
364253
364241
|
events: claim.providers.github.webhook.events,
|
|
364254
364242
|
},
|
|
@@ -364259,17 +364247,6 @@ class GithubOrgWebhookChart extends BaseGithubChart {
|
|
|
364259
364247
|
},
|
|
364260
364248
|
};
|
|
364261
364249
|
}
|
|
364262
|
-
renderSecret(secret) {
|
|
364263
|
-
const parts = secret.split(':');
|
|
364264
|
-
if (parts.length < 4) {
|
|
364265
|
-
throw `GithubOrgWebhookChart: invalid secretRef: ${secret}`;
|
|
364266
|
-
}
|
|
364267
|
-
return {
|
|
364268
|
-
kind: 'Secret',
|
|
364269
|
-
name: parts[2],
|
|
364270
|
-
key: parts[3],
|
|
364271
|
-
};
|
|
364272
|
-
}
|
|
364273
364250
|
gvk() {
|
|
364274
364251
|
return FirestartrGithubOrgWebhook.GVK;
|
|
364275
364252
|
}
|
|
@@ -364824,8 +364801,7 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
364824
364801
|
const pushSecrets = this.get('pushSecrets');
|
|
364825
364802
|
const kind = this.get('claim').kind;
|
|
364826
364803
|
const name = this.get('claim').name;
|
|
364827
|
-
const concatenated =
|
|
364828
|
-
.concat(externalSecrets)
|
|
364804
|
+
const concatenated = externalSecrets
|
|
364829
364805
|
.concat(pushSecrets)
|
|
364830
364806
|
.filter((el) => el !== undefined);
|
|
364831
364807
|
return concatenated.map((chart) => {
|
|
@@ -711,12 +711,6 @@ export declare enum FirestartrGithubOrgWebhookSpecWebhookContentType {
|
|
|
711
711
|
* @schema FirestartrGithubOrgWebhookSpecWebhookSecretRef
|
|
712
712
|
*/
|
|
713
713
|
export interface FirestartrGithubOrgWebhookSpecWebhookSecretRef {
|
|
714
|
-
/**
|
|
715
|
-
* The type of Kubernetes resource to reference.
|
|
716
|
-
*
|
|
717
|
-
* @schema FirestartrGithubOrgWebhookSpecWebhookSecretRef#kind
|
|
718
|
-
*/
|
|
719
|
-
readonly kind: FirestartrGithubOrgWebhookSpecWebhookSecretRefKind;
|
|
720
714
|
/**
|
|
721
715
|
* Secret name
|
|
722
716
|
*
|
|
@@ -773,15 +767,6 @@ export interface FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs
|
|
|
773
767
|
* Converts an object of type 'FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs' to JSON representation.
|
|
774
768
|
*/
|
|
775
769
|
export declare function toJson_FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs(obj: FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs | undefined): Record<string, any> | undefined;
|
|
776
|
-
/**
|
|
777
|
-
* The type of Kubernetes resource to reference.
|
|
778
|
-
*
|
|
779
|
-
* @schema FirestartrGithubOrgWebhookSpecWebhookSecretRefKind
|
|
780
|
-
*/
|
|
781
|
-
export declare enum FirestartrGithubOrgWebhookSpecWebhookSecretRefKind {
|
|
782
|
-
/** Secret */
|
|
783
|
-
SECRET = "Secret"
|
|
784
|
-
}
|
|
785
770
|
/**
|
|
786
771
|
* @schema FirestartrGithubOrgWebhookSpecContextBackendRef
|
|
787
772
|
*/
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FirestartrGithubOrgWebhook, FirestartrGithubOrgWebhookProps
|
|
1
|
+
import { FirestartrGithubOrgWebhook, FirestartrGithubOrgWebhookProps } from '../../../imports/firestartr.dev';
|
|
2
2
|
import { IUnitializedStateKey } from '../../claims/base';
|
|
3
3
|
import { BaseGithubChart } from './base';
|
|
4
4
|
export declare class GithubOrgWebhookChart extends BaseGithubChart {
|
|
5
5
|
template(): FirestartrGithubOrgWebhookProps | IUnitializedStateKey;
|
|
6
|
-
renderSecret(secret: string): FirestartrGithubOrgWebhookSpecWebhookSecretRef;
|
|
7
6
|
gvk(): import("cdk8s").GroupVersionKind;
|
|
8
7
|
instanceApiObject(template: any): FirestartrGithubOrgWebhook;
|
|
9
8
|
}
|
|
@@ -8,7 +8,10 @@ export interface IGithubOrgWebhookClaim extends IOrgWebhookClaim {
|
|
|
8
8
|
webhook: {
|
|
9
9
|
url: string;
|
|
10
10
|
contentType: FirestartrGithubOrgWebhookSpecWebhookContentType;
|
|
11
|
-
secretRef:
|
|
11
|
+
secretRef: {
|
|
12
|
+
name: string;
|
|
13
|
+
key: string;
|
|
14
|
+
};
|
|
12
15
|
active?: boolean;
|
|
13
16
|
events: string[];
|
|
14
17
|
};
|