srl-labs / srl-controller

k8s controller for SR Linux nodes scheduled by KNE
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

added startup-config provisioning via a temp dir #22

Closed hellt closed 1 year ago

hellt commented 1 year ago

previously used method of mounting the startup-config configmap to /etc/opt/srlinux/config.json prevented users from using command on saving the running config to startup with commit save and tools system configuration save, as the rename operation is now allowed on read only file systems.

To workaround that, the current PR uses a temp location /tmp/startup-config for the original configmap, and then copies files contained within this configmap to the target dir at kne-entrypoint.sh stage.

codecov[bot] commented 1 year ago

Codecov Report

Merging #22 (08fcfa6) into main (938f6b9) will increase coverage by 0.10%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   19.61%   19.71%   +0.10%     
==========================================
  Files          10       10              
  Lines         775      771       -4     
==========================================
  Hits          152      152              
+ Misses        619      615       -4     
  Partials        4        4              
Impacted Files Coverage Δ
controllers/pod.go 0.00% <0.00%> (ø)
controllers/srlinux_controller.go 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.