Sha256: 9cc7738fc38605474b59642c9d2ce55b739fdc0b8dd3d199d749fd670a7ed592

Contents?: true

Size: 674 Bytes

Versions: 26

Compression:

Stored size: 674 Bytes

Contents

module Kubes::Compiler::Dsl::Syntax
  class Endpoint < Resource
    fields :subsets

    # kubectl explain endpoints.subsets
    fields :addresses,         # <[]Object>
           :notReadyAddresses, # <[]Object>
           :ports              # <[]Object>

    def default_kind
      return @kind_from_block if @kind_from_block
      "Endpoints" # always plural
    end

    def default_apiVersion
      "v1"
    end

    def default_top
      top = super
      top.merge(
        subsets: subsets
      )
    end

    def default_subsets
      [{
        addresses: addresses,
        notReadyAddresses: notReadyAddresses,
        ports: ports,
      }]
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kubes-0.9.3 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.9.2 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.9.1 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.9.0 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.10 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.9 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.8 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.7 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.6 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.5 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.4 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.3 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.2 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.1 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.8.0 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.7.10 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.7.9 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.7.8 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.7.7 lib/kubes/compiler/dsl/syntax/endpoint.rb
kubes-0.7.6 lib/kubes/compiler/dsl/syntax/endpoint.rb