Skip to content

Commit

Permalink
fix: CSI driver so that we deploy a defaultStorageClass (#196)
Browse files Browse the repository at this point in the history
* fix: CSI driver so that we deploy a defaultStorageClass

* feat: adding logging for storageclasses
  • Loading branch information
venkatamutyala authored Dec 9, 2024
1 parent 040916c commit 77c7c1d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ echo "::endgroup::"
echo "::group::Configuring Kubernetes"
echo "Authenticate with Kubernetes"
aws eks update-kubeconfig --region us-west-2 --name captain-cluster --role-arn arn:aws:iam::761182885829:role/glueops-captain-role

echo "Show current storageclasses (immediately after bootstrap)"
kubectl get storageclass -A

echo "Delete AWS CNI"
kubectl delete daemonset -n kube-system aws-node
echo "Install Calico CNI"
Expand All @@ -35,6 +39,9 @@ kubectl get nodes
kubectl get pods -A -o=wide
echo "::endgroup::"

echo "Show current storageclasses (before test suite)"
kubectl get storageclass -A

echo "==> Start Test Suite"
./k8s-test.sh
echo "==> Test Suite Complete"
Expand Down
12 changes: 9 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ variable "kube_proxy_version" {

locals {

csi_addon_node_tolerations = jsonencode({
map_csi_addon_node_tolerations = {
controller = local.nodeselector_and_pod_tolerations
}

map_csi_default_storage = {
defaultStorageClass = {
enabled = true
}
}

})

csi_addon_node_tolerations = jsonencode(merge(local.map_csi_addon_node_tolerations, local.map_csi_default_storage))

nodeselector_and_pod_tolerations = {
nodeSelector = {
Expand Down

0 comments on commit 77c7c1d

Please sign in to comment.