Skip to content

feat(helm): create restart token as Kubernetes Secret#55

Merged
ionos-landgraf-vin merged 2 commits into
mainfrom
restart-token-k8s
Apr 29, 2026
Merged

feat(helm): create restart token as Kubernetes Secret#55
ionos-landgraf-vin merged 2 commits into
mainfrom
restart-token-k8s

Conversation

@clwluvw
Copy link
Copy Markdown
Member

@clwluvw clwluvw commented Apr 28, 2026

Description

  • Add restart-secret.yaml template that creates a Secret from restart.token
  • Wire ARCHSIGHT_RESTART_ENABLED and ARCHSIGHT_RESTART_TOKEN env vars into the deployment from the Secret
  • Add restart.{enabled,token,existingSecret,secretKey} to values.yaml
  • Update CLI to fall back to env vars when CLI flags are not provided
  • Update kubernetes.md docs to reflect the new values-based approach

This removes the need to pass --restart-token as a CLI arg in the Dockerfile/deployment args, keeping the secret out of pod specs and Helm values history when using existingSecret.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Linting & Tests pass (bundle exec rake)
  • Documentation updated (if applicable)

- Add restart-secret.yaml template that creates a Secret from restart.token
- Wire ARCHSIGHT_RESTART_ENABLED and ARCHSIGHT_RESTART_TOKEN env vars
  into the deployment from the Secret
- Add restart.{enabled,token,existingSecret,secretKey} to values.yaml
- Update CLI to fall back to env vars when CLI flags are not provided
- Update kubernetes.md docs to reflect the new values-based approach

This removes the need to pass --restart-token as a CLI arg in the
Dockerfile/deployment args, keeping the secret out of pod specs and
Helm values history when using existingSecret.

Signed-off-by: Seena Fallah <seena.fallah@ionos.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Helm-managed “restart token” Secret and wires restart configuration through env vars, so the restart token no longer needs to be passed as CLI args in Kubernetes manifests.

Changes:

  • Add Helm template to create a Kubernetes Secret from restart.token and inject restart env vars into the Deployment.
  • Introduce restart.{enabled,token,existingSecret,secretKey} values and update Kubernetes docs to describe the new configuration.
  • Update CLI to fall back to ARCHSIGHT_RESTART_{ENABLED,TOKEN} env vars when flags aren’t provided; bump chart/app versions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/archsight/cli.rb Adds env-var fallback for restart enablement/token.
docs/kubernetes.md Updates deployment guidance to use Helm restart: values.
chart/archsight/values.yaml Adds restart configuration values.
chart/archsight/templates/restart-secret.yaml New Secret template for the restart token.
chart/archsight/templates/deployment.yaml Injects restart env vars and Secret ref into the pod.
chart/archsight/Chart.yaml Bumps chart version and appVersion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/archsight/cli.rb
Comment thread chart/archsight/templates/restart-secret.yaml Outdated
Comment thread chart/archsight/templates/deployment.yaml
Comment thread chart/archsight/values.yaml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ionos-landgraf-vin ionos-landgraf-vin merged commit e9fd49f into main Apr 29, 2026
8 checks passed
@ionos-landgraf-vin ionos-landgraf-vin deleted the restart-token-k8s branch April 29, 2026 05:30
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