Skip to content

Commit

Permalink
Protect against no options set
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Feb 12, 2024
1 parent 570333d commit 3cb2c99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,11 @@ module.exports = {
this._projects = {}
this._options = options

this._namespace = this._app.config.driver.options.projectNamespace || 'flowforge'
this._k8sDelay = this._app.config.driver.options.k8sDelay || 1000
this._k8sRetries = this._app.config.driver.options.k8sRetries || 10
this._certManagerIssuer = this._app.config.driver.options.certManagerIssuer
this._logPassthrough = this._app.config.driver.options.logPassthrough || false
this._namespace = this._app.config.driver.options?.projectNamespace || 'flowforge'
this._k8sDelay = this._app.config.driver.options?.k8sDelay || 1000
this._k8sRetries = this._app.config.driver.options?.k8sRetries || 10
this._certManagerIssuer = this._app.config.driver.options?.certManagerIssuer
this._logPassthrough = this._app.config.driver.options?.logPassthrough || false

const kc = new k8s.KubeConfig()

Expand Down

0 comments on commit 3cb2c99

Please sign in to comment.