Refactor node-join script to take safer options and reuse install option logic (#52196)

* Add install script using teleport-update and oneoff.sh

* Refactor node-join script to take safer options and reuse install option logic

* GoDoc + make functions private

* Address edoardo's feedback
This commit is contained in:
Hugo Shaka
2025-02-21 18:44:03 +00:00
committed by GitHub
parent 317860dbcc
commit eadbe2d8a1
6 changed files with 473 additions and 390 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func TestMarshalLabelsYAML(t *testing.T) {
numExtraIndent: 2,
},
} {
got, err := MarshalLabelsYAML(tt.labels, tt.numExtraIndent)
got, err := marshalLabelsYAML(tt.labels, tt.numExtraIndent)
require.NoError(t, err)
require.YAMLEq(t, strings.Join(tt.expected, "\n"), strings.Join(got, "\n"))