Class: KubernetesDeploy::Elasticsearch
Constant Summary
KubernetesResource::DEBUG_RESOURCE_NOT_FOUND_MESSAGE, KubernetesResource::DISABLED_EVENT_INFO_MESSAGE, KubernetesResource::DISABLED_LOG_INFO_MESSAGE, KubernetesResource::DISABLE_FETCHING_EVENT_INFO, KubernetesResource::DISABLE_FETCHING_LOG_INFO, KubernetesResource::LOG_LINE_COUNT, KubernetesResource::STANDARD_TIMEOUT_MESSAGE, KubernetesResource::TIMEOUT, KubernetesResource::TIMEOUT_OVERRIDE_ANNOTATION, KubernetesResource::UNUSUAL_FAILURE_MESSAGE
Instance Attribute Summary
#context, #deploy_started_at, #name, #namespace, #type
Instance Method Summary
collapse
build, #debug_message, #deploy_started?, #deploy_timed_out?, #failure_message, #fetch_events, #file_path, #id, #initialize, #kubectl, #pretty_status, #pretty_timeout_type, #report_status_to_statsd, #status, #sync_debug_info, timeout, #timeout, #timeout_message, #timeout_override, #validate_definition, #validation_error_msg, #validation_failed?
Instance Method Details
#deploy_failed? ⇒ Boolean
23
24
25
|
# File 'lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb', line 23
def deploy_failed?
false
end
|
#deploy_method ⇒ Object
27
28
29
|
# File 'lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb', line 27
def deploy_method
:replace
end
|
#deploy_succeeded? ⇒ Boolean
9
10
11
12
13
14
15
16
17
|
# File 'lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb', line 9
def deploy_succeeded?
return false unless deploy_started?
unless @success_assumption_warning_shown
@logger.warn("Don't know how to monitor resources of type #{type}. Assuming #{id} deployed successfully.")
@success_assumption_warning_shown = true
end
true
end
|
#exists? ⇒ Boolean
19
20
21
|
# File 'lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb', line 19
def exists?
@found
end
|
#sync ⇒ Object
4
5
6
7
|
# File 'lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb', line 4
def sync
_, _err, st = kubectl.run("get", type, @name)
@found = st.success?
end
|