In K8S deployment, R10K does not retrieve modules for any environments if the responsible cronjob is not triggered quickly enough after initial deployment.
Expected Behavior
The /etc/puppetlabs/code/environments/production/modules should be populated with modules listed in the Puppetfile.
Steps to Reproduce
Steps to reproduce the behavior:
In values.yaml, configure puppetserver.puppeturl to valid puppet-control repo, which should contain a Puppetfile on at least one branch.That Puppetfile should list a number of modules to be downloaded for the environment.
Also in values.yaml, set r10k.cronJob.schedule so that it would run less frequently, i.e. every 5 minutes.
Run "helm install -n puppetserver ." with at least 2 minutes time before the cronJob would be triggered.
Wait for the cronJob to run, and exec into the main puppetserver container. Examine the /etc/puppetlabs/code/environments/production to see that there is no "modules" sub-directory.
Environment
Version: Kubernetes 1.14.8
Platform: Docker-for-Desktop w/k8s enabled. Will be testing on other systems soon.
Additional Context
If the cronJob is triggered within roughly 30 seconds of the initial deployment, then the modules to get populated as expected.
In case this is relevant, I have been testing with private git repos via ssh for puppet-control, hiera, and most of the modules. All of that gets fetched properly except for this timing issue, so it seems the repo/transport types are not factors.
Describe the Bug
In K8S deployment, R10K does not retrieve modules for any environments if the responsible cronjob is not triggered quickly enough after initial deployment.
Expected Behavior
The /etc/puppetlabs/code/environments/production/modules should be populated with modules listed in the Puppetfile.
Steps to Reproduce
Steps to reproduce the behavior:
Environment
Additional Context
If the cronJob is triggered within roughly 30 seconds of the initial deployment, then the modules to get populated as expected.
In case this is relevant, I have been testing with private git repos via ssh for puppet-control, hiera, and most of the modules. All of that gets fetched properly except for this timing issue, so it seems the repo/transport types are not factors.