@r8s/operator-external-dns 1.21.1 → 1.21.2
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/external-dns.d.ts +53 -0
- package/dist/external-dns.d.ts.map +1 -0
- package/dist/external-dns.js +147 -0
- package/dist/external-dns.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** AWS credentials sourced from an existing Kubernetes Secret. */
|
|
2
|
+
export interface AwsSecretRef {
|
|
3
|
+
/** Secret name in the same namespace as the Deployment. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Key holding the AWS access key ID (default: 'access-key-id'). */
|
|
6
|
+
accessKeyId?: string;
|
|
7
|
+
/** Key holding the AWS secret access key (default: 'secret-access-key'). */
|
|
8
|
+
secretAccessKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ExternalDnsProps {
|
|
11
|
+
/** Resource name (default: 'external-dns'). */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Kubernetes namespace (default: 'external-dns'). */
|
|
14
|
+
namespace?: string;
|
|
15
|
+
/** Container image (default: registry.k8s.io/external-dns/external-dns:v0.21.0). */
|
|
16
|
+
image?: string;
|
|
17
|
+
/** AWS Region used by the route53 provider (default: 'eu-north-1'). */
|
|
18
|
+
awsRegion?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Secret carrying the Route53 credentials — required for the aws
|
|
21
|
+
* provider. Rendered as secretKeyRef env vars on the container
|
|
22
|
+
* (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY); the names never leak
|
|
23
|
+
* as literals.
|
|
24
|
+
*/
|
|
25
|
+
awsSecretRef?: AwsSecretRef;
|
|
26
|
+
/** TXT registry owner id — isolates record ownership (default: the name). */
|
|
27
|
+
txtOwnerId?: string;
|
|
28
|
+
/** Domains external-dns is allowed to manage. */
|
|
29
|
+
domainFilters?: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Workload sources to publish (default:
|
|
32
|
+
* ['ingress', 'service', 'gateway-httproute']).
|
|
33
|
+
*/
|
|
34
|
+
sources?: string[];
|
|
35
|
+
/** DNS record change policy (default: 'sync'). */
|
|
36
|
+
policy?: 'sync' | 'upsert-only' | 'create-only';
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* ExternalDns — render the ExternalDNS Deployment + RBAC natively, without
|
|
40
|
+
* Helm. Declares nothing: pair it with the platform's operator wiring, or
|
|
41
|
+
* drop the helm-source operator entirely and render only this.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* import { ExternalDns } from '@r8s/operator-external-dns'
|
|
45
|
+
*
|
|
46
|
+
* export default <ExternalDns
|
|
47
|
+
* txtOwnerId="production"
|
|
48
|
+
* domainFilters={['example.com', 'berget.cloud']}
|
|
49
|
+
* awsSecretRef={{ name: 'route53-credentials' }}
|
|
50
|
+
* />
|
|
51
|
+
*/
|
|
52
|
+
export declare function ExternalDns(props: ExternalDnsProps): import("@r8s/core").r8sElement;
|
|
53
|
+
//# sourceMappingURL=external-dns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dns.d.ts","sourceRoot":"","sources":["../src/external-dns.tsx"],"names":[],"mappings":"AAiBA,kEAAkE;AAClE,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4EAA4E;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,aAAa,CAAA;CAChD;AAOD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,kCAwHlD"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalDns = ExternalDns;
|
|
4
|
+
/**
|
|
5
|
+
* ExternalDns — r8s-rendered ExternalDNS workload (helm-free).
|
|
6
|
+
*
|
|
7
|
+
* The flux-free equivalent of the external-dns Helm chart: a ServiceAccount,
|
|
8
|
+
* the ClusterRole/ClusterRoleBinding the controller needs to read the
|
|
9
|
+
* workload sources it publishes as DNS records, and a single-replica
|
|
10
|
+
* Deployment with the provider wiring (AWS Region + Route53 credentials via
|
|
11
|
+
* secretKeyRef). With this component there is no HelmRepository/HelmRelease
|
|
12
|
+
* for external-dns — the shared operators layer (or a platform entry)
|
|
13
|
+
* renders a plain, auditable Kubernetes manifest.
|
|
14
|
+
*
|
|
15
|
+
* The image pin (registry.k8s.io/external-dns/external-dns:v0.21.0) is the
|
|
16
|
+
* appVersion of the kubernetes-sigs chart 1.21.1 that
|
|
17
|
+
* @r8s/operator-external-dns was cut against.
|
|
18
|
+
*/
|
|
19
|
+
const core_1 = require("@r8s/core");
|
|
20
|
+
/** Defaults for ExternalDns — mirrored in the rendered args/env. */
|
|
21
|
+
const DEFAULT_SOURCES = ['ingress', 'service', 'gateway-httproute'];
|
|
22
|
+
const DEFAULT_IMAGE = 'registry.k8s.io/external-dns/external-dns:v0.21.0';
|
|
23
|
+
const DEFAULT_POLICY = 'sync';
|
|
24
|
+
/**
|
|
25
|
+
* ExternalDns — render the ExternalDNS Deployment + RBAC natively, without
|
|
26
|
+
* Helm. Declares nothing: pair it with the platform's operator wiring, or
|
|
27
|
+
* drop the helm-source operator entirely and render only this.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* import { ExternalDns } from '@r8s/operator-external-dns'
|
|
31
|
+
*
|
|
32
|
+
* export default <ExternalDns
|
|
33
|
+
* txtOwnerId="production"
|
|
34
|
+
* domainFilters={['example.com', 'berget.cloud']}
|
|
35
|
+
* awsSecretRef={{ name: 'route53-credentials' }}
|
|
36
|
+
* />
|
|
37
|
+
*/
|
|
38
|
+
function ExternalDns(props) {
|
|
39
|
+
const { name = 'external-dns', namespace = 'external-dns', image = DEFAULT_IMAGE, awsRegion = 'eu-north-1', awsSecretRef, txtOwnerId = name, domainFilters = [], sources = DEFAULT_SOURCES, policy = DEFAULT_POLICY, } = props;
|
|
40
|
+
const labels = { app: name };
|
|
41
|
+
const args = [];
|
|
42
|
+
for (const source of sources)
|
|
43
|
+
args.push(`--source=${source}`);
|
|
44
|
+
args.push('--provider=aws', `--policy=${policy}`, '--registry=txt');
|
|
45
|
+
args.push(`--txt-owner-id=${txtOwnerId}`);
|
|
46
|
+
for (const filter of domainFilters)
|
|
47
|
+
args.push(`--domain-filter=${filter}`);
|
|
48
|
+
// AWS credentials stay in a Secret — reference, never inline.
|
|
49
|
+
const keyId = awsSecretRef?.accessKeyId ?? 'access-key-id';
|
|
50
|
+
const keySecret = awsSecretRef?.secretAccessKey ?? 'secret-access-key';
|
|
51
|
+
return (0, core_1.jsx)(core_1.Fragment, {
|
|
52
|
+
children: [
|
|
53
|
+
(0, core_1.jsx)('ServiceAccount', {
|
|
54
|
+
apiVersion: 'v1',
|
|
55
|
+
kind: 'ServiceAccount',
|
|
56
|
+
metadata: { name, namespace, labels },
|
|
57
|
+
}),
|
|
58
|
+
(0, core_1.jsx)('ClusterRole', {
|
|
59
|
+
apiVersion: 'rbac.authorization.k8s.io/v1',
|
|
60
|
+
kind: 'ClusterRole',
|
|
61
|
+
metadata: { name, labels },
|
|
62
|
+
rules: [
|
|
63
|
+
{
|
|
64
|
+
apiGroups: [''],
|
|
65
|
+
resources: ['services', 'endpoints', 'namespaces'],
|
|
66
|
+
verbs: ['get', 'list', 'watch'],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
apiGroups: ['discovery.k8s.io'],
|
|
70
|
+
resources: ['endpointslices'],
|
|
71
|
+
verbs: ['get', 'list', 'watch'],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
apiGroups: ['networking.k8s.io'],
|
|
75
|
+
resources: ['ingresses'],
|
|
76
|
+
verbs: ['get', 'list', 'watch'],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
apiGroups: ['gateway.networking.k8s.io'],
|
|
80
|
+
resources: ['gateways', 'httproutes', 'grpcroutes', 'tlsroutes'],
|
|
81
|
+
verbs: ['get', 'list', 'watch'],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
apiGroups: ['externaldns.k8s.io'],
|
|
85
|
+
resources: ['dnsendpoints'],
|
|
86
|
+
verbs: ['get', 'list', 'watch'],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
apiGroups: ['externaldns.k8s.io'],
|
|
90
|
+
resources: ['dnsendpoints/status'],
|
|
91
|
+
verbs: ['get', 'patch', 'update'],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
}),
|
|
95
|
+
(0, core_1.jsx)('ClusterRoleBinding', {
|
|
96
|
+
apiVersion: 'rbac.authorization.k8s.io/v1',
|
|
97
|
+
kind: 'ClusterRoleBinding',
|
|
98
|
+
metadata: { name, labels },
|
|
99
|
+
roleRef: { apiGroup: 'rbac.authorization.k8s.io', kind: 'ClusterRole', name },
|
|
100
|
+
subjects: [{ kind: 'ServiceAccount', name, namespace }],
|
|
101
|
+
}),
|
|
102
|
+
(0, core_1.jsx)('Deployment', {
|
|
103
|
+
apiVersion: 'apps/v1',
|
|
104
|
+
kind: 'Deployment',
|
|
105
|
+
metadata: { name, namespace, labels },
|
|
106
|
+
spec: {
|
|
107
|
+
replicas: 1,
|
|
108
|
+
selector: { matchLabels: labels },
|
|
109
|
+
template: {
|
|
110
|
+
metadata: { labels },
|
|
111
|
+
spec: {
|
|
112
|
+
serviceAccountName: name,
|
|
113
|
+
containers: [
|
|
114
|
+
{
|
|
115
|
+
name,
|
|
116
|
+
image,
|
|
117
|
+
args,
|
|
118
|
+
env: [
|
|
119
|
+
{ name: 'AWS_REGION', value: awsRegion },
|
|
120
|
+
// Route53 credentials via secretKeyRef — no plaintext
|
|
121
|
+
...(awsSecretRef
|
|
122
|
+
? [
|
|
123
|
+
{
|
|
124
|
+
name: 'AWS_ACCESS_KEY_ID',
|
|
125
|
+
valueFrom: {
|
|
126
|
+
secretKeyRef: { name: awsSecretRef.name, key: keyId },
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'AWS_SECRET_ACCESS_KEY',
|
|
131
|
+
valueFrom: {
|
|
132
|
+
secretKeyRef: { name: awsSecretRef.name, key: keySecret },
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
]
|
|
136
|
+
: []),
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
}),
|
|
144
|
+
],
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=external-dns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dns.js","sourceRoot":"","sources":["../src/external-dns.tsx"],"names":[],"mappings":";;AA2EA,kCAwHC;AAnMD;;;;;;;;;;;;;;GAcG;AACH,oCAAyC;AAyCzC,oEAAo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,CAAA;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @r8s/operator-external-dns — ExternalDNS for automatic DNS management as an npm-resolved
|
|
3
3
|
* operator package. The package version mirrors the operator's own
|
|
4
|
-
* version (1.21.1
|
|
4
|
+
* version (chart 1.21.1 — the tracked cut, DEFAULT_EXTERNALDNS_VERSION),
|
|
5
|
+
* floating one package patch above it for component-only changes
|
|
6
|
+
* (1.21.2 ships the native helm-free ExternalDns workload from #156);
|
|
7
|
+
* consumers declare
|
|
5
8
|
* "@r8s/operator-external-dns": "^1.0.0" as a peerDependency
|
|
6
9
|
* so npm resolves ONE copy per tree and mixed majors fail at install time.
|
|
7
10
|
*/
|
|
@@ -27,4 +30,6 @@ export declare const operatorFactory: typeof ExternalDnsOperator;
|
|
|
27
30
|
*/
|
|
28
31
|
export declare function declareIfMissing(shared: Operator[], version?: string): ReturnType<typeof declareOperator>[];
|
|
29
32
|
export * from '@r8s/crds/externaldns';
|
|
33
|
+
export { ExternalDns } from './external-dns';
|
|
34
|
+
export type { ExternalDnsProps, AwsSecretRef } from './external-dns';
|
|
30
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;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;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,13 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.operatorFactory = exports.OPERATOR_KEY = exports.DEFAULT_EXTERNALDNS_VERSION = void 0;
|
|
17
|
+
exports.ExternalDns = exports.operatorFactory = exports.OPERATOR_KEY = exports.DEFAULT_EXTERNALDNS_VERSION = void 0;
|
|
18
18
|
exports.ExternalDnsOperator = ExternalDnsOperator;
|
|
19
19
|
exports.declareIfMissing = declareIfMissing;
|
|
20
20
|
/**
|
|
21
21
|
* @r8s/operator-external-dns — ExternalDNS for automatic DNS management as an npm-resolved
|
|
22
22
|
* operator package. The package version mirrors the operator's own
|
|
23
|
-
* version (1.21.1
|
|
23
|
+
* version (chart 1.21.1 — the tracked cut, DEFAULT_EXTERNALDNS_VERSION),
|
|
24
|
+
* floating one package patch above it for component-only changes
|
|
25
|
+
* (1.21.2 ships the native helm-free ExternalDns workload from #156);
|
|
26
|
+
* consumers declare
|
|
24
27
|
* "@r8s/operator-external-dns": "^1.0.0" as a peerDependency
|
|
25
28
|
* so npm resolves ONE copy per tree and mixed majors fail at install time.
|
|
26
29
|
*/
|
|
@@ -63,4 +66,7 @@ function declareIfMissing(shared, version) {
|
|
|
63
66
|
}
|
|
64
67
|
// Generated CRD components for this operator — re-exported as the single import path.
|
|
65
68
|
__exportStar(require("@r8s/crds/externaldns"), exports);
|
|
69
|
+
// Native workload rendering (helm-free install path — no HelmRelease).
|
|
70
|
+
var external_dns_1 = require("./external-dns");
|
|
71
|
+
Object.defineProperty(exports, "ExternalDns", { enumerable: true, get: function () { return external_dns_1.ExternalDns; } });
|
|
66
72
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAqBA,kDAiBC;AAYD,4CAMC;AAxDD;;;;;;;;;GASG;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;AAErC,uEAAuE;AACvE,+CAA4C;AAAnC,2GAAA,WAAW,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r8s/operator-external-dns",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.2",
|
|
4
4
|
"description": "ExternalDNS for automatic DNS management \u2014 npm-resolved operator package for r8s",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Berget AI AB",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
],
|
|
24
24
|
"r8s": {
|
|
25
25
|
"category": "Operators",
|
|
26
|
-
"operator": "external-dns"
|
|
26
|
+
"operator": "external-dns",
|
|
27
|
+
"componentOnly": true
|
|
27
28
|
},
|
|
28
29
|
"main": "./dist/index.js",
|
|
29
30
|
"types": "./dist/index.d.ts",
|