Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Reorganize externalServers section #430

Merged
merged 4 commits into from
Apr 23, 2020

Conversation

ishustava
Copy link
Contributor

This PR makes the following changes:

  • Consolidate client.join and externalServers.https.address under one value: externalServers.hosts. Unlike client.join, this value no longer accepts ports, and so if the serf port is non-default, it has to be provided separately. This is because we're now using the same host for multiple protocols, and so I think it's better to provide the ports for each protocol separately. Since it no longer accepts ports, I thought hosts will be a more appropriate name for it. This was largely based on RFC2396,
    where URL is defined as <userinfo>@<host>:<port>.
  • Deprecate client.join.
  • Add externalServers.serfLANPort.
  • Rename externalServers.https.port -> externalServers.httpsPort
  • Rename externalServers.https.tlsServerName -> externalServers.tlsServerName
  • Rename externalServers.https.useSystemRoots -> externalServers.useSystemRoots
  • Rename connectInject.overrideAuthMethodHost -> externalServers.k8sAuthMethodHost

@ishustava ishustava added the theme/external-servers Related to Consul servers running outside the cluster label Apr 23, 2020
@ishustava ishustava requested a review from a team April 23, 2020 03:10
@ishustava ishustava force-pushed the reorg-external-servers-section branch from 406cb31 to 3605470 Compare April 23, 2020 03:55
* Consolidate client.join and externalServers.https.address
  under one value: externalServers.hosts. This value no longer accepts
  ports, and so if the serf port is non-default, it has to be provided
  separately. Since it no longer accepts ports, this value was renamed
  from 'address' to 'hosts'. This was largely based on RFC2396,
  which defined URL as '<userinfo>@<host>:<port>'.
* Deprecate 'client.join'.
* Add externalServers.serfLANPort.
* Rename externalServers.https.port -> externalServers.httpsPort
* Rename externalServers.https.tlsServerName ->
externalServers.tlsServerName
* Rename externalServers.https.useSystemRoots ->
externalServers.useSystemRoots
* Rename connectInject.overrideAuthMethodHost ->
externalServers.k8sAuthMethodHost
@ishustava ishustava force-pushed the reorg-external-servers-section branch from 3605470 to bb4506e Compare April 23, 2020 04:13
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Show resolved Hide resolved
test/unit/client-daemonset.bats Show resolved Hide resolved
templates/client-daemonset.yaml Outdated Show resolved Hide resolved
ishustava and others added 3 commits April 23, 2020 11:05
Co-Authored-By: Luke Kysow <1034429+lkysow@users.noreply.github.com>
Co-Authored-By: Luke Kysow <1034429+lkysow@users.noreply.github.com>
@ishustava ishustava merged commit 4f6c993 into acls-external-servers Apr 23, 2020
@ishustava ishustava deleted the reorg-external-servers-section branch April 23, 2020 19:54
{{- if .Values.client.join }}
{{- range $value := .Values.client.join }}
-retry-join={{ quote $value }} \
{{- end }}
{{- else }}
{{- $serfPort := (.Values.externalServers.serfLANPort | int) -}}
{{- range $host := .Values.externalServers.hosts }}
-retry-join={{ printf "%s:%d" $host $serfPort | quote}} \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still work if someone set a provider? Or a dns name? I think the docs also mention being able to set a go-sockaddr template.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/external-servers Related to Consul servers running outside the cluster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants