@k8ts/sample-interfaces 0.1.1
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/dist/_mix.d.ts +4 -0
- package/dist/_mix.d.ts.map +1 -0
- package/dist/_mix.js +7 -0
- package/dist/_mix.js.map +1 -0
- package/dist/acme.cert-manager.io.d.ts +4832 -0
- package/dist/acme.cert-manager.io.d.ts.map +1 -0
- package/dist/acme.cert-manager.io.js +2476 -0
- package/dist/acme.cert-manager.io.js.map +1 -0
- package/dist/gateway.networking.k8s.io.d.ts +8786 -0
- package/dist/gateway.networking.k8s.io.d.ts.map +1 -0
- package/dist/gateway.networking.k8s.io.js +3668 -0
- package/dist/gateway.networking.k8s.io.js.map +1 -0
- package/dist/helm.toolkit.fluxcd.io.d.ts +4560 -0
- package/dist/helm.toolkit.fluxcd.io.d.ts.map +1 -0
- package/dist/helm.toolkit.fluxcd.io.js +2274 -0
- package/dist/helm.toolkit.fluxcd.io.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/k8s.d.ts +18772 -0
- package/dist/k8s.d.ts.map +1 -0
- package/dist/k8s.js +12173 -0
- package/dist/k8s.js.map +1 -0
- package/dist/kustomize.toolkit.fluxcd.io.d.ts +2202 -0
- package/dist/kustomize.toolkit.fluxcd.io.d.ts.map +1 -0
- package/dist/kustomize.toolkit.fluxcd.io.js +1196 -0
- package/dist/kustomize.toolkit.fluxcd.io.js.map +1 -0
- package/dist/notification.toolkit.fluxcd.io.d.ts +1851 -0
- package/dist/notification.toolkit.fluxcd.io.d.ts.map +1 -0
- package/dist/notification.toolkit.fluxcd.io.js +1489 -0
- package/dist/notification.toolkit.fluxcd.io.js.map +1 -0
- package/dist/source.toolkit.fluxcd.io.d.ts +3733 -0
- package/dist/source.toolkit.fluxcd.io.d.ts.map +1 -0
- package/dist/source.toolkit.fluxcd.io.js +2539 -0
- package/dist/source.toolkit.fluxcd.io.js.map +1 -0
- package/package.json +68 -0
- package/src/_mix.ts +3 -0
- package/src/acme.cert-manager.io.ts +8202 -0
- package/src/gateway.networking.k8s.io.ts +12226 -0
- package/src/helm.toolkit.fluxcd.io.ts +7010 -0
- package/src/index.ts +1 -0
- package/src/k8s.ts +31018 -0
- package/src/kustomize.toolkit.fluxcd.io.ts +3560 -0
- package/src/notification.toolkit.fluxcd.io.ts +2944 -0
- package/src/source.toolkit.fluxcd.io.ts +6277 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReceiverV1Beta2SpecResourcesKind = exports.ReceiverV1Beta2SpecType = exports.ReceiverV1Beta2 = exports.ReceiverV1Beta1SpecResourcesKind = exports.ReceiverV1Beta1SpecType = exports.ReceiverV1Beta1 = exports.ReceiverSpecResourcesKind = exports.ReceiverSpecType = exports.Receiver = exports.ProviderV1Beta3SpecType = exports.ProviderV1Beta3 = exports.ProviderV1Beta2SpecType = exports.ProviderV1Beta2 = exports.ProviderSpecType = exports.Provider = exports.AlertV1Beta3SpecEventSourcesKind = exports.AlertV1Beta3SpecEventSeverity = exports.AlertV1Beta3 = exports.AlertV1Beta2SpecEventSourcesKind = exports.AlertV1Beta2SpecEventSeverity = exports.AlertV1Beta2 = exports.AlertSpecEventSourcesKind = exports.AlertSpecEventSeverity = exports.Alert = void 0;
|
|
4
|
+
exports.toJson_AlertProps = toJson_AlertProps;
|
|
5
|
+
exports.toJson_AlertSpec = toJson_AlertSpec;
|
|
6
|
+
exports.toJson_AlertSpecEventSources = toJson_AlertSpecEventSources;
|
|
7
|
+
exports.toJson_AlertSpecProviderRef = toJson_AlertSpecProviderRef;
|
|
8
|
+
exports.toJson_AlertV1Beta2Props = toJson_AlertV1Beta2Props;
|
|
9
|
+
exports.toJson_AlertV1Beta2Spec = toJson_AlertV1Beta2Spec;
|
|
10
|
+
exports.toJson_AlertV1Beta2SpecEventSources = toJson_AlertV1Beta2SpecEventSources;
|
|
11
|
+
exports.toJson_AlertV1Beta2SpecProviderRef = toJson_AlertV1Beta2SpecProviderRef;
|
|
12
|
+
exports.toJson_AlertV1Beta3Props = toJson_AlertV1Beta3Props;
|
|
13
|
+
exports.toJson_AlertV1Beta3Spec = toJson_AlertV1Beta3Spec;
|
|
14
|
+
exports.toJson_AlertV1Beta3SpecEventSources = toJson_AlertV1Beta3SpecEventSources;
|
|
15
|
+
exports.toJson_AlertV1Beta3SpecProviderRef = toJson_AlertV1Beta3SpecProviderRef;
|
|
16
|
+
exports.toJson_ProviderProps = toJson_ProviderProps;
|
|
17
|
+
exports.toJson_ProviderSpec = toJson_ProviderSpec;
|
|
18
|
+
exports.toJson_ProviderSpecCertSecretRef = toJson_ProviderSpecCertSecretRef;
|
|
19
|
+
exports.toJson_ProviderSpecSecretRef = toJson_ProviderSpecSecretRef;
|
|
20
|
+
exports.toJson_ProviderV1Beta2Props = toJson_ProviderV1Beta2Props;
|
|
21
|
+
exports.toJson_ProviderV1Beta2Spec = toJson_ProviderV1Beta2Spec;
|
|
22
|
+
exports.toJson_ProviderV1Beta2SpecCertSecretRef = toJson_ProviderV1Beta2SpecCertSecretRef;
|
|
23
|
+
exports.toJson_ProviderV1Beta2SpecSecretRef = toJson_ProviderV1Beta2SpecSecretRef;
|
|
24
|
+
exports.toJson_ProviderV1Beta3Props = toJson_ProviderV1Beta3Props;
|
|
25
|
+
exports.toJson_ProviderV1Beta3Spec = toJson_ProviderV1Beta3Spec;
|
|
26
|
+
exports.toJson_ProviderV1Beta3SpecCertSecretRef = toJson_ProviderV1Beta3SpecCertSecretRef;
|
|
27
|
+
exports.toJson_ProviderV1Beta3SpecSecretRef = toJson_ProviderV1Beta3SpecSecretRef;
|
|
28
|
+
exports.toJson_ReceiverProps = toJson_ReceiverProps;
|
|
29
|
+
exports.toJson_ReceiverSpec = toJson_ReceiverSpec;
|
|
30
|
+
exports.toJson_ReceiverSpecResources = toJson_ReceiverSpecResources;
|
|
31
|
+
exports.toJson_ReceiverSpecSecretRef = toJson_ReceiverSpecSecretRef;
|
|
32
|
+
exports.toJson_ReceiverV1Beta1Props = toJson_ReceiverV1Beta1Props;
|
|
33
|
+
exports.toJson_ReceiverV1Beta1Spec = toJson_ReceiverV1Beta1Spec;
|
|
34
|
+
exports.toJson_ReceiverV1Beta1SpecResources = toJson_ReceiverV1Beta1SpecResources;
|
|
35
|
+
exports.toJson_ReceiverV1Beta1SpecSecretRef = toJson_ReceiverV1Beta1SpecSecretRef;
|
|
36
|
+
exports.toJson_ReceiverV1Beta2Props = toJson_ReceiverV1Beta2Props;
|
|
37
|
+
exports.toJson_ReceiverV1Beta2Spec = toJson_ReceiverV1Beta2Spec;
|
|
38
|
+
exports.toJson_ReceiverV1Beta2SpecResources = toJson_ReceiverV1Beta2SpecResources;
|
|
39
|
+
exports.toJson_ReceiverV1Beta2SpecSecretRef = toJson_ReceiverV1Beta2SpecSecretRef;
|
|
40
|
+
// generated by cdk8s
|
|
41
|
+
const cdk8s_1 = require("cdk8s");
|
|
42
|
+
/**
|
|
43
|
+
* Alert is the Schema for the alerts API
|
|
44
|
+
*
|
|
45
|
+
* @schema Alert
|
|
46
|
+
*/
|
|
47
|
+
class Alert extends cdk8s_1.ApiObject {
|
|
48
|
+
/**
|
|
49
|
+
* Renders a Kubernetes manifest for "Alert".
|
|
50
|
+
*
|
|
51
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
52
|
+
*
|
|
53
|
+
* @param props Initialization props
|
|
54
|
+
*/
|
|
55
|
+
static manifest(props = {}) {
|
|
56
|
+
return {
|
|
57
|
+
...Alert.GVK,
|
|
58
|
+
...toJson_AlertProps(props)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Defines a "Alert" API object
|
|
63
|
+
*
|
|
64
|
+
* @param scope The scope in which to define this object
|
|
65
|
+
* @param id A scope-local name for the object
|
|
66
|
+
* @param props Initialization props
|
|
67
|
+
*/
|
|
68
|
+
constructor(scope, id, props = {}) {
|
|
69
|
+
super(scope, id, {
|
|
70
|
+
...Alert.GVK,
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/** Renders the object to Kubernetes JSON. */
|
|
75
|
+
toJson() {
|
|
76
|
+
const resolved = super.toJson();
|
|
77
|
+
return {
|
|
78
|
+
...Alert.GVK,
|
|
79
|
+
...toJson_AlertProps(resolved)
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.Alert = Alert;
|
|
84
|
+
/** Returns the apiVersion and kind for "Alert" */
|
|
85
|
+
Alert.GVK = {
|
|
86
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta1",
|
|
87
|
+
kind: "Alert"
|
|
88
|
+
};
|
|
89
|
+
/** Converts an object of type 'AlertProps' to JSON representation. */
|
|
90
|
+
/* eslint-disable max-len, quote-props */
|
|
91
|
+
function toJson_AlertProps(obj) {
|
|
92
|
+
if (obj === undefined) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
const result = {
|
|
96
|
+
metadata: obj.metadata,
|
|
97
|
+
spec: toJson_AlertSpec(obj.spec)
|
|
98
|
+
};
|
|
99
|
+
// filter undefined values
|
|
100
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
101
|
+
}
|
|
102
|
+
/** Converts an object of type 'AlertSpec' to JSON representation. */
|
|
103
|
+
/* eslint-disable max-len, quote-props */
|
|
104
|
+
function toJson_AlertSpec(obj) {
|
|
105
|
+
if (obj === undefined) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
const result = {
|
|
109
|
+
eventSeverity: obj.eventSeverity,
|
|
110
|
+
eventSources: obj.eventSources?.map(y => toJson_AlertSpecEventSources(y)),
|
|
111
|
+
exclusionList: obj.exclusionList?.map(y => y),
|
|
112
|
+
providerRef: toJson_AlertSpecProviderRef(obj.providerRef),
|
|
113
|
+
summary: obj.summary,
|
|
114
|
+
suspend: obj.suspend
|
|
115
|
+
};
|
|
116
|
+
// filter undefined values
|
|
117
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
118
|
+
}
|
|
119
|
+
/* eslint-enable max-len, quote-props */
|
|
120
|
+
/**
|
|
121
|
+
* Filter events based on severity, defaults to ('info'). If set to 'info' no events will be
|
|
122
|
+
* filtered.
|
|
123
|
+
*
|
|
124
|
+
* @schema AlertSpecEventSeverity
|
|
125
|
+
*/
|
|
126
|
+
var AlertSpecEventSeverity;
|
|
127
|
+
(function (AlertSpecEventSeverity) {
|
|
128
|
+
/** Info */
|
|
129
|
+
AlertSpecEventSeverity["INFO"] = "info";
|
|
130
|
+
/** Error */
|
|
131
|
+
AlertSpecEventSeverity["ERROR"] = "error";
|
|
132
|
+
})(AlertSpecEventSeverity || (exports.AlertSpecEventSeverity = AlertSpecEventSeverity = {}));
|
|
133
|
+
/** Converts an object of type 'AlertSpecEventSources' to JSON representation. */
|
|
134
|
+
/* eslint-disable max-len, quote-props */
|
|
135
|
+
function toJson_AlertSpecEventSources(obj) {
|
|
136
|
+
if (obj === undefined) {
|
|
137
|
+
return undefined;
|
|
138
|
+
}
|
|
139
|
+
const result = {
|
|
140
|
+
apiVersion: obj.apiVersion,
|
|
141
|
+
kind: obj.kind,
|
|
142
|
+
matchLabels: obj.matchLabels === undefined
|
|
143
|
+
? undefined
|
|
144
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
145
|
+
name: obj.name,
|
|
146
|
+
namespace: obj.namespace
|
|
147
|
+
};
|
|
148
|
+
// filter undefined values
|
|
149
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
150
|
+
}
|
|
151
|
+
/** Converts an object of type 'AlertSpecProviderRef' to JSON representation. */
|
|
152
|
+
/* eslint-disable max-len, quote-props */
|
|
153
|
+
function toJson_AlertSpecProviderRef(obj) {
|
|
154
|
+
if (obj === undefined) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
const result = {
|
|
158
|
+
name: obj.name
|
|
159
|
+
};
|
|
160
|
+
// filter undefined values
|
|
161
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
162
|
+
}
|
|
163
|
+
/* eslint-enable max-len, quote-props */
|
|
164
|
+
/**
|
|
165
|
+
* Kind of the referent
|
|
166
|
+
*
|
|
167
|
+
* @schema AlertSpecEventSourcesKind
|
|
168
|
+
*/
|
|
169
|
+
var AlertSpecEventSourcesKind;
|
|
170
|
+
(function (AlertSpecEventSourcesKind) {
|
|
171
|
+
/** Bucket */
|
|
172
|
+
AlertSpecEventSourcesKind["BUCKET"] = "Bucket";
|
|
173
|
+
/** GitRepository */
|
|
174
|
+
AlertSpecEventSourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
175
|
+
/** Kustomization */
|
|
176
|
+
AlertSpecEventSourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
177
|
+
/** HelmRelease */
|
|
178
|
+
AlertSpecEventSourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
179
|
+
/** HelmChart */
|
|
180
|
+
AlertSpecEventSourcesKind["HELM_CHART"] = "HelmChart";
|
|
181
|
+
/** HelmRepository */
|
|
182
|
+
AlertSpecEventSourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
183
|
+
/** ImageRepository */
|
|
184
|
+
AlertSpecEventSourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
185
|
+
/** ImagePolicy */
|
|
186
|
+
AlertSpecEventSourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
187
|
+
/** ImageUpdateAutomation */
|
|
188
|
+
AlertSpecEventSourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
189
|
+
/** OCIRepository */
|
|
190
|
+
AlertSpecEventSourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
191
|
+
})(AlertSpecEventSourcesKind || (exports.AlertSpecEventSourcesKind = AlertSpecEventSourcesKind = {}));
|
|
192
|
+
/**
|
|
193
|
+
* Alert is the Schema for the alerts API
|
|
194
|
+
*
|
|
195
|
+
* @schema AlertV1Beta2
|
|
196
|
+
*/
|
|
197
|
+
class AlertV1Beta2 extends cdk8s_1.ApiObject {
|
|
198
|
+
/**
|
|
199
|
+
* Renders a Kubernetes manifest for "AlertV1Beta2".
|
|
200
|
+
*
|
|
201
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
202
|
+
*
|
|
203
|
+
* @param props Initialization props
|
|
204
|
+
*/
|
|
205
|
+
static manifest(props = {}) {
|
|
206
|
+
return {
|
|
207
|
+
...AlertV1Beta2.GVK,
|
|
208
|
+
...toJson_AlertV1Beta2Props(props)
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Defines a "AlertV1Beta2" API object
|
|
213
|
+
*
|
|
214
|
+
* @param scope The scope in which to define this object
|
|
215
|
+
* @param id A scope-local name for the object
|
|
216
|
+
* @param props Initialization props
|
|
217
|
+
*/
|
|
218
|
+
constructor(scope, id, props = {}) {
|
|
219
|
+
super(scope, id, {
|
|
220
|
+
...AlertV1Beta2.GVK,
|
|
221
|
+
...props
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/** Renders the object to Kubernetes JSON. */
|
|
225
|
+
toJson() {
|
|
226
|
+
const resolved = super.toJson();
|
|
227
|
+
return {
|
|
228
|
+
...AlertV1Beta2.GVK,
|
|
229
|
+
...toJson_AlertV1Beta2Props(resolved)
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.AlertV1Beta2 = AlertV1Beta2;
|
|
234
|
+
/** Returns the apiVersion and kind for "AlertV1Beta2" */
|
|
235
|
+
AlertV1Beta2.GVK = {
|
|
236
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta2",
|
|
237
|
+
kind: "Alert"
|
|
238
|
+
};
|
|
239
|
+
/** Converts an object of type 'AlertV1Beta2Props' to JSON representation. */
|
|
240
|
+
/* eslint-disable max-len, quote-props */
|
|
241
|
+
function toJson_AlertV1Beta2Props(obj) {
|
|
242
|
+
if (obj === undefined) {
|
|
243
|
+
return undefined;
|
|
244
|
+
}
|
|
245
|
+
const result = {
|
|
246
|
+
metadata: obj.metadata,
|
|
247
|
+
spec: toJson_AlertV1Beta2Spec(obj.spec)
|
|
248
|
+
};
|
|
249
|
+
// filter undefined values
|
|
250
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
251
|
+
}
|
|
252
|
+
/** Converts an object of type 'AlertV1Beta2Spec' to JSON representation. */
|
|
253
|
+
/* eslint-disable max-len, quote-props */
|
|
254
|
+
function toJson_AlertV1Beta2Spec(obj) {
|
|
255
|
+
if (obj === undefined) {
|
|
256
|
+
return undefined;
|
|
257
|
+
}
|
|
258
|
+
const result = {
|
|
259
|
+
eventMetadata: obj.eventMetadata === undefined
|
|
260
|
+
? undefined
|
|
261
|
+
: Object.entries(obj.eventMetadata).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
262
|
+
eventSeverity: obj.eventSeverity,
|
|
263
|
+
eventSources: obj.eventSources?.map(y => toJson_AlertV1Beta2SpecEventSources(y)),
|
|
264
|
+
exclusionList: obj.exclusionList?.map(y => y),
|
|
265
|
+
inclusionList: obj.inclusionList?.map(y => y),
|
|
266
|
+
providerRef: toJson_AlertV1Beta2SpecProviderRef(obj.providerRef),
|
|
267
|
+
summary: obj.summary,
|
|
268
|
+
suspend: obj.suspend
|
|
269
|
+
};
|
|
270
|
+
// filter undefined values
|
|
271
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
272
|
+
}
|
|
273
|
+
/* eslint-enable max-len, quote-props */
|
|
274
|
+
/**
|
|
275
|
+
* EventSeverity specifies how to filter events based on severity. If set to 'info' no events will
|
|
276
|
+
* be filtered.
|
|
277
|
+
*
|
|
278
|
+
* @schema AlertV1Beta2SpecEventSeverity
|
|
279
|
+
*/
|
|
280
|
+
var AlertV1Beta2SpecEventSeverity;
|
|
281
|
+
(function (AlertV1Beta2SpecEventSeverity) {
|
|
282
|
+
/** Info */
|
|
283
|
+
AlertV1Beta2SpecEventSeverity["INFO"] = "info";
|
|
284
|
+
/** Error */
|
|
285
|
+
AlertV1Beta2SpecEventSeverity["ERROR"] = "error";
|
|
286
|
+
})(AlertV1Beta2SpecEventSeverity || (exports.AlertV1Beta2SpecEventSeverity = AlertV1Beta2SpecEventSeverity = {}));
|
|
287
|
+
/** Converts an object of type 'AlertV1Beta2SpecEventSources' to JSON representation. */
|
|
288
|
+
/* eslint-disable max-len, quote-props */
|
|
289
|
+
function toJson_AlertV1Beta2SpecEventSources(obj) {
|
|
290
|
+
if (obj === undefined) {
|
|
291
|
+
return undefined;
|
|
292
|
+
}
|
|
293
|
+
const result = {
|
|
294
|
+
apiVersion: obj.apiVersion,
|
|
295
|
+
kind: obj.kind,
|
|
296
|
+
matchLabels: obj.matchLabels === undefined
|
|
297
|
+
? undefined
|
|
298
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
299
|
+
name: obj.name,
|
|
300
|
+
namespace: obj.namespace
|
|
301
|
+
};
|
|
302
|
+
// filter undefined values
|
|
303
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
304
|
+
}
|
|
305
|
+
/** Converts an object of type 'AlertV1Beta2SpecProviderRef' to JSON representation. */
|
|
306
|
+
/* eslint-disable max-len, quote-props */
|
|
307
|
+
function toJson_AlertV1Beta2SpecProviderRef(obj) {
|
|
308
|
+
if (obj === undefined) {
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
const result = {
|
|
312
|
+
name: obj.name
|
|
313
|
+
};
|
|
314
|
+
// filter undefined values
|
|
315
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
316
|
+
}
|
|
317
|
+
/* eslint-enable max-len, quote-props */
|
|
318
|
+
/**
|
|
319
|
+
* Kind of the referent
|
|
320
|
+
*
|
|
321
|
+
* @schema AlertV1Beta2SpecEventSourcesKind
|
|
322
|
+
*/
|
|
323
|
+
var AlertV1Beta2SpecEventSourcesKind;
|
|
324
|
+
(function (AlertV1Beta2SpecEventSourcesKind) {
|
|
325
|
+
/** Bucket */
|
|
326
|
+
AlertV1Beta2SpecEventSourcesKind["BUCKET"] = "Bucket";
|
|
327
|
+
/** GitRepository */
|
|
328
|
+
AlertV1Beta2SpecEventSourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
329
|
+
/** Kustomization */
|
|
330
|
+
AlertV1Beta2SpecEventSourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
331
|
+
/** HelmRelease */
|
|
332
|
+
AlertV1Beta2SpecEventSourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
333
|
+
/** HelmChart */
|
|
334
|
+
AlertV1Beta2SpecEventSourcesKind["HELM_CHART"] = "HelmChart";
|
|
335
|
+
/** HelmRepository */
|
|
336
|
+
AlertV1Beta2SpecEventSourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
337
|
+
/** ImageRepository */
|
|
338
|
+
AlertV1Beta2SpecEventSourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
339
|
+
/** ImagePolicy */
|
|
340
|
+
AlertV1Beta2SpecEventSourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
341
|
+
/** ImageUpdateAutomation */
|
|
342
|
+
AlertV1Beta2SpecEventSourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
343
|
+
/** OCIRepository */
|
|
344
|
+
AlertV1Beta2SpecEventSourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
345
|
+
})(AlertV1Beta2SpecEventSourcesKind || (exports.AlertV1Beta2SpecEventSourcesKind = AlertV1Beta2SpecEventSourcesKind = {}));
|
|
346
|
+
/**
|
|
347
|
+
* Alert is the Schema for the alerts API
|
|
348
|
+
*
|
|
349
|
+
* @schema AlertV1Beta3
|
|
350
|
+
*/
|
|
351
|
+
class AlertV1Beta3 extends cdk8s_1.ApiObject {
|
|
352
|
+
/**
|
|
353
|
+
* Renders a Kubernetes manifest for "AlertV1Beta3".
|
|
354
|
+
*
|
|
355
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
356
|
+
*
|
|
357
|
+
* @param props Initialization props
|
|
358
|
+
*/
|
|
359
|
+
static manifest(props = {}) {
|
|
360
|
+
return {
|
|
361
|
+
...AlertV1Beta3.GVK,
|
|
362
|
+
...toJson_AlertV1Beta3Props(props)
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Defines a "AlertV1Beta3" API object
|
|
367
|
+
*
|
|
368
|
+
* @param scope The scope in which to define this object
|
|
369
|
+
* @param id A scope-local name for the object
|
|
370
|
+
* @param props Initialization props
|
|
371
|
+
*/
|
|
372
|
+
constructor(scope, id, props = {}) {
|
|
373
|
+
super(scope, id, {
|
|
374
|
+
...AlertV1Beta3.GVK,
|
|
375
|
+
...props
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/** Renders the object to Kubernetes JSON. */
|
|
379
|
+
toJson() {
|
|
380
|
+
const resolved = super.toJson();
|
|
381
|
+
return {
|
|
382
|
+
...AlertV1Beta3.GVK,
|
|
383
|
+
...toJson_AlertV1Beta3Props(resolved)
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
exports.AlertV1Beta3 = AlertV1Beta3;
|
|
388
|
+
/** Returns the apiVersion and kind for "AlertV1Beta3" */
|
|
389
|
+
AlertV1Beta3.GVK = {
|
|
390
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta3",
|
|
391
|
+
kind: "Alert"
|
|
392
|
+
};
|
|
393
|
+
/** Converts an object of type 'AlertV1Beta3Props' to JSON representation. */
|
|
394
|
+
/* eslint-disable max-len, quote-props */
|
|
395
|
+
function toJson_AlertV1Beta3Props(obj) {
|
|
396
|
+
if (obj === undefined) {
|
|
397
|
+
return undefined;
|
|
398
|
+
}
|
|
399
|
+
const result = {
|
|
400
|
+
metadata: obj.metadata,
|
|
401
|
+
spec: toJson_AlertV1Beta3Spec(obj.spec)
|
|
402
|
+
};
|
|
403
|
+
// filter undefined values
|
|
404
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
405
|
+
}
|
|
406
|
+
/** Converts an object of type 'AlertV1Beta3Spec' to JSON representation. */
|
|
407
|
+
/* eslint-disable max-len, quote-props */
|
|
408
|
+
function toJson_AlertV1Beta3Spec(obj) {
|
|
409
|
+
if (obj === undefined) {
|
|
410
|
+
return undefined;
|
|
411
|
+
}
|
|
412
|
+
const result = {
|
|
413
|
+
eventMetadata: obj.eventMetadata === undefined
|
|
414
|
+
? undefined
|
|
415
|
+
: Object.entries(obj.eventMetadata).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
416
|
+
eventSeverity: obj.eventSeverity,
|
|
417
|
+
eventSources: obj.eventSources?.map(y => toJson_AlertV1Beta3SpecEventSources(y)),
|
|
418
|
+
exclusionList: obj.exclusionList?.map(y => y),
|
|
419
|
+
inclusionList: obj.inclusionList?.map(y => y),
|
|
420
|
+
providerRef: toJson_AlertV1Beta3SpecProviderRef(obj.providerRef),
|
|
421
|
+
summary: obj.summary,
|
|
422
|
+
suspend: obj.suspend
|
|
423
|
+
};
|
|
424
|
+
// filter undefined values
|
|
425
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
426
|
+
}
|
|
427
|
+
/* eslint-enable max-len, quote-props */
|
|
428
|
+
/**
|
|
429
|
+
* EventSeverity specifies how to filter events based on severity. If set to 'info' no events will
|
|
430
|
+
* be filtered.
|
|
431
|
+
*
|
|
432
|
+
* @schema AlertV1Beta3SpecEventSeverity
|
|
433
|
+
*/
|
|
434
|
+
var AlertV1Beta3SpecEventSeverity;
|
|
435
|
+
(function (AlertV1Beta3SpecEventSeverity) {
|
|
436
|
+
/** Info */
|
|
437
|
+
AlertV1Beta3SpecEventSeverity["INFO"] = "info";
|
|
438
|
+
/** Error */
|
|
439
|
+
AlertV1Beta3SpecEventSeverity["ERROR"] = "error";
|
|
440
|
+
})(AlertV1Beta3SpecEventSeverity || (exports.AlertV1Beta3SpecEventSeverity = AlertV1Beta3SpecEventSeverity = {}));
|
|
441
|
+
/** Converts an object of type 'AlertV1Beta3SpecEventSources' to JSON representation. */
|
|
442
|
+
/* eslint-disable max-len, quote-props */
|
|
443
|
+
function toJson_AlertV1Beta3SpecEventSources(obj) {
|
|
444
|
+
if (obj === undefined) {
|
|
445
|
+
return undefined;
|
|
446
|
+
}
|
|
447
|
+
const result = {
|
|
448
|
+
apiVersion: obj.apiVersion,
|
|
449
|
+
kind: obj.kind,
|
|
450
|
+
matchLabels: obj.matchLabels === undefined
|
|
451
|
+
? undefined
|
|
452
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
453
|
+
name: obj.name,
|
|
454
|
+
namespace: obj.namespace
|
|
455
|
+
};
|
|
456
|
+
// filter undefined values
|
|
457
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
458
|
+
}
|
|
459
|
+
/** Converts an object of type 'AlertV1Beta3SpecProviderRef' to JSON representation. */
|
|
460
|
+
/* eslint-disable max-len, quote-props */
|
|
461
|
+
function toJson_AlertV1Beta3SpecProviderRef(obj) {
|
|
462
|
+
if (obj === undefined) {
|
|
463
|
+
return undefined;
|
|
464
|
+
}
|
|
465
|
+
const result = {
|
|
466
|
+
name: obj.name
|
|
467
|
+
};
|
|
468
|
+
// filter undefined values
|
|
469
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
470
|
+
}
|
|
471
|
+
/* eslint-enable max-len, quote-props */
|
|
472
|
+
/**
|
|
473
|
+
* Kind of the referent
|
|
474
|
+
*
|
|
475
|
+
* @schema AlertV1Beta3SpecEventSourcesKind
|
|
476
|
+
*/
|
|
477
|
+
var AlertV1Beta3SpecEventSourcesKind;
|
|
478
|
+
(function (AlertV1Beta3SpecEventSourcesKind) {
|
|
479
|
+
/** Bucket */
|
|
480
|
+
AlertV1Beta3SpecEventSourcesKind["BUCKET"] = "Bucket";
|
|
481
|
+
/** GitRepository */
|
|
482
|
+
AlertV1Beta3SpecEventSourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
483
|
+
/** Kustomization */
|
|
484
|
+
AlertV1Beta3SpecEventSourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
485
|
+
/** HelmRelease */
|
|
486
|
+
AlertV1Beta3SpecEventSourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
487
|
+
/** HelmChart */
|
|
488
|
+
AlertV1Beta3SpecEventSourcesKind["HELM_CHART"] = "HelmChart";
|
|
489
|
+
/** HelmRepository */
|
|
490
|
+
AlertV1Beta3SpecEventSourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
491
|
+
/** ImageRepository */
|
|
492
|
+
AlertV1Beta3SpecEventSourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
493
|
+
/** ImagePolicy */
|
|
494
|
+
AlertV1Beta3SpecEventSourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
495
|
+
/** ImageUpdateAutomation */
|
|
496
|
+
AlertV1Beta3SpecEventSourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
497
|
+
/** OCIRepository */
|
|
498
|
+
AlertV1Beta3SpecEventSourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
499
|
+
})(AlertV1Beta3SpecEventSourcesKind || (exports.AlertV1Beta3SpecEventSourcesKind = AlertV1Beta3SpecEventSourcesKind = {}));
|
|
500
|
+
/**
|
|
501
|
+
* Provider is the Schema for the providers API
|
|
502
|
+
*
|
|
503
|
+
* @schema Provider
|
|
504
|
+
*/
|
|
505
|
+
class Provider extends cdk8s_1.ApiObject {
|
|
506
|
+
/**
|
|
507
|
+
* Renders a Kubernetes manifest for "Provider".
|
|
508
|
+
*
|
|
509
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
510
|
+
*
|
|
511
|
+
* @param props Initialization props
|
|
512
|
+
*/
|
|
513
|
+
static manifest(props = {}) {
|
|
514
|
+
return {
|
|
515
|
+
...Provider.GVK,
|
|
516
|
+
...toJson_ProviderProps(props)
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Defines a "Provider" API object
|
|
521
|
+
*
|
|
522
|
+
* @param scope The scope in which to define this object
|
|
523
|
+
* @param id A scope-local name for the object
|
|
524
|
+
* @param props Initialization props
|
|
525
|
+
*/
|
|
526
|
+
constructor(scope, id, props = {}) {
|
|
527
|
+
super(scope, id, {
|
|
528
|
+
...Provider.GVK,
|
|
529
|
+
...props
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/** Renders the object to Kubernetes JSON. */
|
|
533
|
+
toJson() {
|
|
534
|
+
const resolved = super.toJson();
|
|
535
|
+
return {
|
|
536
|
+
...Provider.GVK,
|
|
537
|
+
...toJson_ProviderProps(resolved)
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
exports.Provider = Provider;
|
|
542
|
+
/** Returns the apiVersion and kind for "Provider" */
|
|
543
|
+
Provider.GVK = {
|
|
544
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta1",
|
|
545
|
+
kind: "Provider"
|
|
546
|
+
};
|
|
547
|
+
/** Converts an object of type 'ProviderProps' to JSON representation. */
|
|
548
|
+
/* eslint-disable max-len, quote-props */
|
|
549
|
+
function toJson_ProviderProps(obj) {
|
|
550
|
+
if (obj === undefined) {
|
|
551
|
+
return undefined;
|
|
552
|
+
}
|
|
553
|
+
const result = {
|
|
554
|
+
metadata: obj.metadata,
|
|
555
|
+
spec: toJson_ProviderSpec(obj.spec)
|
|
556
|
+
};
|
|
557
|
+
// filter undefined values
|
|
558
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
559
|
+
}
|
|
560
|
+
/** Converts an object of type 'ProviderSpec' to JSON representation. */
|
|
561
|
+
/* eslint-disable max-len, quote-props */
|
|
562
|
+
function toJson_ProviderSpec(obj) {
|
|
563
|
+
if (obj === undefined) {
|
|
564
|
+
return undefined;
|
|
565
|
+
}
|
|
566
|
+
const result = {
|
|
567
|
+
address: obj.address,
|
|
568
|
+
certSecretRef: toJson_ProviderSpecCertSecretRef(obj.certSecretRef),
|
|
569
|
+
channel: obj.channel,
|
|
570
|
+
proxy: obj.proxy,
|
|
571
|
+
secretRef: toJson_ProviderSpecSecretRef(obj.secretRef),
|
|
572
|
+
suspend: obj.suspend,
|
|
573
|
+
timeout: obj.timeout,
|
|
574
|
+
type: obj.type,
|
|
575
|
+
username: obj.username
|
|
576
|
+
};
|
|
577
|
+
// filter undefined values
|
|
578
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
579
|
+
}
|
|
580
|
+
/** Converts an object of type 'ProviderSpecCertSecretRef' to JSON representation. */
|
|
581
|
+
/* eslint-disable max-len, quote-props */
|
|
582
|
+
function toJson_ProviderSpecCertSecretRef(obj) {
|
|
583
|
+
if (obj === undefined) {
|
|
584
|
+
return undefined;
|
|
585
|
+
}
|
|
586
|
+
const result = {
|
|
587
|
+
name: obj.name
|
|
588
|
+
};
|
|
589
|
+
// filter undefined values
|
|
590
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
591
|
+
}
|
|
592
|
+
/** Converts an object of type 'ProviderSpecSecretRef' to JSON representation. */
|
|
593
|
+
/* eslint-disable max-len, quote-props */
|
|
594
|
+
function toJson_ProviderSpecSecretRef(obj) {
|
|
595
|
+
if (obj === undefined) {
|
|
596
|
+
return undefined;
|
|
597
|
+
}
|
|
598
|
+
const result = {
|
|
599
|
+
name: obj.name
|
|
600
|
+
};
|
|
601
|
+
// filter undefined values
|
|
602
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
603
|
+
}
|
|
604
|
+
/* eslint-enable max-len, quote-props */
|
|
605
|
+
/**
|
|
606
|
+
* Type of provider
|
|
607
|
+
*
|
|
608
|
+
* @schema ProviderSpecType
|
|
609
|
+
*/
|
|
610
|
+
var ProviderSpecType;
|
|
611
|
+
(function (ProviderSpecType) {
|
|
612
|
+
/** Slack */
|
|
613
|
+
ProviderSpecType["SLACK"] = "slack";
|
|
614
|
+
/** Discord */
|
|
615
|
+
ProviderSpecType["DISCORD"] = "discord";
|
|
616
|
+
/** Msteams */
|
|
617
|
+
ProviderSpecType["MSTEAMS"] = "msteams";
|
|
618
|
+
/** Rocket */
|
|
619
|
+
ProviderSpecType["ROCKET"] = "rocket";
|
|
620
|
+
/** Generic */
|
|
621
|
+
ProviderSpecType["GENERIC"] = "generic";
|
|
622
|
+
/** Generic-hmac */
|
|
623
|
+
ProviderSpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
624
|
+
/** Github */
|
|
625
|
+
ProviderSpecType["GITHUB"] = "github";
|
|
626
|
+
/** Gitlab */
|
|
627
|
+
ProviderSpecType["GITLAB"] = "gitlab";
|
|
628
|
+
/** Bitbucket */
|
|
629
|
+
ProviderSpecType["BITBUCKET"] = "bitbucket";
|
|
630
|
+
/** Azuredevops */
|
|
631
|
+
ProviderSpecType["AZUREDEVOPS"] = "azuredevops";
|
|
632
|
+
/** Googlechat */
|
|
633
|
+
ProviderSpecType["GOOGLECHAT"] = "googlechat";
|
|
634
|
+
/** Webex */
|
|
635
|
+
ProviderSpecType["WEBEX"] = "webex";
|
|
636
|
+
/** Sentry */
|
|
637
|
+
ProviderSpecType["SENTRY"] = "sentry";
|
|
638
|
+
/** Azureeventhub */
|
|
639
|
+
ProviderSpecType["AZUREEVENTHUB"] = "azureeventhub";
|
|
640
|
+
/** Telegram */
|
|
641
|
+
ProviderSpecType["TELEGRAM"] = "telegram";
|
|
642
|
+
/** Lark */
|
|
643
|
+
ProviderSpecType["LARK"] = "lark";
|
|
644
|
+
/** Matrix */
|
|
645
|
+
ProviderSpecType["MATRIX"] = "matrix";
|
|
646
|
+
/** Opsgenie */
|
|
647
|
+
ProviderSpecType["OPSGENIE"] = "opsgenie";
|
|
648
|
+
/** Alertmanager */
|
|
649
|
+
ProviderSpecType["ALERTMANAGER"] = "alertmanager";
|
|
650
|
+
/** Grafana */
|
|
651
|
+
ProviderSpecType["GRAFANA"] = "grafana";
|
|
652
|
+
/** Githubdispatch */
|
|
653
|
+
ProviderSpecType["GITHUBDISPATCH"] = "githubdispatch";
|
|
654
|
+
})(ProviderSpecType || (exports.ProviderSpecType = ProviderSpecType = {}));
|
|
655
|
+
/**
|
|
656
|
+
* Provider is the Schema for the providers API.
|
|
657
|
+
*
|
|
658
|
+
* @schema ProviderV1Beta2
|
|
659
|
+
*/
|
|
660
|
+
class ProviderV1Beta2 extends cdk8s_1.ApiObject {
|
|
661
|
+
/**
|
|
662
|
+
* Renders a Kubernetes manifest for "ProviderV1Beta2".
|
|
663
|
+
*
|
|
664
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
665
|
+
*
|
|
666
|
+
* @param props Initialization props
|
|
667
|
+
*/
|
|
668
|
+
static manifest(props = {}) {
|
|
669
|
+
return {
|
|
670
|
+
...ProviderV1Beta2.GVK,
|
|
671
|
+
...toJson_ProviderV1Beta2Props(props)
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Defines a "ProviderV1Beta2" API object
|
|
676
|
+
*
|
|
677
|
+
* @param scope The scope in which to define this object
|
|
678
|
+
* @param id A scope-local name for the object
|
|
679
|
+
* @param props Initialization props
|
|
680
|
+
*/
|
|
681
|
+
constructor(scope, id, props = {}) {
|
|
682
|
+
super(scope, id, {
|
|
683
|
+
...ProviderV1Beta2.GVK,
|
|
684
|
+
...props
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
/** Renders the object to Kubernetes JSON. */
|
|
688
|
+
toJson() {
|
|
689
|
+
const resolved = super.toJson();
|
|
690
|
+
return {
|
|
691
|
+
...ProviderV1Beta2.GVK,
|
|
692
|
+
...toJson_ProviderV1Beta2Props(resolved)
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
exports.ProviderV1Beta2 = ProviderV1Beta2;
|
|
697
|
+
/** Returns the apiVersion and kind for "ProviderV1Beta2" */
|
|
698
|
+
ProviderV1Beta2.GVK = {
|
|
699
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta2",
|
|
700
|
+
kind: "Provider"
|
|
701
|
+
};
|
|
702
|
+
/** Converts an object of type 'ProviderV1Beta2Props' to JSON representation. */
|
|
703
|
+
/* eslint-disable max-len, quote-props */
|
|
704
|
+
function toJson_ProviderV1Beta2Props(obj) {
|
|
705
|
+
if (obj === undefined) {
|
|
706
|
+
return undefined;
|
|
707
|
+
}
|
|
708
|
+
const result = {
|
|
709
|
+
metadata: obj.metadata,
|
|
710
|
+
spec: toJson_ProviderV1Beta2Spec(obj.spec)
|
|
711
|
+
};
|
|
712
|
+
// filter undefined values
|
|
713
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
714
|
+
}
|
|
715
|
+
/** Converts an object of type 'ProviderV1Beta2Spec' to JSON representation. */
|
|
716
|
+
/* eslint-disable max-len, quote-props */
|
|
717
|
+
function toJson_ProviderV1Beta2Spec(obj) {
|
|
718
|
+
if (obj === undefined) {
|
|
719
|
+
return undefined;
|
|
720
|
+
}
|
|
721
|
+
const result = {
|
|
722
|
+
address: obj.address,
|
|
723
|
+
certSecretRef: toJson_ProviderV1Beta2SpecCertSecretRef(obj.certSecretRef),
|
|
724
|
+
channel: obj.channel,
|
|
725
|
+
interval: obj.interval,
|
|
726
|
+
proxy: obj.proxy,
|
|
727
|
+
secretRef: toJson_ProviderV1Beta2SpecSecretRef(obj.secretRef),
|
|
728
|
+
suspend: obj.suspend,
|
|
729
|
+
timeout: obj.timeout,
|
|
730
|
+
type: obj.type,
|
|
731
|
+
username: obj.username
|
|
732
|
+
};
|
|
733
|
+
// filter undefined values
|
|
734
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
735
|
+
}
|
|
736
|
+
/** Converts an object of type 'ProviderV1Beta2SpecCertSecretRef' to JSON representation. */
|
|
737
|
+
/* eslint-disable max-len, quote-props */
|
|
738
|
+
function toJson_ProviderV1Beta2SpecCertSecretRef(obj) {
|
|
739
|
+
if (obj === undefined) {
|
|
740
|
+
return undefined;
|
|
741
|
+
}
|
|
742
|
+
const result = {
|
|
743
|
+
name: obj.name
|
|
744
|
+
};
|
|
745
|
+
// filter undefined values
|
|
746
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
747
|
+
}
|
|
748
|
+
/** Converts an object of type 'ProviderV1Beta2SpecSecretRef' to JSON representation. */
|
|
749
|
+
/* eslint-disable max-len, quote-props */
|
|
750
|
+
function toJson_ProviderV1Beta2SpecSecretRef(obj) {
|
|
751
|
+
if (obj === undefined) {
|
|
752
|
+
return undefined;
|
|
753
|
+
}
|
|
754
|
+
const result = {
|
|
755
|
+
name: obj.name
|
|
756
|
+
};
|
|
757
|
+
// filter undefined values
|
|
758
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
759
|
+
}
|
|
760
|
+
/* eslint-enable max-len, quote-props */
|
|
761
|
+
/**
|
|
762
|
+
* Type specifies which Provider implementation to use.
|
|
763
|
+
*
|
|
764
|
+
* @schema ProviderV1Beta2SpecType
|
|
765
|
+
*/
|
|
766
|
+
var ProviderV1Beta2SpecType;
|
|
767
|
+
(function (ProviderV1Beta2SpecType) {
|
|
768
|
+
/** Slack */
|
|
769
|
+
ProviderV1Beta2SpecType["SLACK"] = "slack";
|
|
770
|
+
/** Discord */
|
|
771
|
+
ProviderV1Beta2SpecType["DISCORD"] = "discord";
|
|
772
|
+
/** Msteams */
|
|
773
|
+
ProviderV1Beta2SpecType["MSTEAMS"] = "msteams";
|
|
774
|
+
/** Rocket */
|
|
775
|
+
ProviderV1Beta2SpecType["ROCKET"] = "rocket";
|
|
776
|
+
/** Generic */
|
|
777
|
+
ProviderV1Beta2SpecType["GENERIC"] = "generic";
|
|
778
|
+
/** Generic-hmac */
|
|
779
|
+
ProviderV1Beta2SpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
780
|
+
/** Github */
|
|
781
|
+
ProviderV1Beta2SpecType["GITHUB"] = "github";
|
|
782
|
+
/** Gitlab */
|
|
783
|
+
ProviderV1Beta2SpecType["GITLAB"] = "gitlab";
|
|
784
|
+
/** Gitea */
|
|
785
|
+
ProviderV1Beta2SpecType["GITEA"] = "gitea";
|
|
786
|
+
/** Bitbucketserver */
|
|
787
|
+
ProviderV1Beta2SpecType["BITBUCKETSERVER"] = "bitbucketserver";
|
|
788
|
+
/** Bitbucket */
|
|
789
|
+
ProviderV1Beta2SpecType["BITBUCKET"] = "bitbucket";
|
|
790
|
+
/** Azuredevops */
|
|
791
|
+
ProviderV1Beta2SpecType["AZUREDEVOPS"] = "azuredevops";
|
|
792
|
+
/** Googlechat */
|
|
793
|
+
ProviderV1Beta2SpecType["GOOGLECHAT"] = "googlechat";
|
|
794
|
+
/** Googlepubsub */
|
|
795
|
+
ProviderV1Beta2SpecType["GOOGLEPUBSUB"] = "googlepubsub";
|
|
796
|
+
/** Webex */
|
|
797
|
+
ProviderV1Beta2SpecType["WEBEX"] = "webex";
|
|
798
|
+
/** Sentry */
|
|
799
|
+
ProviderV1Beta2SpecType["SENTRY"] = "sentry";
|
|
800
|
+
/** Azureeventhub */
|
|
801
|
+
ProviderV1Beta2SpecType["AZUREEVENTHUB"] = "azureeventhub";
|
|
802
|
+
/** Telegram */
|
|
803
|
+
ProviderV1Beta2SpecType["TELEGRAM"] = "telegram";
|
|
804
|
+
/** Lark */
|
|
805
|
+
ProviderV1Beta2SpecType["LARK"] = "lark";
|
|
806
|
+
/** Matrix */
|
|
807
|
+
ProviderV1Beta2SpecType["MATRIX"] = "matrix";
|
|
808
|
+
/** Opsgenie */
|
|
809
|
+
ProviderV1Beta2SpecType["OPSGENIE"] = "opsgenie";
|
|
810
|
+
/** Alertmanager */
|
|
811
|
+
ProviderV1Beta2SpecType["ALERTMANAGER"] = "alertmanager";
|
|
812
|
+
/** Grafana */
|
|
813
|
+
ProviderV1Beta2SpecType["GRAFANA"] = "grafana";
|
|
814
|
+
/** Githubdispatch */
|
|
815
|
+
ProviderV1Beta2SpecType["GITHUBDISPATCH"] = "githubdispatch";
|
|
816
|
+
/** Pagerduty */
|
|
817
|
+
ProviderV1Beta2SpecType["PAGERDUTY"] = "pagerduty";
|
|
818
|
+
/** Datadog */
|
|
819
|
+
ProviderV1Beta2SpecType["DATADOG"] = "datadog";
|
|
820
|
+
})(ProviderV1Beta2SpecType || (exports.ProviderV1Beta2SpecType = ProviderV1Beta2SpecType = {}));
|
|
821
|
+
/**
|
|
822
|
+
* Provider is the Schema for the providers API
|
|
823
|
+
*
|
|
824
|
+
* @schema ProviderV1Beta3
|
|
825
|
+
*/
|
|
826
|
+
class ProviderV1Beta3 extends cdk8s_1.ApiObject {
|
|
827
|
+
/**
|
|
828
|
+
* Renders a Kubernetes manifest for "ProviderV1Beta3".
|
|
829
|
+
*
|
|
830
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
831
|
+
*
|
|
832
|
+
* @param props Initialization props
|
|
833
|
+
*/
|
|
834
|
+
static manifest(props = {}) {
|
|
835
|
+
return {
|
|
836
|
+
...ProviderV1Beta3.GVK,
|
|
837
|
+
...toJson_ProviderV1Beta3Props(props)
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Defines a "ProviderV1Beta3" API object
|
|
842
|
+
*
|
|
843
|
+
* @param scope The scope in which to define this object
|
|
844
|
+
* @param id A scope-local name for the object
|
|
845
|
+
* @param props Initialization props
|
|
846
|
+
*/
|
|
847
|
+
constructor(scope, id, props = {}) {
|
|
848
|
+
super(scope, id, {
|
|
849
|
+
...ProviderV1Beta3.GVK,
|
|
850
|
+
...props
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
/** Renders the object to Kubernetes JSON. */
|
|
854
|
+
toJson() {
|
|
855
|
+
const resolved = super.toJson();
|
|
856
|
+
return {
|
|
857
|
+
...ProviderV1Beta3.GVK,
|
|
858
|
+
...toJson_ProviderV1Beta3Props(resolved)
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
exports.ProviderV1Beta3 = ProviderV1Beta3;
|
|
863
|
+
/** Returns the apiVersion and kind for "ProviderV1Beta3" */
|
|
864
|
+
ProviderV1Beta3.GVK = {
|
|
865
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta3",
|
|
866
|
+
kind: "Provider"
|
|
867
|
+
};
|
|
868
|
+
/** Converts an object of type 'ProviderV1Beta3Props' to JSON representation. */
|
|
869
|
+
/* eslint-disable max-len, quote-props */
|
|
870
|
+
function toJson_ProviderV1Beta3Props(obj) {
|
|
871
|
+
if (obj === undefined) {
|
|
872
|
+
return undefined;
|
|
873
|
+
}
|
|
874
|
+
const result = {
|
|
875
|
+
metadata: obj.metadata,
|
|
876
|
+
spec: toJson_ProviderV1Beta3Spec(obj.spec)
|
|
877
|
+
};
|
|
878
|
+
// filter undefined values
|
|
879
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
880
|
+
}
|
|
881
|
+
/** Converts an object of type 'ProviderV1Beta3Spec' to JSON representation. */
|
|
882
|
+
/* eslint-disable max-len, quote-props */
|
|
883
|
+
function toJson_ProviderV1Beta3Spec(obj) {
|
|
884
|
+
if (obj === undefined) {
|
|
885
|
+
return undefined;
|
|
886
|
+
}
|
|
887
|
+
const result = {
|
|
888
|
+
address: obj.address,
|
|
889
|
+
certSecretRef: toJson_ProviderV1Beta3SpecCertSecretRef(obj.certSecretRef),
|
|
890
|
+
channel: obj.channel,
|
|
891
|
+
interval: obj.interval,
|
|
892
|
+
proxy: obj.proxy,
|
|
893
|
+
secretRef: toJson_ProviderV1Beta3SpecSecretRef(obj.secretRef),
|
|
894
|
+
suspend: obj.suspend,
|
|
895
|
+
timeout: obj.timeout,
|
|
896
|
+
type: obj.type,
|
|
897
|
+
username: obj.username
|
|
898
|
+
};
|
|
899
|
+
// filter undefined values
|
|
900
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
901
|
+
}
|
|
902
|
+
/** Converts an object of type 'ProviderV1Beta3SpecCertSecretRef' to JSON representation. */
|
|
903
|
+
/* eslint-disable max-len, quote-props */
|
|
904
|
+
function toJson_ProviderV1Beta3SpecCertSecretRef(obj) {
|
|
905
|
+
if (obj === undefined) {
|
|
906
|
+
return undefined;
|
|
907
|
+
}
|
|
908
|
+
const result = {
|
|
909
|
+
name: obj.name
|
|
910
|
+
};
|
|
911
|
+
// filter undefined values
|
|
912
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
913
|
+
}
|
|
914
|
+
/** Converts an object of type 'ProviderV1Beta3SpecSecretRef' to JSON representation. */
|
|
915
|
+
/* eslint-disable max-len, quote-props */
|
|
916
|
+
function toJson_ProviderV1Beta3SpecSecretRef(obj) {
|
|
917
|
+
if (obj === undefined) {
|
|
918
|
+
return undefined;
|
|
919
|
+
}
|
|
920
|
+
const result = {
|
|
921
|
+
name: obj.name
|
|
922
|
+
};
|
|
923
|
+
// filter undefined values
|
|
924
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
925
|
+
}
|
|
926
|
+
/* eslint-enable max-len, quote-props */
|
|
927
|
+
/**
|
|
928
|
+
* Type specifies which Provider implementation to use.
|
|
929
|
+
*
|
|
930
|
+
* @schema ProviderV1Beta3SpecType
|
|
931
|
+
*/
|
|
932
|
+
var ProviderV1Beta3SpecType;
|
|
933
|
+
(function (ProviderV1Beta3SpecType) {
|
|
934
|
+
/** Slack */
|
|
935
|
+
ProviderV1Beta3SpecType["SLACK"] = "slack";
|
|
936
|
+
/** Discord */
|
|
937
|
+
ProviderV1Beta3SpecType["DISCORD"] = "discord";
|
|
938
|
+
/** Msteams */
|
|
939
|
+
ProviderV1Beta3SpecType["MSTEAMS"] = "msteams";
|
|
940
|
+
/** Rocket */
|
|
941
|
+
ProviderV1Beta3SpecType["ROCKET"] = "rocket";
|
|
942
|
+
/** Generic */
|
|
943
|
+
ProviderV1Beta3SpecType["GENERIC"] = "generic";
|
|
944
|
+
/** Generic-hmac */
|
|
945
|
+
ProviderV1Beta3SpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
946
|
+
/** Github */
|
|
947
|
+
ProviderV1Beta3SpecType["GITHUB"] = "github";
|
|
948
|
+
/** Gitlab */
|
|
949
|
+
ProviderV1Beta3SpecType["GITLAB"] = "gitlab";
|
|
950
|
+
/** Gitea */
|
|
951
|
+
ProviderV1Beta3SpecType["GITEA"] = "gitea";
|
|
952
|
+
/** Bitbucketserver */
|
|
953
|
+
ProviderV1Beta3SpecType["BITBUCKETSERVER"] = "bitbucketserver";
|
|
954
|
+
/** Bitbucket */
|
|
955
|
+
ProviderV1Beta3SpecType["BITBUCKET"] = "bitbucket";
|
|
956
|
+
/** Azuredevops */
|
|
957
|
+
ProviderV1Beta3SpecType["AZUREDEVOPS"] = "azuredevops";
|
|
958
|
+
/** Googlechat */
|
|
959
|
+
ProviderV1Beta3SpecType["GOOGLECHAT"] = "googlechat";
|
|
960
|
+
/** Googlepubsub */
|
|
961
|
+
ProviderV1Beta3SpecType["GOOGLEPUBSUB"] = "googlepubsub";
|
|
962
|
+
/** Webex */
|
|
963
|
+
ProviderV1Beta3SpecType["WEBEX"] = "webex";
|
|
964
|
+
/** Sentry */
|
|
965
|
+
ProviderV1Beta3SpecType["SENTRY"] = "sentry";
|
|
966
|
+
/** Azureeventhub */
|
|
967
|
+
ProviderV1Beta3SpecType["AZUREEVENTHUB"] = "azureeventhub";
|
|
968
|
+
/** Telegram */
|
|
969
|
+
ProviderV1Beta3SpecType["TELEGRAM"] = "telegram";
|
|
970
|
+
/** Lark */
|
|
971
|
+
ProviderV1Beta3SpecType["LARK"] = "lark";
|
|
972
|
+
/** Matrix */
|
|
973
|
+
ProviderV1Beta3SpecType["MATRIX"] = "matrix";
|
|
974
|
+
/** Opsgenie */
|
|
975
|
+
ProviderV1Beta3SpecType["OPSGENIE"] = "opsgenie";
|
|
976
|
+
/** Alertmanager */
|
|
977
|
+
ProviderV1Beta3SpecType["ALERTMANAGER"] = "alertmanager";
|
|
978
|
+
/** Grafana */
|
|
979
|
+
ProviderV1Beta3SpecType["GRAFANA"] = "grafana";
|
|
980
|
+
/** Githubdispatch */
|
|
981
|
+
ProviderV1Beta3SpecType["GITHUBDISPATCH"] = "githubdispatch";
|
|
982
|
+
/** Pagerduty */
|
|
983
|
+
ProviderV1Beta3SpecType["PAGERDUTY"] = "pagerduty";
|
|
984
|
+
/** Datadog */
|
|
985
|
+
ProviderV1Beta3SpecType["DATADOG"] = "datadog";
|
|
986
|
+
/** Nats */
|
|
987
|
+
ProviderV1Beta3SpecType["NATS"] = "nats";
|
|
988
|
+
})(ProviderV1Beta3SpecType || (exports.ProviderV1Beta3SpecType = ProviderV1Beta3SpecType = {}));
|
|
989
|
+
/**
|
|
990
|
+
* Receiver is the Schema for the receivers API.
|
|
991
|
+
*
|
|
992
|
+
* @schema Receiver
|
|
993
|
+
*/
|
|
994
|
+
class Receiver extends cdk8s_1.ApiObject {
|
|
995
|
+
/**
|
|
996
|
+
* Renders a Kubernetes manifest for "Receiver".
|
|
997
|
+
*
|
|
998
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
999
|
+
*
|
|
1000
|
+
* @param props Initialization props
|
|
1001
|
+
*/
|
|
1002
|
+
static manifest(props = {}) {
|
|
1003
|
+
return {
|
|
1004
|
+
...Receiver.GVK,
|
|
1005
|
+
...toJson_ReceiverProps(props)
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Defines a "Receiver" API object
|
|
1010
|
+
*
|
|
1011
|
+
* @param scope The scope in which to define this object
|
|
1012
|
+
* @param id A scope-local name for the object
|
|
1013
|
+
* @param props Initialization props
|
|
1014
|
+
*/
|
|
1015
|
+
constructor(scope, id, props = {}) {
|
|
1016
|
+
super(scope, id, {
|
|
1017
|
+
...Receiver.GVK,
|
|
1018
|
+
...props
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
/** Renders the object to Kubernetes JSON. */
|
|
1022
|
+
toJson() {
|
|
1023
|
+
const resolved = super.toJson();
|
|
1024
|
+
return {
|
|
1025
|
+
...Receiver.GVK,
|
|
1026
|
+
...toJson_ReceiverProps(resolved)
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
exports.Receiver = Receiver;
|
|
1031
|
+
/** Returns the apiVersion and kind for "Receiver" */
|
|
1032
|
+
Receiver.GVK = {
|
|
1033
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1",
|
|
1034
|
+
kind: "Receiver"
|
|
1035
|
+
};
|
|
1036
|
+
/** Converts an object of type 'ReceiverProps' to JSON representation. */
|
|
1037
|
+
/* eslint-disable max-len, quote-props */
|
|
1038
|
+
function toJson_ReceiverProps(obj) {
|
|
1039
|
+
if (obj === undefined) {
|
|
1040
|
+
return undefined;
|
|
1041
|
+
}
|
|
1042
|
+
const result = {
|
|
1043
|
+
metadata: obj.metadata,
|
|
1044
|
+
spec: toJson_ReceiverSpec(obj.spec)
|
|
1045
|
+
};
|
|
1046
|
+
// filter undefined values
|
|
1047
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1048
|
+
}
|
|
1049
|
+
/** Converts an object of type 'ReceiverSpec' to JSON representation. */
|
|
1050
|
+
/* eslint-disable max-len, quote-props */
|
|
1051
|
+
function toJson_ReceiverSpec(obj) {
|
|
1052
|
+
if (obj === undefined) {
|
|
1053
|
+
return undefined;
|
|
1054
|
+
}
|
|
1055
|
+
const result = {
|
|
1056
|
+
events: obj.events?.map(y => y),
|
|
1057
|
+
interval: obj.interval,
|
|
1058
|
+
resourceFilter: obj.resourceFilter,
|
|
1059
|
+
resources: obj.resources?.map(y => toJson_ReceiverSpecResources(y)),
|
|
1060
|
+
secretRef: toJson_ReceiverSpecSecretRef(obj.secretRef),
|
|
1061
|
+
suspend: obj.suspend,
|
|
1062
|
+
type: obj.type
|
|
1063
|
+
};
|
|
1064
|
+
// filter undefined values
|
|
1065
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1066
|
+
}
|
|
1067
|
+
/** Converts an object of type 'ReceiverSpecResources' to JSON representation. */
|
|
1068
|
+
/* eslint-disable max-len, quote-props */
|
|
1069
|
+
function toJson_ReceiverSpecResources(obj) {
|
|
1070
|
+
if (obj === undefined) {
|
|
1071
|
+
return undefined;
|
|
1072
|
+
}
|
|
1073
|
+
const result = {
|
|
1074
|
+
apiVersion: obj.apiVersion,
|
|
1075
|
+
kind: obj.kind,
|
|
1076
|
+
matchLabels: obj.matchLabels === undefined
|
|
1077
|
+
? undefined
|
|
1078
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
1079
|
+
name: obj.name,
|
|
1080
|
+
namespace: obj.namespace
|
|
1081
|
+
};
|
|
1082
|
+
// filter undefined values
|
|
1083
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1084
|
+
}
|
|
1085
|
+
/** Converts an object of type 'ReceiverSpecSecretRef' to JSON representation. */
|
|
1086
|
+
/* eslint-disable max-len, quote-props */
|
|
1087
|
+
function toJson_ReceiverSpecSecretRef(obj) {
|
|
1088
|
+
if (obj === undefined) {
|
|
1089
|
+
return undefined;
|
|
1090
|
+
}
|
|
1091
|
+
const result = {
|
|
1092
|
+
name: obj.name
|
|
1093
|
+
};
|
|
1094
|
+
// filter undefined values
|
|
1095
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1096
|
+
}
|
|
1097
|
+
/* eslint-enable max-len, quote-props */
|
|
1098
|
+
/**
|
|
1099
|
+
* Type of webhook sender, used to determine the validation procedure and payload deserialization.
|
|
1100
|
+
*
|
|
1101
|
+
* @schema ReceiverSpecType
|
|
1102
|
+
*/
|
|
1103
|
+
var ReceiverSpecType;
|
|
1104
|
+
(function (ReceiverSpecType) {
|
|
1105
|
+
/** Generic */
|
|
1106
|
+
ReceiverSpecType["GENERIC"] = "generic";
|
|
1107
|
+
/** Generic-hmac */
|
|
1108
|
+
ReceiverSpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
1109
|
+
/** Github */
|
|
1110
|
+
ReceiverSpecType["GITHUB"] = "github";
|
|
1111
|
+
/** Gitlab */
|
|
1112
|
+
ReceiverSpecType["GITLAB"] = "gitlab";
|
|
1113
|
+
/** Bitbucket */
|
|
1114
|
+
ReceiverSpecType["BITBUCKET"] = "bitbucket";
|
|
1115
|
+
/** Harbor */
|
|
1116
|
+
ReceiverSpecType["HARBOR"] = "harbor";
|
|
1117
|
+
/** Dockerhub */
|
|
1118
|
+
ReceiverSpecType["DOCKERHUB"] = "dockerhub";
|
|
1119
|
+
/** Quay */
|
|
1120
|
+
ReceiverSpecType["QUAY"] = "quay";
|
|
1121
|
+
/** Gcr */
|
|
1122
|
+
ReceiverSpecType["GCR"] = "gcr";
|
|
1123
|
+
/** Nexus */
|
|
1124
|
+
ReceiverSpecType["NEXUS"] = "nexus";
|
|
1125
|
+
/** Acr */
|
|
1126
|
+
ReceiverSpecType["ACR"] = "acr";
|
|
1127
|
+
/** Cdevents */
|
|
1128
|
+
ReceiverSpecType["CDEVENTS"] = "cdevents";
|
|
1129
|
+
})(ReceiverSpecType || (exports.ReceiverSpecType = ReceiverSpecType = {}));
|
|
1130
|
+
/**
|
|
1131
|
+
* Kind of the referent
|
|
1132
|
+
*
|
|
1133
|
+
* @schema ReceiverSpecResourcesKind
|
|
1134
|
+
*/
|
|
1135
|
+
var ReceiverSpecResourcesKind;
|
|
1136
|
+
(function (ReceiverSpecResourcesKind) {
|
|
1137
|
+
/** Bucket */
|
|
1138
|
+
ReceiverSpecResourcesKind["BUCKET"] = "Bucket";
|
|
1139
|
+
/** GitRepository */
|
|
1140
|
+
ReceiverSpecResourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
1141
|
+
/** Kustomization */
|
|
1142
|
+
ReceiverSpecResourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
1143
|
+
/** HelmRelease */
|
|
1144
|
+
ReceiverSpecResourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
1145
|
+
/** HelmChart */
|
|
1146
|
+
ReceiverSpecResourcesKind["HELM_CHART"] = "HelmChart";
|
|
1147
|
+
/** HelmRepository */
|
|
1148
|
+
ReceiverSpecResourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
1149
|
+
/** ImageRepository */
|
|
1150
|
+
ReceiverSpecResourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
1151
|
+
/** ImagePolicy */
|
|
1152
|
+
ReceiverSpecResourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
1153
|
+
/** ImageUpdateAutomation */
|
|
1154
|
+
ReceiverSpecResourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
1155
|
+
/** OCIRepository */
|
|
1156
|
+
ReceiverSpecResourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
1157
|
+
})(ReceiverSpecResourcesKind || (exports.ReceiverSpecResourcesKind = ReceiverSpecResourcesKind = {}));
|
|
1158
|
+
/**
|
|
1159
|
+
* Receiver is the Schema for the receivers API
|
|
1160
|
+
*
|
|
1161
|
+
* @schema ReceiverV1Beta1
|
|
1162
|
+
*/
|
|
1163
|
+
class ReceiverV1Beta1 extends cdk8s_1.ApiObject {
|
|
1164
|
+
/**
|
|
1165
|
+
* Renders a Kubernetes manifest for "ReceiverV1Beta1".
|
|
1166
|
+
*
|
|
1167
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
1168
|
+
*
|
|
1169
|
+
* @param props Initialization props
|
|
1170
|
+
*/
|
|
1171
|
+
static manifest(props = {}) {
|
|
1172
|
+
return {
|
|
1173
|
+
...ReceiverV1Beta1.GVK,
|
|
1174
|
+
...toJson_ReceiverV1Beta1Props(props)
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Defines a "ReceiverV1Beta1" API object
|
|
1179
|
+
*
|
|
1180
|
+
* @param scope The scope in which to define this object
|
|
1181
|
+
* @param id A scope-local name for the object
|
|
1182
|
+
* @param props Initialization props
|
|
1183
|
+
*/
|
|
1184
|
+
constructor(scope, id, props = {}) {
|
|
1185
|
+
super(scope, id, {
|
|
1186
|
+
...ReceiverV1Beta1.GVK,
|
|
1187
|
+
...props
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
/** Renders the object to Kubernetes JSON. */
|
|
1191
|
+
toJson() {
|
|
1192
|
+
const resolved = super.toJson();
|
|
1193
|
+
return {
|
|
1194
|
+
...ReceiverV1Beta1.GVK,
|
|
1195
|
+
...toJson_ReceiverV1Beta1Props(resolved)
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
exports.ReceiverV1Beta1 = ReceiverV1Beta1;
|
|
1200
|
+
/** Returns the apiVersion and kind for "ReceiverV1Beta1" */
|
|
1201
|
+
ReceiverV1Beta1.GVK = {
|
|
1202
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta1",
|
|
1203
|
+
kind: "Receiver"
|
|
1204
|
+
};
|
|
1205
|
+
/** Converts an object of type 'ReceiverV1Beta1Props' to JSON representation. */
|
|
1206
|
+
/* eslint-disable max-len, quote-props */
|
|
1207
|
+
function toJson_ReceiverV1Beta1Props(obj) {
|
|
1208
|
+
if (obj === undefined) {
|
|
1209
|
+
return undefined;
|
|
1210
|
+
}
|
|
1211
|
+
const result = {
|
|
1212
|
+
metadata: obj.metadata,
|
|
1213
|
+
spec: toJson_ReceiverV1Beta1Spec(obj.spec)
|
|
1214
|
+
};
|
|
1215
|
+
// filter undefined values
|
|
1216
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1217
|
+
}
|
|
1218
|
+
/** Converts an object of type 'ReceiverV1Beta1Spec' to JSON representation. */
|
|
1219
|
+
/* eslint-disable max-len, quote-props */
|
|
1220
|
+
function toJson_ReceiverV1Beta1Spec(obj) {
|
|
1221
|
+
if (obj === undefined) {
|
|
1222
|
+
return undefined;
|
|
1223
|
+
}
|
|
1224
|
+
const result = {
|
|
1225
|
+
events: obj.events?.map(y => y),
|
|
1226
|
+
resources: obj.resources?.map(y => toJson_ReceiverV1Beta1SpecResources(y)),
|
|
1227
|
+
secretRef: toJson_ReceiverV1Beta1SpecSecretRef(obj.secretRef),
|
|
1228
|
+
suspend: obj.suspend,
|
|
1229
|
+
type: obj.type
|
|
1230
|
+
};
|
|
1231
|
+
// filter undefined values
|
|
1232
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1233
|
+
}
|
|
1234
|
+
/** Converts an object of type 'ReceiverV1Beta1SpecResources' to JSON representation. */
|
|
1235
|
+
/* eslint-disable max-len, quote-props */
|
|
1236
|
+
function toJson_ReceiverV1Beta1SpecResources(obj) {
|
|
1237
|
+
if (obj === undefined) {
|
|
1238
|
+
return undefined;
|
|
1239
|
+
}
|
|
1240
|
+
const result = {
|
|
1241
|
+
apiVersion: obj.apiVersion,
|
|
1242
|
+
kind: obj.kind,
|
|
1243
|
+
matchLabels: obj.matchLabels === undefined
|
|
1244
|
+
? undefined
|
|
1245
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
1246
|
+
name: obj.name,
|
|
1247
|
+
namespace: obj.namespace
|
|
1248
|
+
};
|
|
1249
|
+
// filter undefined values
|
|
1250
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1251
|
+
}
|
|
1252
|
+
/** Converts an object of type 'ReceiverV1Beta1SpecSecretRef' to JSON representation. */
|
|
1253
|
+
/* eslint-disable max-len, quote-props */
|
|
1254
|
+
function toJson_ReceiverV1Beta1SpecSecretRef(obj) {
|
|
1255
|
+
if (obj === undefined) {
|
|
1256
|
+
return undefined;
|
|
1257
|
+
}
|
|
1258
|
+
const result = {
|
|
1259
|
+
name: obj.name
|
|
1260
|
+
};
|
|
1261
|
+
// filter undefined values
|
|
1262
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1263
|
+
}
|
|
1264
|
+
/* eslint-enable max-len, quote-props */
|
|
1265
|
+
/**
|
|
1266
|
+
* Type of webhook sender, used to determine the validation procedure and payload deserialization.
|
|
1267
|
+
*
|
|
1268
|
+
* @schema ReceiverV1Beta1SpecType
|
|
1269
|
+
*/
|
|
1270
|
+
var ReceiverV1Beta1SpecType;
|
|
1271
|
+
(function (ReceiverV1Beta1SpecType) {
|
|
1272
|
+
/** Generic */
|
|
1273
|
+
ReceiverV1Beta1SpecType["GENERIC"] = "generic";
|
|
1274
|
+
/** Generic-hmac */
|
|
1275
|
+
ReceiverV1Beta1SpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
1276
|
+
/** Github */
|
|
1277
|
+
ReceiverV1Beta1SpecType["GITHUB"] = "github";
|
|
1278
|
+
/** Gitlab */
|
|
1279
|
+
ReceiverV1Beta1SpecType["GITLAB"] = "gitlab";
|
|
1280
|
+
/** Bitbucket */
|
|
1281
|
+
ReceiverV1Beta1SpecType["BITBUCKET"] = "bitbucket";
|
|
1282
|
+
/** Harbor */
|
|
1283
|
+
ReceiverV1Beta1SpecType["HARBOR"] = "harbor";
|
|
1284
|
+
/** Dockerhub */
|
|
1285
|
+
ReceiverV1Beta1SpecType["DOCKERHUB"] = "dockerhub";
|
|
1286
|
+
/** Quay */
|
|
1287
|
+
ReceiverV1Beta1SpecType["QUAY"] = "quay";
|
|
1288
|
+
/** Gcr */
|
|
1289
|
+
ReceiverV1Beta1SpecType["GCR"] = "gcr";
|
|
1290
|
+
/** Nexus */
|
|
1291
|
+
ReceiverV1Beta1SpecType["NEXUS"] = "nexus";
|
|
1292
|
+
/** Acr */
|
|
1293
|
+
ReceiverV1Beta1SpecType["ACR"] = "acr";
|
|
1294
|
+
})(ReceiverV1Beta1SpecType || (exports.ReceiverV1Beta1SpecType = ReceiverV1Beta1SpecType = {}));
|
|
1295
|
+
/**
|
|
1296
|
+
* Kind of the referent
|
|
1297
|
+
*
|
|
1298
|
+
* @schema ReceiverV1Beta1SpecResourcesKind
|
|
1299
|
+
*/
|
|
1300
|
+
var ReceiverV1Beta1SpecResourcesKind;
|
|
1301
|
+
(function (ReceiverV1Beta1SpecResourcesKind) {
|
|
1302
|
+
/** Bucket */
|
|
1303
|
+
ReceiverV1Beta1SpecResourcesKind["BUCKET"] = "Bucket";
|
|
1304
|
+
/** GitRepository */
|
|
1305
|
+
ReceiverV1Beta1SpecResourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
1306
|
+
/** Kustomization */
|
|
1307
|
+
ReceiverV1Beta1SpecResourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
1308
|
+
/** HelmRelease */
|
|
1309
|
+
ReceiverV1Beta1SpecResourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
1310
|
+
/** HelmChart */
|
|
1311
|
+
ReceiverV1Beta1SpecResourcesKind["HELM_CHART"] = "HelmChart";
|
|
1312
|
+
/** HelmRepository */
|
|
1313
|
+
ReceiverV1Beta1SpecResourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
1314
|
+
/** ImageRepository */
|
|
1315
|
+
ReceiverV1Beta1SpecResourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
1316
|
+
/** ImagePolicy */
|
|
1317
|
+
ReceiverV1Beta1SpecResourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
1318
|
+
/** ImageUpdateAutomation */
|
|
1319
|
+
ReceiverV1Beta1SpecResourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
1320
|
+
/** OCIRepository */
|
|
1321
|
+
ReceiverV1Beta1SpecResourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
1322
|
+
})(ReceiverV1Beta1SpecResourcesKind || (exports.ReceiverV1Beta1SpecResourcesKind = ReceiverV1Beta1SpecResourcesKind = {}));
|
|
1323
|
+
/**
|
|
1324
|
+
* Receiver is the Schema for the receivers API.
|
|
1325
|
+
*
|
|
1326
|
+
* @schema ReceiverV1Beta2
|
|
1327
|
+
*/
|
|
1328
|
+
class ReceiverV1Beta2 extends cdk8s_1.ApiObject {
|
|
1329
|
+
/**
|
|
1330
|
+
* Renders a Kubernetes manifest for "ReceiverV1Beta2".
|
|
1331
|
+
*
|
|
1332
|
+
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
1333
|
+
*
|
|
1334
|
+
* @param props Initialization props
|
|
1335
|
+
*/
|
|
1336
|
+
static manifest(props = {}) {
|
|
1337
|
+
return {
|
|
1338
|
+
...ReceiverV1Beta2.GVK,
|
|
1339
|
+
...toJson_ReceiverV1Beta2Props(props)
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Defines a "ReceiverV1Beta2" API object
|
|
1344
|
+
*
|
|
1345
|
+
* @param scope The scope in which to define this object
|
|
1346
|
+
* @param id A scope-local name for the object
|
|
1347
|
+
* @param props Initialization props
|
|
1348
|
+
*/
|
|
1349
|
+
constructor(scope, id, props = {}) {
|
|
1350
|
+
super(scope, id, {
|
|
1351
|
+
...ReceiverV1Beta2.GVK,
|
|
1352
|
+
...props
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
/** Renders the object to Kubernetes JSON. */
|
|
1356
|
+
toJson() {
|
|
1357
|
+
const resolved = super.toJson();
|
|
1358
|
+
return {
|
|
1359
|
+
...ReceiverV1Beta2.GVK,
|
|
1360
|
+
...toJson_ReceiverV1Beta2Props(resolved)
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
exports.ReceiverV1Beta2 = ReceiverV1Beta2;
|
|
1365
|
+
/** Returns the apiVersion and kind for "ReceiverV1Beta2" */
|
|
1366
|
+
ReceiverV1Beta2.GVK = {
|
|
1367
|
+
apiVersion: "notification.toolkit.fluxcd.io/v1beta2",
|
|
1368
|
+
kind: "Receiver"
|
|
1369
|
+
};
|
|
1370
|
+
/** Converts an object of type 'ReceiverV1Beta2Props' to JSON representation. */
|
|
1371
|
+
/* eslint-disable max-len, quote-props */
|
|
1372
|
+
function toJson_ReceiverV1Beta2Props(obj) {
|
|
1373
|
+
if (obj === undefined) {
|
|
1374
|
+
return undefined;
|
|
1375
|
+
}
|
|
1376
|
+
const result = {
|
|
1377
|
+
metadata: obj.metadata,
|
|
1378
|
+
spec: toJson_ReceiverV1Beta2Spec(obj.spec)
|
|
1379
|
+
};
|
|
1380
|
+
// filter undefined values
|
|
1381
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1382
|
+
}
|
|
1383
|
+
/** Converts an object of type 'ReceiverV1Beta2Spec' to JSON representation. */
|
|
1384
|
+
/* eslint-disable max-len, quote-props */
|
|
1385
|
+
function toJson_ReceiverV1Beta2Spec(obj) {
|
|
1386
|
+
if (obj === undefined) {
|
|
1387
|
+
return undefined;
|
|
1388
|
+
}
|
|
1389
|
+
const result = {
|
|
1390
|
+
events: obj.events?.map(y => y),
|
|
1391
|
+
interval: obj.interval,
|
|
1392
|
+
resources: obj.resources?.map(y => toJson_ReceiverV1Beta2SpecResources(y)),
|
|
1393
|
+
secretRef: toJson_ReceiverV1Beta2SpecSecretRef(obj.secretRef),
|
|
1394
|
+
suspend: obj.suspend,
|
|
1395
|
+
type: obj.type
|
|
1396
|
+
};
|
|
1397
|
+
// filter undefined values
|
|
1398
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1399
|
+
}
|
|
1400
|
+
/** Converts an object of type 'ReceiverV1Beta2SpecResources' to JSON representation. */
|
|
1401
|
+
/* eslint-disable max-len, quote-props */
|
|
1402
|
+
function toJson_ReceiverV1Beta2SpecResources(obj) {
|
|
1403
|
+
if (obj === undefined) {
|
|
1404
|
+
return undefined;
|
|
1405
|
+
}
|
|
1406
|
+
const result = {
|
|
1407
|
+
apiVersion: obj.apiVersion,
|
|
1408
|
+
kind: obj.kind,
|
|
1409
|
+
matchLabels: obj.matchLabels === undefined
|
|
1410
|
+
? undefined
|
|
1411
|
+
: Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {}),
|
|
1412
|
+
name: obj.name,
|
|
1413
|
+
namespace: obj.namespace
|
|
1414
|
+
};
|
|
1415
|
+
// filter undefined values
|
|
1416
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1417
|
+
}
|
|
1418
|
+
/** Converts an object of type 'ReceiverV1Beta2SpecSecretRef' to JSON representation. */
|
|
1419
|
+
/* eslint-disable max-len, quote-props */
|
|
1420
|
+
function toJson_ReceiverV1Beta2SpecSecretRef(obj) {
|
|
1421
|
+
if (obj === undefined) {
|
|
1422
|
+
return undefined;
|
|
1423
|
+
}
|
|
1424
|
+
const result = {
|
|
1425
|
+
name: obj.name
|
|
1426
|
+
};
|
|
1427
|
+
// filter undefined values
|
|
1428
|
+
return Object.entries(result).reduce((r, i) => (i[1] === undefined ? r : { ...r, [i[0]]: i[1] }), {});
|
|
1429
|
+
}
|
|
1430
|
+
/* eslint-enable max-len, quote-props */
|
|
1431
|
+
/**
|
|
1432
|
+
* Type of webhook sender, used to determine the validation procedure and payload deserialization.
|
|
1433
|
+
*
|
|
1434
|
+
* @schema ReceiverV1Beta2SpecType
|
|
1435
|
+
*/
|
|
1436
|
+
var ReceiverV1Beta2SpecType;
|
|
1437
|
+
(function (ReceiverV1Beta2SpecType) {
|
|
1438
|
+
/** Generic */
|
|
1439
|
+
ReceiverV1Beta2SpecType["GENERIC"] = "generic";
|
|
1440
|
+
/** Generic-hmac */
|
|
1441
|
+
ReceiverV1Beta2SpecType["GENERIC_HYPHEN_HMAC"] = "generic-hmac";
|
|
1442
|
+
/** Github */
|
|
1443
|
+
ReceiverV1Beta2SpecType["GITHUB"] = "github";
|
|
1444
|
+
/** Gitlab */
|
|
1445
|
+
ReceiverV1Beta2SpecType["GITLAB"] = "gitlab";
|
|
1446
|
+
/** Bitbucket */
|
|
1447
|
+
ReceiverV1Beta2SpecType["BITBUCKET"] = "bitbucket";
|
|
1448
|
+
/** Harbor */
|
|
1449
|
+
ReceiverV1Beta2SpecType["HARBOR"] = "harbor";
|
|
1450
|
+
/** Dockerhub */
|
|
1451
|
+
ReceiverV1Beta2SpecType["DOCKERHUB"] = "dockerhub";
|
|
1452
|
+
/** Quay */
|
|
1453
|
+
ReceiverV1Beta2SpecType["QUAY"] = "quay";
|
|
1454
|
+
/** Gcr */
|
|
1455
|
+
ReceiverV1Beta2SpecType["GCR"] = "gcr";
|
|
1456
|
+
/** Nexus */
|
|
1457
|
+
ReceiverV1Beta2SpecType["NEXUS"] = "nexus";
|
|
1458
|
+
/** Acr */
|
|
1459
|
+
ReceiverV1Beta2SpecType["ACR"] = "acr";
|
|
1460
|
+
})(ReceiverV1Beta2SpecType || (exports.ReceiverV1Beta2SpecType = ReceiverV1Beta2SpecType = {}));
|
|
1461
|
+
/**
|
|
1462
|
+
* Kind of the referent
|
|
1463
|
+
*
|
|
1464
|
+
* @schema ReceiverV1Beta2SpecResourcesKind
|
|
1465
|
+
*/
|
|
1466
|
+
var ReceiverV1Beta2SpecResourcesKind;
|
|
1467
|
+
(function (ReceiverV1Beta2SpecResourcesKind) {
|
|
1468
|
+
/** Bucket */
|
|
1469
|
+
ReceiverV1Beta2SpecResourcesKind["BUCKET"] = "Bucket";
|
|
1470
|
+
/** GitRepository */
|
|
1471
|
+
ReceiverV1Beta2SpecResourcesKind["GIT_REPOSITORY"] = "GitRepository";
|
|
1472
|
+
/** Kustomization */
|
|
1473
|
+
ReceiverV1Beta2SpecResourcesKind["KUSTOMIZATION"] = "Kustomization";
|
|
1474
|
+
/** HelmRelease */
|
|
1475
|
+
ReceiverV1Beta2SpecResourcesKind["HELM_RELEASE"] = "HelmRelease";
|
|
1476
|
+
/** HelmChart */
|
|
1477
|
+
ReceiverV1Beta2SpecResourcesKind["HELM_CHART"] = "HelmChart";
|
|
1478
|
+
/** HelmRepository */
|
|
1479
|
+
ReceiverV1Beta2SpecResourcesKind["HELM_REPOSITORY"] = "HelmRepository";
|
|
1480
|
+
/** ImageRepository */
|
|
1481
|
+
ReceiverV1Beta2SpecResourcesKind["IMAGE_REPOSITORY"] = "ImageRepository";
|
|
1482
|
+
/** ImagePolicy */
|
|
1483
|
+
ReceiverV1Beta2SpecResourcesKind["IMAGE_POLICY"] = "ImagePolicy";
|
|
1484
|
+
/** ImageUpdateAutomation */
|
|
1485
|
+
ReceiverV1Beta2SpecResourcesKind["IMAGE_UPDATE_AUTOMATION"] = "ImageUpdateAutomation";
|
|
1486
|
+
/** OCIRepository */
|
|
1487
|
+
ReceiverV1Beta2SpecResourcesKind["OCI_REPOSITORY"] = "OCIRepository";
|
|
1488
|
+
})(ReceiverV1Beta2SpecResourcesKind || (exports.ReceiverV1Beta2SpecResourcesKind = ReceiverV1Beta2SpecResourcesKind = {}));
|
|
1489
|
+
//# sourceMappingURL=notification.toolkit.fluxcd.io.js.map
|