File tree Expand file tree Collapse file tree 6 files changed +30
-6
lines changed Expand file tree Collapse file tree 6 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 8
8
type AgentConfigurations struct {
9
9
SANamespace string `envconfig:"SA_NAMESPACE" default:"default"`
10
10
SAName string `envconfig:"SA_NAME" default:"default"`
11
- OutdatedInterval string `envconfig:"OUTDATED_INTERVAL" default:"*/20 * * * * "`
11
+ OutdatedInterval string `envconfig:"OUTDATED_INTERVAL" default:"@every 20m "`
12
12
GetAllInterval string `envconfig:"GETALL_INTERVAL" default:"*/30 * * * *"`
13
13
KubeScoreInterval string `envconfig:"KUBESCORE_INTERVAL" default:"*/40 * * * *"`
14
14
RakkessInterval string `envconfig:"RAKKESS_INTERVAL" default:"*/50 * * * *"`
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package config
3
3
// var token string = "UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
4
4
// var natsurl string = "nats://localhost:4222"
5
5
6
- //Config will have the configuration details
6
+ // Config will have the configuration details
7
7
type Config struct {
8
8
NatsAddress string `envconfig:"NATS_ADDRESS"`
9
9
NatsToken string `envconfig:"NATS_TOKEN"`
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ const (
53
53
var (
54
54
ClusterName string = os .Getenv ("CLUSTER_NAME" )
55
55
token string = os .Getenv ("NATS_TOKEN" )
56
- natsurl string = os .Getenv ("NATS_ADDRESS" )
56
+
57
+ natsurl string = os .Getenv ("NATS_ADDRESS" )
58
+
57
59
//for local testing provide the location of kubeconfig
58
60
// inside the civo file paste your kubeconfig
59
61
// uncomment this line from Dockerfile.Kubviz (COPY --from=builder /workspace/civo /etc/myapp/civo)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 1.1.0
18
+ version : 1.1.1
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 53
53
- name : NATS_ADDRESS
54
54
value : {{ .Values.nats.host }}
55
55
- 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 }}
57
71
resources :
58
72
{{- toYaml .Values.resources | nindent 12 }}
59
73
{{- if .Values.git_bridge.enabled }}
Original file line number Diff line number Diff line change @@ -142,7 +142,15 @@ tolerations: []
142
142
143
143
affinity : {}
144
144
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"
146
154
147
155
clusterName : " kubviz"
148
156
nats :
You can’t perform that action at this time.
0 commit comments