@flowfuse/driver-kubernetes 2.22.1-468ab35-202510010835.0 → 2.22.1-53552b5-202510011309.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.
package/README.md CHANGED
@@ -15,6 +15,9 @@ driver:
15
15
  projectSelector:
16
16
  role: projects
17
17
  projectNamespace: flowforge
18
+ projectLabels:
19
+ environment: production
20
+ team: alpha
18
21
  cloudProvider: aws
19
22
  privateCA: ff-ca-certs
20
23
  certManagerIssuer: lets-encrypt
@@ -40,6 +43,7 @@ driver:
40
43
  - `projectNamespace` the namespace Project pods should run in
41
44
  - `projectSelector` a list of labels that should be used to select which nodes Project Pods
42
45
  should run on
46
+ - `projectLabels` a list of custom labels that should be applied to all resources created for Projects (Pods, Services, Ingresses, PVCs)
43
47
  - `cloudProvider` normally not set, but can be `aws` This triggers the adding of
44
48
  AWS EKS specific annotation for ALB Ingress. or `openshift` to allow running on OpenShift (Enterprise license only)
45
49
  - `privateCA` name of ConfigMap holding PEM CA Cert Bundle (file name `certs.pem`) Optional
package/kubernetes.js CHANGED
@@ -203,8 +203,12 @@ const createDeployment = async (project, options) => {
203
203
  }
204
204
 
205
205
  if (this._app.config.driver.options?.projectLabels) {
206
- localPod.spec.labels = {
207
- ...localPod.spec.labels,
206
+ localPod.metadata.labels = {
207
+ ...localPod.metadata.labels,
208
+ ...this._app.config.driver.options.projectLabels
209
+ }
210
+ localDeployment.metadata.labels = {
211
+ ...localDeployment.metadata.labels,
208
212
  ...this._app.config.driver.options.projectLabels
209
213
  }
210
214
  }
@@ -578,8 +582,8 @@ const createMQTTTopicAgent = async (broker) => {
578
582
  broker: agent ? 'team-broker' : broker.hashid
579
583
  }
580
584
  if (this._app.config.driver.options?.projectLabels) {
581
- localPod.spec.labels = {
582
- ...localPod.spec.labels,
585
+ localPod.metadata.labels = {
586
+ ...localPod.metadata.labels,
583
587
  ...this._app.config.driver.options.projectLabels
584
588
  }
585
589
  localService.metadata.labels = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-kubernetes",
3
- "version": "2.22.1-468ab35-202510010835.0",
3
+ "version": "2.22.1-53552b5-202510011309.0",
4
4
  "description": "Kubernetes driver for FlowFuse",
5
5
  "main": "kubernetes.js",
6
6
  "scripts": {