Skip to content

Commit

Permalink
Add support for ingress tls entry
Browse files Browse the repository at this point in the history
part of #83

Basic TLS ingress entry
  • Loading branch information
hardillb committed Jul 12, 2023
1 parent a3b3a44 commit dfbd24f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,14 @@ const createIngress = async (project, options) => {
localIngress.spec.rules[0].host = url.host
localIngress.spec.rules[0].http.paths[0].backend.service.name = `${prefix}${project.safeName}`

if (url.protocol === 'https') {
localIngress.spec.tls = [{
hosts: [
url.host
]
}]
}

return localIngress
}

Expand Down

0 comments on commit dfbd24f

Please sign in to comment.