Skip to content

Commit 8c69b91

Browse files
committed
validate AppWrapper config after merging delta from config map
1 parent 5b517eb commit 8c69b91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ func main() {
142142
exitOnError(err, "unable to create Kubernetes client")
143143

144144
exitOnError(loadIntoOrCreate(ctx, kubeClient, namespaceOrDie(), configMapName, cfg), "unable to initialise configuration")
145+
exitOnError(awconfig.ValidateConfig(cfg.AppWrapper), "invalid AppWrapper configuration")
145146

146147
kubeConfig.Burst = int(ptr.Deref(cfg.ClientConnection.Burst, int32(rest.DefaultBurst)))
147148
kubeConfig.QPS = ptr.Deref(cfg.ClientConnection.QPS, rest.DefaultQPS)

0 commit comments

Comments
 (0)