Skip to content

Commit

Permalink
feat(agent-operator): move crds(agent, prometheus) into separate subc…
Browse files Browse the repository at this point in the history
…harts

Signed-off-by: Mykhailo Kuzmich <[email protected]>
  • Loading branch information
kuzm1ch committed Nov 11, 2023
1 parent 767b8ab commit e15f509
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/charts/*/charts
!/charts/agent-operator/charts/
.idea
.vscode
.project
Expand Down
8 changes: 8 additions & 0 deletions charts/agent-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ sources:
maintainers:
- name: Grafana Agent Team
email: [email protected]

dependencies:
- name: agent-crds
version: "0.0.0"
condition: crds.agent.create
- name: prometheus-crds
version: "0.0.0"
condition: crds.prometheus.create
3 changes: 3 additions & 0 deletions charts/agent-operator/charts/agent-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apiVersion: v2
name: agent-crds
version: 0.0.0
3 changes: 3 additions & 0 deletions charts/agent-operator/charts/prometheus-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apiVersion: v2
name: prometheus-crds
version: 0.0.0
7 changes: 7 additions & 0 deletions charts/agent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ podSecurityContext: {}
# -- Container security context (allowPrivilegeEscalation, etc.)
containerSecurityContext: {}

crds:
# -- Whether to install CRDs for monitoring.
agent:
create: true
prometheus:
create: true

rbac:
# -- Toggle to create ClusterRole and ClusterRoleBinding
create: true
Expand Down

0 comments on commit e15f509

Please sign in to comment.