lib/k8s/kubeconfig/root.rb
# Merge another kubeconfig into this one, following the merging rules listed in the specifications
# @param other [Hash,Root]
# @return [Root] (self)
Merge another kubeconfig into this one, following the merging rules listed in the specifications
Merge another kubeconfig into this one following the merging rules listed in the specifications
def merge!(other)
        other.each do |k, v|
          if v.is_a?(Array)
            v.each do |value|
              send(k) << value.dup unless send("named_#{k[0..-2]}", value.name)
            end
          elsif send(k).nil?
            send("#{k}=", v)
          end
        end
        self
      end
def merge! ( other ) other . each do | k , v | if v . is_a? ( Array ) v . each do | value | send ( k ) << value . dup unless send ( "named_#{k[0..-2]}" , value . name ) end elsif send ( k ) . nil? send ( "#{k}=" , v ) end end self end
Merge another kubeconfig into this one, following the merging rules listed in the specifications
Merge another kubeconfig into this one following the merging rules listed in the specifications
None
Root
other
<not_specific>
<not_specific>
None