Sha256: 28743b2604f7783ae4c91e33662f0ae708a99a81824aaba545ee6284c075f741

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

module KubernetesDeploy
  class ResourceDiscovery
    def initialize(namespace:, context:, logger:, namespace_tags:)
      @namespace = namespace
      @context = context
      @logger = logger
      @namespace_tags = namespace_tags
    end

    def crds(sync_mediator)
      sync_mediator.get_all(CustomResourceDefinition.kind).map do |r_def|
        CustomResourceDefinition.new(namespace: @namespace, context: @context, logger: @logger,
          definition: r_def, statsd_tags: @namespace_tags)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kubernetes-deploy-0.22.0 lib/kubernetes-deploy/resource_discovery.rb
kubernetes-deploy-0.21.1 lib/kubernetes-deploy/resource_discovery.rb
kubernetes-deploy-0.21.0 lib/kubernetes-deploy/resource_discovery.rb
kubernetes-deploy-0.20.6 lib/kubernetes-deploy/resource_discovery.rb
kubernetes-deploy-0.20.5 lib/kubernetes-deploy/resource_discovery.rb