Sha256: aee1eb106ba81d167bc6a37e4ad11af27d51a461fa5c4677b38270c8b6d074cf

Contents?: true

Size: 778 Bytes

Versions: 13

Compression:

Stored size: 778 Bytes

Contents

class Kubes::Compiler::Decorator::Resources::Container
  # Nice to group the mapping logic in ones spot, making a pattern of this is not worth it.
  module Mapping
    def deployment_keys
      @containers_key = 'spec.template.spec.containers'
      @volumes_key = 'spec.template.spec.volumes'
    end

    def pod_keys
      @containers_key = 'spec.containers'
      @volumes_key = 'spec.volumes'
    end

    def configMaps_fields
      @envFrom_field = 'configMapRef'
      @valueFrom_field = 'configMapKeyRef'
      @volume_field = 'configMap'
      @volume_field_name = 'name'
    end

    def secrets_fields
      @envFrom_field = 'secretRef'
      @valueFrom_field = 'secretKeyRef'
      @volume_field = 'secret'
      @volume_field_name = 'secretName'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kubes-0.3.5 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.3.4 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.3.3 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.3.2 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.3.1 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.3.0 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.6 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.5 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.4 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.3 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.2 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.1 lib/kubes/compiler/decorator/resources/container/mapping.rb
kubes-0.2.0 lib/kubes/compiler/decorator/resources/container/mapping.rb