@flowfuse/driver-kubernetes 2.24.6-a5e47f0-202512150752.0 → 2.25.1-3cc0391-202512300921.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/.github/workflows/publish.yml +2 -2
- package/CHANGELOG.md +5 -0
- package/README.md +1 -0
- package/kubernetes.js +9 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ on:
|
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
build:
|
|
13
|
-
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.
|
|
13
|
+
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.45.0'
|
|
14
14
|
with:
|
|
15
15
|
node: '[
|
|
16
16
|
{"version": "18", "tests": false, "lint": true},
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
publish:
|
|
20
20
|
needs: build
|
|
21
21
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
22
|
-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.
|
|
22
|
+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.45.0'
|
|
23
23
|
with:
|
|
24
24
|
package_name: driver-k8s
|
|
25
25
|
publish_package: true
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
#### 2.25.0: Release
|
|
2
|
+
|
|
3
|
+
- Bump flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml (#269)
|
|
4
|
+
- Bump flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml (#270)
|
|
5
|
+
|
|
1
6
|
#### 2.24.5: Release
|
|
2
7
|
|
|
3
8
|
- Bump actions/checkout from 6.0.0 to 6.0.1 (#267)
|
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ AWS EKS specific annotation for ALB Ingress. or `openshift` to allow running on
|
|
|
67
67
|
- `podSecurityContext` Settings linked to the [security context of the pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
|
|
68
68
|
- `containerSecurityContext` Settings linked to the [security context of the container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
|
|
69
69
|
- `service.type` Type of service to create for the editor (allowed `ClusterIP` or `NodePort`, default `ClusterIP`)
|
|
70
|
+
- `schedulerName` name of the custom Kubernetes scheduler to use for Project Pods and MQTT agent Pods (default not set, uses default Kubernetes scheduler)
|
|
70
71
|
|
|
71
72
|
Expects to pick up K8s credentials from the environment
|
|
72
73
|
|
package/kubernetes.js
CHANGED
|
@@ -80,6 +80,10 @@ const createDeployment = async (project, options) => {
|
|
|
80
80
|
localPod.metadata.labels.name = project.safeName
|
|
81
81
|
localPod.spec.serviceAccount = process.env.EDITOR_SERVICE_ACCOUNT
|
|
82
82
|
|
|
83
|
+
if (this._schedulerName) {
|
|
84
|
+
localPod.spec.schedulerName = this._schedulerName
|
|
85
|
+
}
|
|
86
|
+
|
|
83
87
|
if (stack.container) {
|
|
84
88
|
localPod.spec.containers[0].image = stack.container
|
|
85
89
|
} else {
|
|
@@ -648,6 +652,10 @@ const createMQTTTopicAgent = async (broker) => {
|
|
|
648
652
|
localPod.spec.nodeSelector = this._app.config.driver.options.projectSelector
|
|
649
653
|
}
|
|
650
654
|
|
|
655
|
+
if (this._schedulerName) {
|
|
656
|
+
localPod.spec.schedulerName = this._schedulerName
|
|
657
|
+
}
|
|
658
|
+
|
|
651
659
|
localPod.metadata.name = `mqtt-schema-agent-${broker.Team.hashid.toLowerCase()}-${agent ? 'team-broker' : broker.hashid.toLowerCase()}`
|
|
652
660
|
localPod.metadata.labels = {
|
|
653
661
|
name: `mqtt-schema-agent-${broker.Team.hashid.toLowerCase()}-${broker.hashid.toLowerCase()}`,
|
|
@@ -709,6 +717,7 @@ module.exports = {
|
|
|
709
717
|
this._projectIngressAnnotations = this._app.config.driver.options?.projectIngressAnnotations
|
|
710
718
|
this._logPassthrough = this._app.config.driver.options?.logPassthrough || false
|
|
711
719
|
this._cloudProvider = this._app.config.driver.options?.cloudProvider
|
|
720
|
+
this._schedulerName = this._app.config.driver.options?.schedulerName
|
|
712
721
|
if (this._app.config.driver.options?.customHostname?.enabled) {
|
|
713
722
|
this._app.log.info('[k8s] Enabling Custom Hostname Support')
|
|
714
723
|
this._customHostname = this._app.config.driver.options?.customHostname
|