Copy the labels to the persistent data volume
Move the custom label definitions to a custom folder in the kubernetes folder, as well as the config files
This commit is contained in:
@@ -7,7 +7,7 @@ secret = `kubectl get secret gitea-config -o yaml`
|
||||
yaml = YAML.load(secret)
|
||||
|
||||
yaml['data'].each do |key, data|
|
||||
filename = File.join('kubernetes', 'config', key)
|
||||
filename = File.join('kubernetes', 'custom', 'config', key)
|
||||
File.open(filename, "w+") do |f|
|
||||
puts "Writing #{filename}"
|
||||
f.write Base64.decode64(data)
|
||||
|
||||
Reference in New Issue
Block a user