@firestartr/cli 1.52.0-snapshot-8 → 1.52.1-snapshot-10
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 +32 -8
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +15 -0
- package/build/packages/cdk8s_renderer/src/charts/github/orgWebhookChart.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgWebhook.d.ts +1 -4
- package/build/packages/cdk8s_renderer/src/claims/github/orgwebhook.schema.d.ts +3 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -357975,6 +357975,9 @@ 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
|
+
},
|
|
357978
357981
|
events: {
|
|
357979
357982
|
type: 'array',
|
|
357980
357983
|
description: 'List of events that trigger the webhook (e.g., push, pull_request, issues)',
|
|
@@ -357983,7 +357986,7 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
357983
357986
|
},
|
|
357984
357987
|
},
|
|
357985
357988
|
},
|
|
357986
|
-
required: ['url', 'contentType', 'events'],
|
|
357989
|
+
required: ['url', 'contentType', 'events', 'secretRef'],
|
|
357987
357990
|
},
|
|
357988
357991
|
},
|
|
357989
357992
|
required: ['orgName', 'webhook'],
|
|
@@ -361732,6 +361735,7 @@ function toJson_FirestartrGithubOrgWebhookSpecWebhookSecretRef(obj) {
|
|
|
361732
361735
|
return undefined;
|
|
361733
361736
|
}
|
|
361734
361737
|
const result = {
|
|
361738
|
+
'kind': obj.kind,
|
|
361735
361739
|
'name': obj.name,
|
|
361736
361740
|
'key': obj.key,
|
|
361737
361741
|
};
|
|
@@ -361780,6 +361784,17 @@ function toJson_FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs(
|
|
|
361780
361784
|
// filter undefined values
|
|
361781
361785
|
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
361782
361786
|
}
|
|
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 = {}));
|
|
361783
361798
|
/**
|
|
361784
361799
|
* Converts an object of type 'FirestartrGithubOrgWebhookSpecContextBackendRef' to JSON representation.
|
|
361785
361800
|
*/
|
|
@@ -364233,10 +364248,7 @@ class GithubOrgWebhookChart extends BaseGithubChart {
|
|
|
364233
364248
|
webhook: {
|
|
364234
364249
|
url: claim.providers.github.webhook.url,
|
|
364235
364250
|
contentType: claim.providers.github.webhook.contentType,
|
|
364236
|
-
secretRef:
|
|
364237
|
-
name: claim.providers.github.webhook.secretRef.name,
|
|
364238
|
-
key: claim.providers.github.webhook.secretRef.key,
|
|
364239
|
-
},
|
|
364251
|
+
secretRef: this.renderSecret(claim.providers.github.webhook.secretRef),
|
|
364240
364252
|
active: claim.providers.github.webhook.active,
|
|
364241
364253
|
events: claim.providers.github.webhook.events,
|
|
364242
364254
|
},
|
|
@@ -364247,6 +364259,17 @@ class GithubOrgWebhookChart extends BaseGithubChart {
|
|
|
364247
364259
|
},
|
|
364248
364260
|
};
|
|
364249
364261
|
}
|
|
364262
|
+
renderSecret(secret) {
|
|
364263
|
+
const parts = secret.split(':');
|
|
364264
|
+
if (parts.length < 4) {
|
|
364265
|
+
throw `GithubOrgWebhookChart: invalid secretRef: ${secret}. Expected format: <provider>:<namespace>:<name>:<key>`;
|
|
364266
|
+
}
|
|
364267
|
+
return {
|
|
364268
|
+
kind: 'Secret',
|
|
364269
|
+
name: parts[2],
|
|
364270
|
+
key: parts[3],
|
|
364271
|
+
};
|
|
364272
|
+
}
|
|
364250
364273
|
gvk() {
|
|
364251
364274
|
return FirestartrGithubOrgWebhook.GVK;
|
|
364252
364275
|
}
|
|
@@ -364793,7 +364816,7 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
364793
364816
|
gvk() {
|
|
364794
364817
|
return {
|
|
364795
364818
|
kind: 'ExternalSecret/PushSecret',
|
|
364796
|
-
apiVersion: 'external-secrets.io/
|
|
364819
|
+
apiVersion: 'external-secrets.io/v1alpha1',
|
|
364797
364820
|
};
|
|
364798
364821
|
}
|
|
364799
364822
|
extraCharts() {
|
|
@@ -364801,7 +364824,8 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
364801
364824
|
const pushSecrets = this.get('pushSecrets');
|
|
364802
364825
|
const kind = this.get('claim').kind;
|
|
364803
364826
|
const name = this.get('claim').name;
|
|
364804
|
-
const concatenated =
|
|
364827
|
+
const concatenated = []
|
|
364828
|
+
.concat(externalSecrets)
|
|
364805
364829
|
.concat(pushSecrets)
|
|
364806
364830
|
.filter((el) => el !== undefined);
|
|
364807
364831
|
return concatenated.map((chart) => {
|
|
@@ -364876,7 +364900,7 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
364876
364900
|
}
|
|
364877
364901
|
for (const pushSecret of pushSecretsFromClaim) {
|
|
364878
364902
|
const k8sResource = {
|
|
364879
|
-
apiVersion: 'external-secrets.io/
|
|
364903
|
+
apiVersion: 'external-secrets.io/v1alpha1',
|
|
364880
364904
|
kind: 'PushSecret',
|
|
364881
364905
|
metadata: {
|
|
364882
364906
|
name: catalog_common.generic.normalizeName(`${pushSecret.secretName}-${claim.name}`),
|
|
@@ -711,6 +711,12 @@ 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;
|
|
714
720
|
/**
|
|
715
721
|
* Secret name
|
|
716
722
|
*
|
|
@@ -767,6 +773,15 @@ export interface FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs
|
|
|
767
773
|
* Converts an object of type 'FirestartrGithubOrgWebhookSpecWriteConnectionSecretToRefOutputs' to JSON representation.
|
|
768
774
|
*/
|
|
769
775
|
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
|
+
}
|
|
770
785
|
/**
|
|
771
786
|
* @schema FirestartrGithubOrgWebhookSpecContextBackendRef
|
|
772
787
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FirestartrGithubOrgWebhook, FirestartrGithubOrgWebhookProps } from '../../../imports/firestartr.dev';
|
|
1
|
+
import { FirestartrGithubOrgWebhook, FirestartrGithubOrgWebhookProps, FirestartrGithubOrgWebhookSpecWebhookSecretRef } 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;
|
|
6
7
|
gvk(): import("cdk8s").GroupVersionKind;
|
|
7
8
|
instanceApiObject(template: any): FirestartrGithubOrgWebhook;
|
|
8
9
|
}
|
|
@@ -8,10 +8,7 @@ export interface IGithubOrgWebhookClaim extends IOrgWebhookClaim {
|
|
|
8
8
|
webhook: {
|
|
9
9
|
url: string;
|
|
10
10
|
contentType: FirestartrGithubOrgWebhookSpecWebhookContentType;
|
|
11
|
-
secretRef:
|
|
12
|
-
name: string;
|
|
13
|
-
key: string;
|
|
14
|
-
};
|
|
11
|
+
secretRef: string;
|
|
15
12
|
active?: boolean;
|
|
16
13
|
events: string[];
|
|
17
14
|
};
|