mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 11:40:44 -06:00
fix ingress
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class K8::Stateless::Ingress < K8::Base
|
||||
attr_accessor :service, :project, :domains, :cluster
|
||||
delegate :name, to: :service
|
||||
|
||||
def initialize(service)
|
||||
@service = service
|
||||
@@ -8,6 +7,10 @@ class K8::Stateless::Ingress < K8::Base
|
||||
@cluster = @project.cluster
|
||||
end
|
||||
|
||||
def name
|
||||
"#{@service.name}-ingress"
|
||||
end
|
||||
|
||||
def get_ingress
|
||||
result = K8::Kubectl.new(@cluster.kubeconfig).call('get ingresses -o yaml')
|
||||
results = YAML.safe_load(result)
|
||||
|
||||
Reference in New Issue
Block a user