Skip to content

Commit 61e2e19

Browse files
authored
Merge pull request #241 from intelops/helmvalues
Helmvalues
2 parents f130cb1 + 90ed1d1 commit 61e2e19

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

agent/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type AgentConfigurations struct {
99
SANamespace string `envconfig:"SA_NAMESPACE" default:"default"`
1010
SAName string `envconfig:"SA_NAME" default:"default"`
11-
OutdatedInterval string `envconfig:"OUTDATED_INTERVAL" default:"*/20 * * * *"`
11+
OutdatedInterval string `envconfig:"OUTDATED_INTERVAL" default:"@every 20m"`
1212
GetAllInterval string `envconfig:"GETALL_INTERVAL" default:"*/30 * * * *"`
1313
KubeScoreInterval string `envconfig:"KUBESCORE_INTERVAL" default:"*/40 * * * *"`
1414
RakkessInterval string `envconfig:"RAKKESS_INTERVAL" default:"*/50 * * * *"`

agent/git/pkg/config/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package config
33
// var token string = "UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
44
// var natsurl string = "nats://localhost:4222"
55

6-
//Config will have the configuration details
6+
// Config will have the configuration details
77
type Config struct {
88
NatsAddress string `envconfig:"NATS_ADDRESS"`
99
NatsToken string `envconfig:"NATS_TOKEN"`

agent/kubviz/k8smetrics_agent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ const (
5353
var (
5454
ClusterName string = os.Getenv("CLUSTER_NAME")
5555
token string = os.Getenv("NATS_TOKEN")
56-
natsurl string = os.Getenv("NATS_ADDRESS")
56+
57+
natsurl string = os.Getenv("NATS_ADDRESS")
58+
5759
//for local testing provide the location of kubeconfig
5860
// inside the civo file paste your kubeconfig
5961
// uncomment this line from Dockerfile.Kubviz (COPY --from=builder /workspace/civo /etc/myapp/civo)

charts/agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.0
18+
version: 1.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/agent/templates/deployment.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,21 @@ spec:
5353
- name: NATS_ADDRESS
5454
value: {{ .Values.nats.host }}
5555
- name: SCHEDULING_INTERVAL
56-
value: {{ .Values.schedulingInterval }}
56+
value: {{ .Values.schedule.schedulingInterval }}
57+
- name: SCHEDULER_ENABLE
58+
value: {{ .Values.schedule.enabled }}
59+
- name: OUTDATED_INTERVAL
60+
value: {{ .Values.schedule.outdatedInterval }}
61+
- name: GETALL_INTERVAL
62+
value: {{ .Values.schedule.getallInterval }}
63+
- name: KUBESCORE_INTERVAL
64+
value: {{ .Values.schedule.kubescoreInterval }}
65+
- name: RAKKESS_INTERVAL
66+
value: {{ .Values.schedule.rakkessInterval }}
67+
- name: KUBEPREUPGRADE_INTERVAL
68+
value: {{ .Values.schedule.kubepreupgradeInterval }}
69+
- name: TRIVY_INTERVAL
70+
value: {{ .Values.TrivyInterval }}
5771
resources:
5872
{{- toYaml .Values.resources | nindent 12 }}
5973
{{- if .Values.git_bridge.enabled }}

charts/agent/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,15 @@ tolerations: []
142142

143143
affinity: {}
144144

145-
schedulingInterval: "24h"
145+
schedule:
146+
enabled: false
147+
schedulingInterval: "24h"
148+
outdatedInterval: "@every 18h"
149+
getallInterval: "@every 19h"
150+
kubescoreInterval: "@every 20h"
151+
rakkessInterval: "@every 21h"
152+
kubepreupgradeInterval: "@every 22h"
153+
trivyInterval: "@every 24h"
146154

147155
clusterName: "kubviz"
148156
nats:

0 commit comments

Comments
 (0)