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

POC: Allow trust to be changed for a running tentacle without the need to restart #965

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nathanwoctopusdeploy
Copy link
Contributor

@nathanwoctopusdeploy nathanwoctopusdeploy commented Jun 19, 2024

Background

Results

WIP POC

Before

After

How to review this PR

Quality ✔️

Pre-requisites

  • I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
  • I have considered informing or consulting the right people, according to the ownership map.
  • I have considered appropriate testing for my change.

@@ -55,7 +59,7 @@ internal class TentacleConfiguration : ITentacleConfiguration
[Obsolete("This configuration entry is obsolete as of 3.0. It is only used as a Subscription ID where one does not exist.")]
public string? TentacleSquid => settings.Get("Octopus.Communications.Squid", (string?)null);

public IEnumerable<OctopusServerConfiguration> TrustedOctopusServers => settings.Get<IEnumerable<OctopusServerConfiguration>>(TrustedServersSettingName) ?? new OctopusServerConfiguration[0];
public IEnumerable<OctopusServerConfiguration> TrustedOctopusServers => changeDetectingSettings.Get<IEnumerable<OctopusServerConfiguration>>(TrustedServersSettingName) ?? Array.Empty<OctopusServerConfiguration>();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TrustedOctopusServers will detect changes to the tentacle configuration so Trust changes do not require a restart of Tentacle

@nathanwoctopusdeploy nathanwoctopusdeploy changed the title Allow trust to be changed for a running tentacle without the need to restart POC: Allow trust to be changed for a running tentacle without the need to restart Jul 26, 2024
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.

1 participant