Skip to content

Commit

Permalink
Merge pull request #9 from cyscale/feat/load-k8s-agent-metadata-envs
Browse files Browse the repository at this point in the history
  • Loading branch information
NorbertHambuer authored Aug 5, 2024
2 parents 18c5ee1 + 7ffc7ac commit 55cee3e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kubernetes-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kubernetes-agent
description: A Helm chart used to deploy the Cyscale Kubernetes agent.
version: 1.5.4
appVersion: v0.31.2
appVersion: v0.32.2
type: application

icon: https://media.licdn.com/dms/image/C4D0BAQEonulGiwwtgA/company-logo_200_200/0/1630511856380/cyscale_logo?e=2147483647&v=beta&t=92c83G4PnWeieXQS9VPy7DbbL5vLHqQjQzutDCPqaM8
9 changes: 9 additions & 0 deletions charts/kubernetes-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["-health-probe-bind-address=:{{ .Values.healthCheck.port }}"]
env:
- name: AGENT_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AGENT_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
ports:
- name: health
containerPort: {{ .Values.healthCheck.port }}
Expand Down
8 changes: 8 additions & 0 deletions charts/kubernetes-agent/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ kind: ClusterRole
metadata:
name: {{ include "kubernetes-agent.fullname" . }}
rules:
- apiGroups:
- ""
resources:
- "events"
verbs:
- get
- list
- watch
{{- range .Values.config.resourcesToScan }}
- apiGroups:
- "{{ .group }}"
Expand Down

0 comments on commit 55cee3e

Please sign in to comment.