From 3f38e910c1d65008dedbca9453d1efb54b6f19d3 Mon Sep 17 00:00:00 2001 From: jerger Date: Tue, 29 Mar 2022 18:42:13 +0200 Subject: [PATCH] make k3s values avaiable as build property --- src/main/python/ddadevops/provs_k3s_mixin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/python/ddadevops/provs_k3s_mixin.py b/src/main/python/ddadevops/provs_k3s_mixin.py index 3bea5cb..912a718 100644 --- a/src/main/python/ddadevops/provs_k3s_mixin.py +++ b/src/main/python/ddadevops/provs_k3s_mixin.py @@ -61,16 +61,25 @@ class ProvsK3sMixin(DevopsBuild): super().__init__(project, config) provs_k3s_mixin_config = config['ProvsK3sMixin'] self.fqdn = provs_k3s_mixin_config['fqdn'] + self.put('fqdn', self.fqdn) self.provision_user = provs_k3s_mixin_config['provision_user'] + self.put('provision_user', self.provision_user) self.ipv4 = provs_k3s_mixin_config['ipv4'] + self.put('ipv4', self.ipv4) self.ipv6 = provs_k3s_mixin_config['ipv6'] + self.put('ipv6', self.ipv6) self.letsencrypt_email = provs_k3s_mixin_config['letsencrypt_email'] + self.put('letsencrypt_email', self.letsencrypt_email) self.letsencrypt_endpoint = provs_k3s_mixin_config['letsencrypt_endpoint'] + self.put('letsencrypt_endpoint', self.letsencrypt_endpoint) self.echo = provs_k3s_mixin_config['echo'] + self.put('echo', self.echo) self.k3s_config_template_text = provs_k3s_mixin_config['k3s_config_template'] self.k3s_config_template = Template( provs_k3s_mixin_config['k3s_config_template']) + self.put('k3s_config_template', self.k3s_config_template) self.app_filename_to_provision = provs_k3s_mixin_config['app_filename_to_provision'] + self.put('app_filename_to_provision', self.app_filename_to_provision) def update_runtime_config(self, fqdn, ipv4, ipv6=None): self.fqdn = fqdn