Skip to content

Commit f03f6d1

Browse files
authored
fix: Deployer user didn't have access to modify externalsecrets, other small fixes (#211)
1 parent 0998049 commit f03f6d1

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ summary:
1212
@echo "- Repository URL: ${REPOSITORY}"
1313
@echo "- To see your kubernetes clusters, run: 'kubectl config get-contexts'"
1414
@echo "- To switch to a cluster, use the following commands:"
15-
@echo $(shell [[ "${ENVIRONMENT}" =~ "production" ]] && echo "- for production use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-production)")
16-
@echo $(shell [[ "${ENVIRONMENT}" =~ "staging" ]] && echo "- for staging use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-staging)")
15+
@echo $(shell [[ "${ENVIRONMENT}" =~ "prod" ]] && echo "- for production use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-prod)")
16+
@echo $(shell [[ "${ENVIRONMENT}" =~ "stage" ]] && echo "- for staging use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-stage)")
1717
@echo "- To inspect the selected cluster, run 'kubectl get node,service,deployment,pods'"

scripts/check.sh

100644100755
File mode changed.

templates/terraform/environments/prod/user_access.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ locals {
217217
verbs = ["exec", "create", "list", "get", "delete", "patch", "update", "watch"]
218218
api_groups = ["*"]
219219
resources = ["deployments", "configmaps", "pods", "pods/exec", "pods/log", "pods/status", "pods/portforward",
220-
"nodes", "jobs", "cronjobs", "statefulsets", "secrets", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
220+
"nodes", "jobs", "cronjobs", "statefulsets", "secrets", "externalsecrets", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
221221
"horizontalpodautoscalers", "horizontalpodautoscalers/status",
222222
"poddisruptionbudgets", "replicasets", "replicationcontrollers"
223223
]
@@ -232,7 +232,7 @@ locals {
232232
resources = ["deployments", "configmaps", "pods", "pods/log", "pods/status",
233233
"jobs", "cronjobs", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
234234
"horizontalpodautoscalers", "horizontalpodautoscalers/status",
235-
"poddisruptionbudgets", "replicasets"
235+
"poddisruptionbudgets", "replicasets", "externalsecrets"
236236
]
237237
},
238238
{

templates/terraform/environments/stage/user_access.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ locals {
237237
"replicasets", "horizontalpodautoscalers", "horizontalpodautoscalers/status",
238238
"ingresses", "services", "serviceaccounts",
239239
"poddisruptionbudgets",
240-
"secrets"
240+
"secrets", "externalsecrets"
241241
]
242242
}
243243
]
@@ -263,7 +263,7 @@ locals {
263263
verbs = ["exec", "create", "list", "get", "delete", "patch", "update", "watch"]
264264
api_groups = ["*"]
265265
resources = ["deployments", "configmaps", "pods", "pods/exec", "pods/log", "pods/status", "pods/portforward",
266-
"nodes", "jobs", "cronjobs", "statefulsets", "secrets", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
266+
"nodes", "jobs", "cronjobs", "statefulsets", "secrets", "externalsecrets", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
267267
"horizontalpodautoscalers", "horizontalpodautoscalers/status",
268268
"poddisruptionbudgets", "replicasets", "replicationcontrollers"
269269
]
@@ -278,7 +278,7 @@ locals {
278278
resources = ["deployments", "configmaps", "pods", "pods/log", "pods/status",
279279
"jobs", "cronjobs", "services", "daemonsets", "endpoints", "namespaces", "events", "ingresses",
280280
"horizontalpodautoscalers", "horizontalpodautoscalers/status",
281-
"poddisruptionbudgets", "replicasets"
281+
"poddisruptionbudgets", "replicasets", "externalsecrets"
282282
]
283283
},
284284
{

templates/terraform/modules/environment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ data "aws_caller_identity" "current" {}
5656
# Provision the EKS cluster
5757
module "eks" {
5858
source = "commitdev/zero/aws//modules/eks"
59-
version = "0.4.4"
59+
version = "0.4.5"
6060
providers = {
6161
aws = aws.for_eks
6262
}

0 commit comments

Comments
 (0)