@r8s/operator-external-dns 1.21.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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @r8s/operator-external-dns — ExternalDNS for automatic DNS management as an npm-resolved
3
+ * operator package. The package version mirrors the operator's own
4
+ * version (1.21.1); consumers declare
5
+ * "@r8s/operator-external-dns": "^1.0.0" as a peerDependency
6
+ * so npm resolves ONE copy per tree and mixed majors fail at install time.
7
+ */
8
+ import { declareOperator } from '@r8s/core';
9
+ import type { Operator } from '@r8s/k8s-types';
10
+ /** The external-dns operator version this package was cut for. */
11
+ export declare const DEFAULT_EXTERNALDNS_VERSION = "1.21.1";
12
+ /**
13
+ * Operator declaration — mirror of the `external-dns` entry in
14
+ * packages/crds/operators.yaml (registry stays the CLI metadata source;
15
+ * version parity is enforced by the operator-contracts suite).
16
+ */
17
+ export declare function ExternalDnsOperator(version?: string): Operator & {
18
+ namespace: string;
19
+ };
20
+ /** Registry identity for the operator-contracts mirror checks. */
21
+ export declare const OPERATOR_KEY = "external-dns";
22
+ /** Same factory, conventional alias so generic suites find it. */
23
+ export declare const operatorFactory: typeof ExternalDnsOperator;
24
+ /**
25
+ * Declare external-dns unless the surrounding Platform already provides it.
26
+ * Spread into resources: `resources.push(...declareIfMissing(shared))`
27
+ */
28
+ export declare function declareIfMissing(shared: Operator[], version?: string): ReturnType<typeof declareOperator>[];
29
+ export * from '@r8s/crds/externaldns';
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,kEAAkE;AAClE,eAAO,MAAM,2BAA2B,WAAW,CAAA;AAEnD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,MAAoC,GAC5C,QAAQ,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAelC;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAE1C,kEAAkE;AAClE,eAAO,MAAM,eAAe,4BAAsB,CAAA;AAElD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,QAAQ,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,UAAU,CAAC,OAAO,eAAe,CAAC,EAAE,CAGtC;AAGD,cAAc,uBAAuB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.operatorFactory = exports.OPERATOR_KEY = exports.DEFAULT_EXTERNALDNS_VERSION = void 0;
18
+ exports.ExternalDnsOperator = ExternalDnsOperator;
19
+ exports.declareIfMissing = declareIfMissing;
20
+ /**
21
+ * @r8s/operator-external-dns — ExternalDNS for automatic DNS management as an npm-resolved
22
+ * operator package. The package version mirrors the operator's own
23
+ * version (1.21.1); consumers declare
24
+ * "@r8s/operator-external-dns": "^1.0.0" as a peerDependency
25
+ * so npm resolves ONE copy per tree and mixed majors fail at install time.
26
+ */
27
+ const core_1 = require("@r8s/core");
28
+ /** The external-dns operator version this package was cut for. */
29
+ exports.DEFAULT_EXTERNALDNS_VERSION = '1.21.1';
30
+ /**
31
+ * Operator declaration — mirror of the `external-dns` entry in
32
+ * packages/crds/operators.yaml (registry stays the CLI metadata source;
33
+ * version parity is enforced by the operator-contracts suite).
34
+ */
35
+ function ExternalDnsOperator(version = exports.DEFAULT_EXTERNALDNS_VERSION) {
36
+ return {
37
+ name: 'external-dns',
38
+ description: 'ExternalDNS for automatic DNS management',
39
+ source: {
40
+ type: 'helm',
41
+ chart: 'external-dns',
42
+ repository: 'https://kubernetes-sigs.github.io/external-dns/',
43
+ version,
44
+ namespace: 'external-dns',
45
+ },
46
+ version,
47
+ namespace: 'external-dns',
48
+ crds: ['dnsendpoints.externaldns.k8s.io'],
49
+ };
50
+ }
51
+ /** Registry identity for the operator-contracts mirror checks. */
52
+ exports.OPERATOR_KEY = 'external-dns';
53
+ /** Same factory, conventional alias so generic suites find it. */
54
+ exports.operatorFactory = ExternalDnsOperator;
55
+ /**
56
+ * Declare external-dns unless the surrounding Platform already provides it.
57
+ * Spread into resources: `resources.push(...declareIfMissing(shared))`
58
+ */
59
+ function declareIfMissing(shared, version) {
60
+ if (shared.some((op) => op.name === 'external-dns'))
61
+ return [];
62
+ return [(0, core_1.declareOperator)(ExternalDnsOperator(version))];
63
+ }
64
+ // Generated CRD components for this operator — re-exported as the single import path.
65
+ __exportStar(require("@r8s/crds/externaldns"), exports);
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBA,kDAiBC;AAYD,4CAMC;AArDD;;;;;;GAMG;AACH,oCAA2C;AAG3C,kEAAkE;AACrD,QAAA,2BAA2B,GAAG,QAAQ,CAAA;AAEnD;;;;GAIG;AACH,SAAgB,mBAAmB,CACjC,UAAkB,mCAA2B;IAE7C,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,0CAA0C;QACvD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,cAAc;YACrB,UAAU,EAAE,iDAAiD;YAC7D,OAAO;YACP,SAAS,EAAE,cAAc;SAC1B;QACD,OAAO;QACP,SAAS,EAAE,cAAc;QACzB,IAAI,EAAE,CAAC,iCAAiC,CAAC;KAC1C,CAAA;AACH,CAAC;AAED,kEAAkE;AACrD,QAAA,YAAY,GAAG,cAAc,CAAA;AAE1C,kEAAkE;AACrD,QAAA,eAAe,GAAG,mBAAmB,CAAA;AAElD;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAAkB,EAClB,OAAgB;IAEhB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,cAAc,CAAC;QAAE,OAAO,EAAE,CAAA;IAC9D,OAAO,CAAC,IAAA,sBAAe,EAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AACxD,CAAC;AAED,sFAAsF;AACtF,wDAAqC"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@r8s/operator-external-dns",
3
+ "version": "1.21.1",
4
+ "description": "ExternalDNS for automatic DNS management \u2014 npm-resolved operator package for r8s",
5
+ "license": "MIT",
6
+ "author": "Berget AI AB",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/berget-ai/r8s.git",
10
+ "directory": "packages/operator-external-dns"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "keywords": [
19
+ "r8s",
20
+ "operator",
21
+ "external-dns",
22
+ "external-dns"
23
+ ],
24
+ "r8s": {
25
+ "category": "Operators",
26
+ "operator": "external-dns"
27
+ },
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.js",
34
+ "require": "./dist/index.js"
35
+ }
36
+ },
37
+ "scripts": {
38
+ "build": "tsc --build",
39
+ "test": "vitest run",
40
+ "clean": "rm -rf dist tsconfig.tsbuildinfo"
41
+ },
42
+ "dependencies": {
43
+ "@r8s/core": "^0.3.0",
44
+ "@r8s/k8s-types": "^0.3.0",
45
+ "@r8s/crds": "^0.3.0"
46
+ },
47
+ "devDependencies": {
48
+ "typescript": "^5.3.0",
49
+ "vitest": "^1.0.0"
50
+ }
51
+ }