Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix blank line in token.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
poblin-orange committed Jan 16, 2021
1 parent 42ed6a0 commit fb8e48f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions jobs/k3s-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions jobs/k3s-agent/templates/config/token.csv.erb
Original file line number Diff line number Diff line change
@@ -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 %>
3 changes: 1 addition & 2 deletions jobs/k3s-server/templates/config/token.csv.erb
Original file line number Diff line number Diff line change
@@ -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 %>

0 comments on commit fb8e48f

Please sign in to comment.