Skip to content

Commit

Permalink
Set pod security context if specified, set empty if on openshift
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Jan 26, 2025
1 parent 9521cc1 commit 67fb882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ const createDeployment = async (project, options) => {

if (this._app.config.driver.options?.podSecurityContext) {
localPod.spec.securityContext = this._app.config.driver.options.podSecurityContext
} else if (this._app.license.active() && this._cloudProvider === 'openshift') {
localPod.spec.securityContext = {}
}

if (stack.memory && stack.cpu) {
Expand Down

0 comments on commit 67fb882

Please sign in to comment.