lib/pharos/phases/configure_weave.rb
def initial_known_peers
        configmap = kube_client.api('v1').resource('configmaps', namespace: 'kube-system').get('flying-shuttle')
        return known_peers unless configmap.data['known-peers']

        JSON.parse(configmap.data['known-peers'])['peers']
      rescue K8s::Error::NotFound
        known_peers
      end
# Initial known peers are kept to initially set value because we don't want to
# rollout new weave deployment everytime known_peers is changed (flying-shuttle will handle updates).
# @return [Array<String>]
Initial known peers are kept to initially set value because we don't want to
rollout new weave deployment everytime known_peers is changed (flying-shuttle will handle updates).
Initial known peers are kept to initially set value because we don ' t want to rollout new weave deployment everytime known_peers is changed ( flying - shuttle will handle updates ) .
def initial_known_peers
        configmap = kube_client.api('v1').resource('configmaps', namespace: 'kube-system').get('flying-shuttle')
        return known_peers unless configmap.data['known-peers']
        JSON.parse(configmap.data['known-peers'])['peers']
      rescue K8s::Error::NotFound
        known_peers
      end
def initial_known_peers configmap = kube_client . api ( 'v1' ) . resource ( 'configmaps' , namespace : 'kube-system' ) . get ( 'flying-shuttle' ) return known_peers unless configmap . data [ 'known-peers' ] JSON . parse ( configmap . data [ 'known-peers' ] ) [ 'peers' ] rescue K8s :: Error :: NotFound known_peers end
Initial known peers are kept to initially set value because we don't want to
rollout new weave deployment everytime known_peers is changed (flying-shuttle will handle updates).
Initial known peers are kept to initially set value because we don ' t want to rollout new weave deployment everytime known_peers is changed ( flying - shuttle will handle updates ) .
None
Array<String>