Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add node selector config #37

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/guac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maintainers:
email: guac-info@kusari.dev

type: application
version: 0.2.2
version: 0.2.3
appVersion: "v0.1.2"

dependencies:
Expand Down
6 changes: 5 additions & 1 deletion charts/guac/templates/collectsub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.collectSub.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.collectSub.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/depsdev-collector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.depsDevCollector.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.depsDevCollector.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/graphql-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.graphqlServer.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.graphqlServer.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/ingestor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.ingestor.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.ingestor.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/oci-collector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.ociCollector.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.ociCollector.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/osv-certifier-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ spec:
- name: guac-config
configMap:
name: guac-cm
{{- end }}
{{- end }}
{{- if .Values.guac.osvCertifier.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.osvCertifier.nodeSelector | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/guac/templates/visualizer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ spec:
- name: visualizer-proxy-config
configMap:
name: visualizer-proxy-cm
{{- end }}
{{- end }}
{{- if .Values.guac.visualizer.nodeSelector }}
nodeSelector:
{{ toYaml .Values.guac.visualizer.nodeSelector | indent 8 }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/guac/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ imagePullSecrets:
## @param guac.ociCollector.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.ociCollector.replicas Number of replicas for oci collector deployment
## @param guac.ociCollector.image.command Command for the OCI Collector image. It is not recommended to override this.
## @param guac.ociCollector.nodeSelector - sets the node selector for where to run the deployment
## @param guac.depsDevCollector.name String Name of the Deps.Dev Collector component.
## @param guac.depsDevCollector.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.depsDevCollector.replicas Number of replicas for depsdev collector deployment
## @param guac.depsDevCollector.image.command Command for the Deps.Dev Collector image. It is not recommended to override this.
## @param guac.depsDevCollector.nodeSelector - sets the node selector for where to run the deployment
## @param guac.osvCertifier.name String Name of the OSV Certifier component.
## @param guac.osvCertifier.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.osvCertifier.replicas Number of replicas for OSV Certifier deployment
## @param guac.osvCertifier.image.command Command for the OSV Certifier Collector image. It is not recommended to override this.
## @param guac.osvCertifier.nodeSelector - sets the node selector for where to run the deployment
## @param guac.ingestor.name String Name of the ingestor component.
## @param guac.ingestor.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.ingestor.replicas Number of replicas for ingestor deployment
## @param guac.ingestor.image.command Command for the ingestor image. It is not recommended to override this.
## @param guac.ingestor.nodeSelector - sets the node selector for where to run the deployment
## @param guac.collectSub.name String Name of the Collector Sub component.
## @param guac.collectSub.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.collectSub.replicas Number of replicas for Collector Sub deployment
Expand All @@ -39,6 +43,7 @@ imagePullSecrets:
## @param guac.collectSub.svcPorts[0].protocol Protocol used at Collector Sub
## @param guac.collectSub.svcPorts[0].port Port the Collector Sub service listens on
## @param guac.collectSub.svcPorts[0].targetPort Port the Collector Sub container listens on
## @param guac.collectSub.nodeSelector - sets the node selector for where to run the deployment
## @param guac.graphqlServer.name String Name of the GraphQL Server component.
## @param guac.graphqlServer.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
## @param guac.graphqlServer.replicas Number of replicas for GraphQL Server deployment
Expand All @@ -49,6 +54,7 @@ imagePullSecrets:
## @param guac.graphqlServer.svcPorts[0].targetPort Port the GraphQL Server container listens on
## @param guac.graphqlServer.backend which backend to use - only support inmem at the moment.
## @param guac.graphqlServer.debug Enable debug mode for graphql server; also enable the UI
## @param guac.graphqlServer.nodeSelector - sets the node selector for where to run the deployment
## @param guac.visualizer.enabled String Whether to deploy the visualizer.
## @param guac.visualizer.name String Name of the visualizer.
## @param guac.visualizer.annotations.reloader.stakater.com/auto [string] Boolean for deploying [stakater/Reloader] (https://github.com/stakater/Reloader)
Expand All @@ -61,6 +67,7 @@ imagePullSecrets:
## @param guac.visualizer.svcPorts[0].protocol Protocol used at the visualizer
## @param guac.visualizer.svcPorts[0].port Port the visualizer service listens on
## @param guac.visualizer.svcPorts[0].targetPort Port the visualizer container listens on
## @param guac.visualizer.nodeSelector - sets the node selector for where to run the deployment
## @param guac.observability.deployServiceMonitor Boolean Deploy the service monitor for observability
## @param guac.sampleData.ingest Boolean - whether to ingest sample data after deployment
## @param guac.sampleData.jobName Name of the sample data ingest job
Expand Down Expand Up @@ -142,6 +149,8 @@ guac:
targetPort: 8080
backend: inmem
debug: true
# nodeSelector:
# highmem: "true"

visualizer:
enabled: true
Expand Down