Sha256: c53520edd0e365674c733d6aaefc6dd9b72728bc9b95b3c61952c11e2548f439

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true
module KubernetesDeploy
  class ConfigMap < KubernetesResource
    TIMEOUT = 30.seconds

    def initialize(name, namespace, context, file)
      @name = name
      @namespace = namespace
      @context = context
      @file = file
    end

    def sync
      _, _err, st = run_kubectl("get", type, @name)
      @status = st.success? ? "Available" : "Unknown"
      @found = st.success?
      log_status
    end

    def deploy_succeeded?
      exists?
    end

    def deploy_failed?
      false
    end

    def exists?
      @found
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kubernetes-deploy-0.6.6 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.5 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.4 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.3 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.2 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.1 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.6.0 lib/kubernetes-deploy/kubernetes_resource/config_map.rb
kubernetes-deploy-0.5.0 lib/kubernetes-deploy/kubernetes_resource/config_map.rb