Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agentless: enable admin partitions with agentless #1543

Merged

Conversation

ishustava
Copy link
Contributor

Changes proposed in this PR:

  • integrate partition-init job with consul-server-connection-manager
  • integrate controller with consul-server-connection-manager
  • modify partition token to be be able read all services so that it works with connection manager

How I've tested this PR:

How I expect reviewers to test this PR:

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@@ -1,5 +1,6 @@
{{- if .Values.controller.enabled }}
{{- if and .Values.global.adminPartitions.enabled (not .Values.global.enableConsulNamespaces) }}{{ fail "global.enableConsulNamespaces must be true if global.adminPartitions.enabled=true" }}{{ end }}
{{- if and .Values.externalServers.enabled (not .Values.externalServers.hosts) }}{{ fail "externalServers.hosts must be set if externalServers.enabled is true" }}{{ end -}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not going to update bats for controller in this PR because we'll combine this deployment with connect-inject deployment in a future PR before we go GA (NET-994)

@ishustava ishustava marked this pull request as ready for review September 27, 2022 18:52
serverHelmValues := map[string]string{
"server.exposeGossipAndRPCPorts": "true",
}
defaultPartitionHelmValues := make(map[string]string)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need server's gossip and rpc ports because they don't need to gossip with clients anymore 🎉

local actual=$(echo "$spec" | yq '.initContainers[0].command | any(contains("-use-https"))' | tee /dev/stderr)
[ "${actual}" = "true" ]
}

Copy link
Contributor

Choose a reason for hiding this comment

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

💥

Copy link
Contributor

@thisisnotashwin thisisnotashwin left a comment

Choose a reason for hiding this comment

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

this is wonderful!!

* integrate partition-init job with consul-server-connection-manager
* integrate controller with consul-server-connection-manager
* modify partition token to be be able read all services so that it works with connection manager
@ishustava ishustava force-pushed the ishustava/agentless-partitions-server-conn-mgr branch from 76bce3a to 2f1db05 Compare September 27, 2022 20:33
@ishustava ishustava merged commit 711f1f3 into agentless-base Sep 27, 2022
@ishustava ishustava deleted the ishustava/agentless-partitions-server-conn-mgr branch September 27, 2022 22:22
ishustava added a commit that referenced this pull request Sep 28, 2022
* integrate partition-init job with consul-server-connection-manager
* integrate controller with consul-server-connection-manager
* modify partition token to be be able read all services so that it works with connection manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants