File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 600
600
. with_content ( %r{key: node-role.kubernetes.io/control-plane\n } )
601
601
}
602
602
end
603
+
604
+ context 'when scheduler_extra_arguments is defined' do
605
+ let ( :params ) do
606
+ {
607
+ 'kubernetes_version' => '1.26.0' ,
608
+ 'scheduler_extra_arguments' => [ 'bind-address: 0.0.0.0' ]
609
+ }
610
+ end
611
+
612
+ let ( :config_yaml ) { YAML . load_stream ( catalogue . resource ( 'file' , '/etc/kubernetes/config.yaml' ) . send ( :parameters ) [ :content ] ) }
613
+
614
+ it 'has scheduler extra arguments' do
615
+ cluster_config = config_yaml . find { |c | c [ 'kind' ] == 'ClusterConfiguration' }
616
+ expect ( cluster_config [ 'scheduler' ] [ 'extraArgs' ] [ 'bind-address' ] ) . to eq ( '0.0.0.0' )
617
+ end
618
+ end
603
619
end
Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ controllerManager:
84
84
<%- end -%>
85
85
<%- end -%>
86
86
scheduler:
87
- <%- if @scheduler_merged_extra_arguments -%>
87
+ <%- if @scheduler_extra_arguments -%>
88
88
extraArgs:
89
- <%- @scheduler_merged_extra_arguments .each do |arg| -%>
89
+ <%- @scheduler_extra_arguments .each do |arg| -%>
90
90
<%= arg %>
91
91
<%- end -%>
92
92
<%- end -%>
You can’t perform that action at this time.
0 commit comments