Skip to content

Commit

Permalink
fix(cert-manager): missing priority class for CSI
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <lefevre.kevin@gmail.com>
  • Loading branch information
ArchiFleKs committed Jan 20, 2021
1 parent f0057ff commit 2e69f9a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ data "kubectl_path_documents" "cert-manager_cluster_issuers" {
data "kubectl_path_documents" "cert-manager_csi_driver" {
pattern = "${path.module}/templates/cert-manager-csi-driver.yaml.tpl"
vars = {
namespace = local.cert-manager["namespace"]
namespace = local.cert-manager["namespace"]
priority_class = local.priority-class-ds["create"] ? kubernetes_priority_class.kubernetes_addons_ds[0].metadata[0].name : ""
}
}

Expand Down
3 changes: 2 additions & 1 deletion modules/aws/cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ data "kubectl_path_documents" "cert-manager_cluster_issuers" {
data "kubectl_path_documents" "cert-manager_csi_driver" {
pattern = "${path.module}/templates/cert-manager-csi-driver.yaml.tpl"
vars = {
namespace = local.cert-manager["namespace"]
namespace = local.cert-manager["namespace"]
priority_class = local.priority-class-ds["create"] ? kubernetes_priority_class.kubernetes_addons_ds[0].metadata[0].name : ""
}
}

Expand Down
3 changes: 2 additions & 1 deletion modules/scaleway/cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ data "kubectl_path_documents" "cert-manager_cluster_issuers" {
data "kubectl_path_documents" "cert-manager_csi_driver" {
pattern = "${path.module}/templates/cert-manager-csi-driver.yaml.tpl"
vars = {
namespace = local.cert-manager["namespace"]
namespace = local.cert-manager["namespace"]
priority_class = local.priority-class-ds["create"] ? kubernetes_priority_class.kubernetes_addons_ds[0].metadata[0].name : ""
}
}

Expand Down
1 change: 1 addition & 0 deletions templates/cert-manager-csi-driver.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
app: cert-manager-csi
spec:
serviceAccount: cert-manager-csi
priorityClassName: ${priority_class}
containers:
- name: node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
Expand Down

0 comments on commit 2e69f9a

Please sign in to comment.