@flowfuse/driver-kubernetes 2.28.0 → 2.28.1-40799ab-202603181116.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 +9 -3
- package/kubernetes.js +23 -17
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ on:
|
|
|
8
8
|
branches:
|
|
9
9
|
- main
|
|
10
10
|
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
11
15
|
jobs:
|
|
12
16
|
build:
|
|
13
17
|
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.52.0'
|
|
@@ -32,10 +36,12 @@ jobs:
|
|
|
32
36
|
steps:
|
|
33
37
|
- name: Generate a token
|
|
34
38
|
id: generate_token
|
|
35
|
-
uses:
|
|
39
|
+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
|
36
40
|
with:
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
app-id: ${{ secrets.GH_BOT_APP_ID }}
|
|
42
|
+
private-key: ${{ secrets.GH_BOT_APP_KEY }}
|
|
43
|
+
owner: ${{ github.repository_owner }}
|
|
44
|
+
repositories: helm
|
|
39
45
|
- name: Trigger flowfuse container build
|
|
40
46
|
uses: benc-uk/workflow-dispatch@7a027648b88c2413826b6ddd6c76114894dc5ec4 # v1.3.1
|
|
41
47
|
with:
|
package/kubernetes.js
CHANGED
|
@@ -974,17 +974,20 @@ module.exports = {
|
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
if (this._customHostname?.enabled) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
} catch (err) {
|
|
980
|
-
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom ingress: ${err.toString()} ${err.stack}`)
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
if (this._customHostname?.certManagerIssuer) {
|
|
977
|
+
const customHostname = await project.getSetting('customHostname')
|
|
978
|
+
if (customHostname) {
|
|
984
979
|
try {
|
|
985
|
-
await this.
|
|
980
|
+
await this._k8sNetApi.deleteNamespacedIngress({ name: `${project.safeName}-custom`, namespace: this._namespace })
|
|
986
981
|
} catch (err) {
|
|
987
|
-
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom
|
|
982
|
+
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom ingress: ${err.toString()} ${err.stack}`)
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
if (this._customHostname?.certManagerIssuer) {
|
|
986
|
+
try {
|
|
987
|
+
await this._k8sApi.deleteNamespacedSecret({ name: `${project.safeName}-custom`, namespace: this._namespace })
|
|
988
|
+
} catch (err) {
|
|
989
|
+
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom tls secret: ${err.toString()} ${err.stack}`)
|
|
990
|
+
}
|
|
988
991
|
}
|
|
989
992
|
}
|
|
990
993
|
}
|
|
@@ -1116,16 +1119,19 @@ module.exports = {
|
|
|
1116
1119
|
}
|
|
1117
1120
|
}
|
|
1118
1121
|
if (this._customHostname?.enabled) {
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
} catch (err) {
|
|
1122
|
-
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom ingress: ${err.toString()}`)
|
|
1123
|
-
}
|
|
1124
|
-
if (this._customHostname?.certManagerIssuer || this._customHostname?.certManagerAnnotations) {
|
|
1122
|
+
const customHostname = await project.getSetting('customHostname')
|
|
1123
|
+
if (customHostname) {
|
|
1125
1124
|
try {
|
|
1126
|
-
await this.
|
|
1125
|
+
await this._k8sNetApi.deleteNamespacedIngress({ name: `${project.safeName}-custom`, namespace: this._namespace })
|
|
1127
1126
|
} catch (err) {
|
|
1128
|
-
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom
|
|
1127
|
+
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom ingress: ${err.toString()}`)
|
|
1128
|
+
}
|
|
1129
|
+
if (this._customHostname?.certManagerIssuer || this._customHostname?.certManagerAnnotations) {
|
|
1130
|
+
try {
|
|
1131
|
+
await this._k8sApi.deleteNamespacedSecret({ name: `${project.safeName}-custom`, namespace: this._namespace })
|
|
1132
|
+
} catch (err) {
|
|
1133
|
+
this._app.log.error(`[k8s] Instance ${project.id} - error deleting custom tls secret: ${err.toString()}`)
|
|
1134
|
+
}
|
|
1129
1135
|
}
|
|
1130
1136
|
}
|
|
1131
1137
|
}
|