pepr 1.1.7-nightly.9 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/format/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAc/C;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAoCxE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/format/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAmB/C;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAoCxE"}
package/dist/cli.js CHANGED
@@ -8129,6 +8129,8 @@ async function overridesFile({ hash, name: name2, image, config, apiPath, capabi
8129
8129
  ...commonProbes(),
8130
8130
  resources: commonResources(),
8131
8131
  containerSecurityContext: containerSecurityContext(image),
8132
+ webhookAnnotations: {},
8133
+ webhookLabels: {},
8132
8134
  podAnnotations: {},
8133
8135
  podLabels: {},
8134
8136
  nodeSelector: {},
@@ -8291,6 +8293,19 @@ function createWebhookYaml(name2, config, webhookConfiguration) {
8291
8293
  search: `${config.webhookTimeout}` || "10",
8292
8294
  replace: "{{ .Values.admission.webhookTimeout }}"
8293
8295
  },
8296
+ {
8297
+ search: "metadata:\n name: {{ .Values.uuid }}",
8298
+ replace: `metadata:
8299
+ name: {{ .Values.uuid }}
8300
+ {{- if .Values.admission.webhookAnnotations }}
8301
+ annotations:
8302
+ {{- toYaml .Values.admission.webhookAnnotations | nindent 4 }}
8303
+ {{- end }}
8304
+ {{- if .Values.admission.webhookLabels }}
8305
+ labels:
8306
+ {{- toYaml .Values.admission.webhookLabels | nindent 4 }}
8307
+ {{- end }}`
8308
+ },
8294
8309
  {
8295
8310
  search: `
8296
8311
  - key: kubernetes.io/metadata.name
@@ -9630,7 +9645,7 @@ var packageJSON = {
9630
9645
  "!src/fixtures/**",
9631
9646
  "!dist/**/*.test.d.ts*"
9632
9647
  ],
9633
- version: "1.1.7-nightly.9",
9648
+ version: "1.2.0",
9634
9649
  main: "dist/lib.js",
9635
9650
  types: "dist/lib.d.ts",
9636
9651
  scripts: {
@@ -9646,7 +9661,7 @@ var packageJSON = {
9646
9661
  "format:integration": "eslint --config config/eslint.integration.config.mjs integration/cli integration/helpers",
9647
9662
  "format:markdown": 'npx -y markdownlint-cli --config config/.markdownlint.json --ignore adr --ignore integration/testroot --ignore pepr-test-module --ignore node_modules --rules config/markdownlint-step-format-rule.js "**/*.md"',
9648
9663
  "format:prettier": "prettier --config config/.prettierrc src integration/cli/**/*.ts integration/helpers/**/*.ts",
9649
- "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
9664
+ "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' '.github/workflows/scripts/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
9650
9665
  "format:tests": "eslint --config config/eslint.test.config.mjs 'src/**/*.test.ts'",
9651
9666
  "gen-data-json": "node hack/build-template-data.mjs",
9652
9667
  prebuild: "rm -fr dist/* && npm run gen-data-json",
@@ -9664,8 +9679,8 @@ var packageJSON = {
9664
9679
  },
9665
9680
  dependencies: {
9666
9681
  "@types/ramda": "0.31.1",
9667
- "@typescript-eslint/eslint-plugin": "8.59.0",
9668
- "@typescript-eslint/parser": "8.59.0",
9682
+ "@typescript-eslint/eslint-plugin": "8.59.1",
9683
+ "@typescript-eslint/parser": "8.59.1",
9669
9684
  commander: "14.0.3",
9670
9685
  eslint: "9.39.4",
9671
9686
  express: "5.2.1",
@@ -9678,11 +9693,11 @@ var packageJSON = {
9678
9693
  "prom-client": "15.1.3",
9679
9694
  "quicktype-core": "^23.2.6",
9680
9695
  ramda: "0.32.0",
9681
- "ts-morph": "^27.0.0"
9696
+ "ts-morph": "^27.0.2"
9682
9697
  },
9683
9698
  devDependencies: {
9684
- "@commitlint/cli": "20.4.3",
9685
- "@commitlint/config-conventional": "20.4.3",
9699
+ "@commitlint/cli": "20.5.0",
9700
+ "@commitlint/config-conventional": "20.5.0",
9686
9701
  "@semantic-release/commit-analyzer": "^13.0.1",
9687
9702
  "@semantic-release/git": "^10.0.1",
9688
9703
  "@semantic-release/npm": "^13.0.0",
@@ -9889,6 +9904,9 @@ async function formatWithPrettier(results, validateOnly) {
9889
9904
  // src/cli/format/index.ts
9890
9905
  function format_default(program2) {
9891
9906
  program2.command("format").description("Lint and format this Pepr module").option("-v, --validate-only", "Do not modify files, only validate formatting.").action(async (opts) => {
9907
+ logger_default.warn(
9908
+ "DEPRECATION NOTICE: The pepr format command will be removed in summer 2026. Once removed, module authors must run a linter separately from the pepr CLI."
9909
+ );
9892
9910
  const success = await peprFormat(opts.validateOnly);
9893
9911
  if (success) {
9894
9912
  logger_default.info("Module formatted");
@@ -78,7 +78,7 @@ var packageJSON = {
78
78
  "!src/fixtures/**",
79
79
  "!dist/**/*.test.d.ts*"
80
80
  ],
81
- version: "1.1.7-nightly.9",
81
+ version: "1.2.0",
82
82
  main: "dist/lib.js",
83
83
  types: "dist/lib.d.ts",
84
84
  scripts: {
@@ -94,7 +94,7 @@ var packageJSON = {
94
94
  "format:integration": "eslint --config config/eslint.integration.config.mjs integration/cli integration/helpers",
95
95
  "format:markdown": 'npx -y markdownlint-cli --config config/.markdownlint.json --ignore adr --ignore integration/testroot --ignore pepr-test-module --ignore node_modules --rules config/markdownlint-step-format-rule.js "**/*.md"',
96
96
  "format:prettier": "prettier --config config/.prettierrc src integration/cli/**/*.ts integration/helpers/**/*.ts",
97
- "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
97
+ "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' '.github/workflows/scripts/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
98
98
  "format:tests": "eslint --config config/eslint.test.config.mjs 'src/**/*.test.ts'",
99
99
  "gen-data-json": "node hack/build-template-data.mjs",
100
100
  prebuild: "rm -fr dist/* && npm run gen-data-json",
@@ -112,8 +112,8 @@ var packageJSON = {
112
112
  },
113
113
  dependencies: {
114
114
  "@types/ramda": "0.31.1",
115
- "@typescript-eslint/eslint-plugin": "8.59.0",
116
- "@typescript-eslint/parser": "8.59.0",
115
+ "@typescript-eslint/eslint-plugin": "8.59.1",
116
+ "@typescript-eslint/parser": "8.59.1",
117
117
  commander: "14.0.3",
118
118
  eslint: "9.39.4",
119
119
  express: "5.2.1",
@@ -126,11 +126,11 @@ var packageJSON = {
126
126
  "prom-client": "15.1.3",
127
127
  "quicktype-core": "^23.2.6",
128
128
  ramda: "0.32.0",
129
- "ts-morph": "^27.0.0"
129
+ "ts-morph": "^27.0.2"
130
130
  },
131
131
  devDependencies: {
132
- "@commitlint/cli": "20.4.3",
133
- "@commitlint/config-conventional": "20.4.3",
132
+ "@commitlint/cli": "20.5.0",
133
+ "@commitlint/config-conventional": "20.5.0",
134
134
  "@semantic-release/commit-analyzer": "^13.0.1",
135
135
  "@semantic-release/git": "^10.0.1",
136
136
  "@semantic-release/npm": "^13.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAEvC;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EACpB,oBAAoB,EAAE,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,8BAA8B,GAC5F,MAAM,CAqCR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAEvC;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EACpB,oBAAoB,EAAE,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,8BAA8B,GAC5F,MAAM,CAyCR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"overridesFile.d.ts","sourceRoot":"","sources":["../../../../src/lib/assets/yaml/overridesFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ7D,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC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C,GAAG,IAAI,CAS7F;AAED,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAM/F;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAM3E;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAK5F;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAO1E"}
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "!src/fixtures/**",
17
17
  "!dist/**/*.test.d.ts*"
18
18
  ],
19
- "version": "1.1.7-nightly.9",
19
+ "version": "1.2.0",
20
20
  "main": "dist/lib.js",
21
21
  "types": "dist/lib.d.ts",
22
22
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "format:integration": "eslint --config config/eslint.integration.config.mjs integration/cli integration/helpers",
33
33
  "format:markdown": "npx -y markdownlint-cli --config config/.markdownlint.json --ignore adr --ignore integration/testroot --ignore pepr-test-module --ignore node_modules --rules config/markdownlint-step-format-rule.js \"**/*.md\"",
34
34
  "format:prettier": "prettier --config config/.prettierrc src integration/cli/**/*.ts integration/helpers/**/*.ts",
35
- "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
35
+ "format:src": "eslint --config config/eslint.root.config.mjs 'src/**/*.ts' '.github/workflows/scripts/**/*.ts' --ignore-pattern '**/*.test.ts' --ignore-pattern 'src/templates/**'",
36
36
  "format:tests": "eslint --config config/eslint.test.config.mjs 'src/**/*.test.ts'",
37
37
  "gen-data-json": "node hack/build-template-data.mjs",
38
38
  "prebuild": "rm -fr dist/* && npm run gen-data-json",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@types/ramda": "0.31.1",
53
- "@typescript-eslint/eslint-plugin": "8.59.0",
54
- "@typescript-eslint/parser": "8.59.0",
53
+ "@typescript-eslint/eslint-plugin": "8.59.1",
54
+ "@typescript-eslint/parser": "8.59.1",
55
55
  "commander": "14.0.3",
56
56
  "eslint": "9.39.4",
57
57
  "express": "5.2.1",
@@ -64,11 +64,11 @@
64
64
  "prom-client": "15.1.3",
65
65
  "quicktype-core": "^23.2.6",
66
66
  "ramda": "0.32.0",
67
- "ts-morph": "^27.0.0"
67
+ "ts-morph": "^27.0.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@commitlint/cli": "20.4.3",
71
- "@commitlint/config-conventional": "20.4.3",
70
+ "@commitlint/cli": "20.5.0",
71
+ "@commitlint/config-conventional": "20.5.0",
72
72
  "@semantic-release/commit-analyzer": "^13.0.1",
73
73
  "@semantic-release/git": "^10.0.1",
74
74
  "@semantic-release/npm": "^13.0.0",
@@ -106,4 +106,4 @@
106
106
  "typescript": "5.8.3",
107
107
  "uuid": "13.0.0"
108
108
  }
109
- }
109
+ }
@@ -13,6 +13,11 @@ export default function (program: Command): void {
13
13
  .description("Lint and format this Pepr module")
14
14
  .option("-v, --validate-only", "Do not modify files, only validate formatting.")
15
15
  .action(async opts => {
16
+ Log.warn(
17
+ "DEPRECATION NOTICE: The pepr format command will be removed in summer 2026. " +
18
+ "Once removed, module authors must run a linter separately from the pepr CLI.",
19
+ );
20
+
16
21
  const success = await peprFormat(opts.validateOnly);
17
22
 
18
23
  if (success) {
@@ -28,6 +28,10 @@ export function createWebhookYaml(
28
28
  search: `${config.webhookTimeout}` || "10",
29
29
  replace: "{{ .Values.admission.webhookTimeout }}",
30
30
  },
31
+ {
32
+ search: "metadata:\n name: {{ .Values.uuid }}",
33
+ replace: `metadata:\n name: {{ .Values.uuid }}\n {{- if .Values.admission.webhookAnnotations }}\n annotations:\n {{- toYaml .Values.admission.webhookAnnotations | nindent 4 }}\n {{- end }}\n {{- if .Values.admission.webhookLabels }}\n labels:\n {{- toYaml .Values.admission.webhookLabels | nindent 4 }}\n {{- end }}`,
34
+ },
31
35
  {
32
36
  search: `
33
37
  - key: kubernetes.io/metadata.name
@@ -87,6 +87,8 @@ export async function overridesFile(
87
87
  ...commonProbes(),
88
88
  resources: commonResources(),
89
89
  containerSecurityContext: containerSecurityContext(image),
90
+ webhookAnnotations: {},
91
+ webhookLabels: {},
90
92
  podAnnotations: {},
91
93
  podLabels: {},
92
94
  nodeSelector: {},