Hi,
I try to install a chart with a CronJob:
helm install -f.\custom-values.yaml .\chart\ad-sync-service
And get the message: Error: validation failed: unable to recognize “”: no matches for kind “CronJob” in version “”
The CronJob file works.
I start it before successfully, just situated outside of the chart folder with kubectl apply -f cronjob.yaml
But now I moved the file into the chart folder to set a helm build.
The chart path is fine.
What could cause the error message?
Thanks for your help!
Frank
The long exception:
C:\workspace\BE-ad-sync-service\AdSyncService\AdSyncService> helm install -f.\custom-values.yaml .\chart\ad-sync-service\ --debug
[debug] Created tunnel using local port: ‘57259’
[debug] SERVER: “127.0.0.1:57259”
[debug] Original chart version: “”
[debug] CHART PATH: C:\workspace\BE-ad-sync-service\AdSyncService\AdSyncService\chart\ad-sync-service
Error: validation failed: unable to recognize “”: no matches for kind “CronJob” in version “”
The crone job is working now.
The problem may be was that I wrote this and the other yaml files in visual studio.
Visual Studio creates an each line end a carriage return and a linefeed.
It should be only a linefeed, because the cron job is running on linux.
Frank