Skip to content

Commit

Permalink
mount messaging cert if root not present
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 31, 2023
1 parent eab273e commit 18a1c21
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/container_orchestrator/object_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,25 @@ def deployment_definition(name)
],
}
}
else
deployment[:spec][:template][:spec][:containers][0][:volumeMounts] ||= []
deployment[:spec][:template][:spec][:containers][0][:volumeMounts] << {
:mountPath => "/etc/pki/ca-trust/source/anchors",
:name => "messaging-certificate",
:readOnly => true,
}

deployment[:spec][:template][:spec][:volumes] ||= []
deployment[:spec][:template][:spec][:volumes] << {
:name => "messaging-certificate",
:secret => {
:secretName => "manageiq-cluster-ca-cert",
:items => [
:key => "ca.crt",
:path => "ca.crt",
],
}
}
end

deployment
Expand Down

0 comments on commit 18a1c21

Please sign in to comment.