diff --git a/jobs/k3s-agent/spec b/jobs/k3s-agent/spec index e815612b..b2d2d5e2 100644 --- a/jobs/k3s-agent/spec +++ b/jobs/k3s-agent/spec @@ -105,6 +105,9 @@ properties: k3s.drain.selector: #Not implemented description: Selector (label query) to filter on +#token-file + k3s.token-file-content: + description: token-file content. see https://kubernetes.io/docs/reference/access-authn-authz/authentication/#static-token-file ## args diff --git a/jobs/k3s-agent/templates/config/token.csv.erb b/jobs/k3s-agent/templates/config/token.csv.erb index f3329a7a..864bea8f 100644 --- a/jobs/k3s-agent/templates/config/token.csv.erb +++ b/jobs/k3s-agent/templates/config/token.csv.erb @@ -1,3 +1,2 @@ -<% if_p('k3s.token-file-content') do |value| %> -<%= p('k3s.token-file-content') %> +<% if_p('k3s.token-file-content') do |value| %><%= p('k3s.token-file-content') %> <% end %> diff --git a/jobs/k3s-server/templates/config/token.csv.erb b/jobs/k3s-server/templates/config/token.csv.erb index f3329a7a..864bea8f 100644 --- a/jobs/k3s-server/templates/config/token.csv.erb +++ b/jobs/k3s-server/templates/config/token.csv.erb @@ -1,3 +1,2 @@ -<% if_p('k3s.token-file-content') do |value| %> -<%= p('k3s.token-file-content') %> +<% if_p('k3s.token-file-content') do |value| %><%= p('k3s.token-file-content') %> <% end %>