@r8s/operator-vault-secrets 0.5.0

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,29 @@
1
+ /**
2
+ * @r8s/operator-vault-secrets — HashiCorp Vault Secrets Operator as an npm-resolved
3
+ * operator package. The package version mirrors the operator's own
4
+ * version (0.5.0); consumers declare
5
+ * "@r8s/operator-vault-secrets": "^0.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 vault-secrets-operator operator version this package was cut for. */
11
+ export declare const DEFAULT_VAULTSECRETS_VERSION = "0.5.0";
12
+ /**
13
+ * Operator declaration — mirror of the `vault-secrets-operator` 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 VaultSecretsOperator(version?: string): Operator & {
18
+ namespace: string;
19
+ };
20
+ /** Registry identity for the operator-contracts mirror checks. */
21
+ export declare const OPERATOR_KEY = "vault-secrets-operator";
22
+ /** Same factory, conventional alias so generic suites find it. */
23
+ export declare const operatorFactory: typeof VaultSecretsOperator;
24
+ /**
25
+ * Declare vault-secrets-operator 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
+ //# 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,4EAA4E;AAC5E,eAAO,MAAM,4BAA4B,UAAU,CAAA;AAEnD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,MAAqC,GAC7C,QAAQ,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAoBlC;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,2BAA2B,CAAA;AAEpD,kEAAkE;AAClE,eAAO,MAAM,eAAe,6BAAuB,CAAA;AAEnD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,QAAQ,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,UAAU,CAAC,OAAO,eAAe,CAAC,EAAE,CAGtC"}
package/dist/index.js ADDED
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operatorFactory = exports.OPERATOR_KEY = exports.DEFAULT_VAULTSECRETS_VERSION = void 0;
4
+ exports.VaultSecretsOperator = VaultSecretsOperator;
5
+ exports.declareIfMissing = declareIfMissing;
6
+ /**
7
+ * @r8s/operator-vault-secrets — HashiCorp Vault Secrets Operator as an npm-resolved
8
+ * operator package. The package version mirrors the operator's own
9
+ * version (0.5.0); consumers declare
10
+ * "@r8s/operator-vault-secrets": "^0.0.0" as a peerDependency
11
+ * so npm resolves ONE copy per tree and mixed majors fail at install time.
12
+ */
13
+ const core_1 = require("@r8s/core");
14
+ /** The vault-secrets-operator operator version this package was cut for. */
15
+ exports.DEFAULT_VAULTSECRETS_VERSION = '0.5.0';
16
+ /**
17
+ * Operator declaration — mirror of the `vault-secrets-operator` entry in
18
+ * packages/crds/operators.yaml (registry stays the CLI metadata source;
19
+ * version parity is enforced by the operator-contracts suite).
20
+ */
21
+ function VaultSecretsOperator(version = exports.DEFAULT_VAULTSECRETS_VERSION) {
22
+ return {
23
+ name: 'vault-secrets-operator',
24
+ description: 'HashiCorp Vault Secrets Operator',
25
+ source: {
26
+ type: 'helm',
27
+ chart: 'vault-secrets-operator',
28
+ repository: 'https://helm.releases.hashicorp.com',
29
+ version,
30
+ namespace: 'vault-secrets-operator',
31
+ },
32
+ version,
33
+ namespace: 'vault-secrets-operator',
34
+ crds: [
35
+ 'vaultstaticsecrets.secrets.hashicorp.com',
36
+ 'vaultdynamicsecrets.secrets.hashicorp.com',
37
+ 'vaultauths.secrets.hashicorp.com',
38
+ 'vaultconnections.secrets.hashicorp.com',
39
+ ],
40
+ };
41
+ }
42
+ /** Registry identity for the operator-contracts mirror checks. */
43
+ exports.OPERATOR_KEY = 'vault-secrets-operator';
44
+ /** Same factory, conventional alias so generic suites find it. */
45
+ exports.operatorFactory = VaultSecretsOperator;
46
+ /**
47
+ * Declare vault-secrets-operator unless the surrounding Platform already provides it.
48
+ * Spread into resources: `resources.push(...declareIfMissing(shared))`
49
+ */
50
+ function declareIfMissing(shared, version) {
51
+ if (shared.some((op) => op.name === 'vault-secrets-operator'))
52
+ return [];
53
+ return [(0, core_1.declareOperator)(VaultSecretsOperator(version))];
54
+ }
55
+ // CRDs for this operator are not generated yet — declaration + install manifest only.
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;AAkBA,oDAsBC;AAYD,4CAMC;AA1DD;;;;;;GAMG;AACH,oCAA2C;AAG3C,4EAA4E;AAC/D,QAAA,4BAA4B,GAAG,OAAO,CAAA;AAEnD;;;;GAIG;AACH,SAAgB,oBAAoB,CAClC,UAAkB,oCAA4B;IAE9C,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,kCAAkC;QAC/C,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,wBAAwB;YAC/B,UAAU,EAAE,qCAAqC;YACjD,OAAO;YACP,SAAS,EAAE,wBAAwB;SACpC;QACD,OAAO;QACP,SAAS,EAAE,wBAAwB;QACnC,IAAI,EAAE;YACJ,0CAA0C;YAC1C,2CAA2C;YAC3C,kCAAkC;YAClC,wCAAwC;SACzC;KACF,CAAA;AACH,CAAC;AAED,kEAAkE;AACrD,QAAA,YAAY,GAAG,wBAAwB,CAAA;AAEpD,kEAAkE;AACrD,QAAA,eAAe,GAAG,oBAAoB,CAAA;AAEnD;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAAkB,EAClB,OAAgB;IAEhB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,wBAAwB,CAAC;QAAE,OAAO,EAAE,CAAA;IACxE,OAAO,CAAC,IAAA,sBAAe,EAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AACzD,CAAC;AAED,sFAAsF"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@r8s/operator-vault-secrets",
3
+ "version": "0.5.0",
4
+ "description": "HashiCorp Vault Secrets Operator \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-vault-secrets"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "keywords": [
19
+ "r8s",
20
+ "operator",
21
+ "vault-secrets",
22
+ "vault-secrets-operator"
23
+ ],
24
+ "r8s": {
25
+ "category": "Operators",
26
+ "operator": "vault-secrets-operator"
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
+ }