Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 22, 2024
1 parent 7d0f8db commit 0a3e32f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jobs/otelcollector-bin/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case ${1:-help} in
setcap '<%= cap %>' $(readlink -nf $(which otelcollector))
<% end %>
<% end %>
<% if p("ingress.enabled") == false || p("ingress.enabled") !~ (/(true|t|yes|y|1)$/i) %>
<% if p("ingress.enabled") != true %>
rm -f /var/vcap/jobs/$NAME/config/ingress_port.yml
<% end %>
exec chpst -v otelcollector --config=/var/vcap/jobs/$NAME/config/config.yaml <% if_p("otelcollector-bin.feature-gates") do |gates| %><%= (gates.length > 0) ? "--feature-gates=#{gates.join(',')}" : '' %><% end %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if p("ingress.enabled") == true || p("ingress.enabled") =~ (/(true|t|yes|y|1)$/i) %>
<% if p("ingress.enabled") == true %>
---
ingress: <%= p('ingress.grpc.port') %>
protocol: <%= p('ingress.loggr-protocol', 'otelcol') %>
Expand Down

0 comments on commit 0a3e32f

Please sign in to comment.