Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
use chart release namespace for CREDS_SECRET_NAMESPACE (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasayaAoyama authored Jan 26, 2023
1 parent 31da123 commit 7a91f7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ kubeclarity scan registry/nginx:private --config $HOME/own-kubeclarity-config
Kubeclarity is using [k8schain](https://github.com/google/go-containerregistry/tree/main/pkg/authn/k8schain#k8schain) of google/go-containerregistry for authenticating to the registries.
If the necessary service credentials are not discoverable by the k8schain, they can be defined via secrets described below.

In addition, if service credentials are not located in "kubeclarity" Namespace, please set CREDS_SECRET_NAMESPACE to kubeclarity Deployment.
When using helm [charts](/charts), CREDS_SECRET_NAMESPACE is set to the release namespace installed kubeclarity.

### Amazon ECR

Create an [AWS IAM user](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console) with `AmazonEC2ContainerRegistryFullAccess` permissions.
Expand Down
2 changes: 2 additions & 0 deletions charts/kubeclarity/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ spec:
value: "{{ .Release.Namespace }}"
- name: READ_CLUSTER_SECRETS
value: "{{ index .Values "kubeclarity" "clusterRole" "readClusterSecrets" }}"
- name: CREDS_SECRET_NAMESPACE
value: "{{ .Release.Namespace }}"
ports:
- containerPort: 8080
name: http
Expand Down

0 comments on commit 7a91f7f

Please sign in to comment.