Skip to content

Commit

Permalink
remove unused get certificate request func
Browse files Browse the repository at this point in the history
  • Loading branch information
waveywaves committed Mar 29, 2024
1 parent 28795ba commit 91c720c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/uffizzi/services/install_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ def get_controller_ip(namespace)
load_balancers.map { |i| i['ip'] }[0]
end

def get_certificate_request(namespace, uri)
cmd = "kubectl get certificaterequests -n #{namespace} -o json"
res = execute_command(cmd, say: false)
certificate_request = JSON.parse(res)['items'].detect { |i| i['metadata']['name'].include?(uri.host) }

return [] if certificate_request.nil?

conditions = certificate_request.dig('status', 'conditions') || []
conditions.map { |c| c.slice('type', 'status') }
end

def build_controller_host(host)
[DEFAULT_CONTROLLER_DOMAIN_PREFIX, host].join('.')
end
Expand Down

0 comments on commit 91c720c

Please sign in to comment.