Skip to content

set ollama llm key in github action#69

Merged
SimonKaran13 merged 1 commit intomainfrom
feature/k8s-ollama-secret
Jul 20, 2025
Merged

set ollama llm key in github action#69
SimonKaran13 merged 1 commit intomainfrom
feature/k8s-ollama-secret

Conversation

@SimonKaran13
Copy link
Collaborator

No description provided.

type: Opaque
data:
OLLAMA_EMBED_KEY: {{ .Values.ollama.llmKey | b64enc }}
OLLAMA_LLM_KEY: {{ .Values.ollama.llmKey | b64enc }} No newline at end of file
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This whole secret was "hardcoded" in k8s, so now it is created with the env var directly from the github action

Copy link

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

This PR adds support for configuring Ollama LLM keys in the Kubernetes deployment by setting up a secret template and passing the key through the GitHub Actions workflow. The changes enable the application to securely access Ollama services with proper authentication.

  • Creates a new Kubernetes secret template for storing Ollama API keys
  • Updates the GitHub Actions workflow to pass the Ollama LLM key from repository secrets
  • Adds documentation about required secrets for deployment in other environments

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
helm/closed-ai/templates/genai-ai-secret.yaml New secret template for storing Ollama embed and LLM keys
.github/workflows/deploy-k8s.yml Added Ollama LLM key configuration to Helm deployment command
README.md Updated deployment documentation with secret requirements
Comments suppressed due to low confidence (1)

helm/closed-ai/templates/genai-ai-secret.yaml:8

  • Both OLLAMA_EMBED_KEY and OLLAMA_LLM_KEY use the same source value (.Values.ollama.llmKey). If these are meant to be different keys, consider using separate values like .Values.ollama.embedKey and .Values.ollama.llmKey.
  OLLAMA_EMBED_KEY: {{ .Values.ollama.llmKey | b64enc }}

DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_NAME: ${{ secrets.DB_NAME }}
DISCORD_WEBHOOK_K8S: ${{ secrets.DISCORD_WEBHOOK_K8S }}
OLLAMA_LLM_KEY: ${{ secrets.OLLAMA_LLM_KEY }}
Copy link

Copilot AI Jul 20, 2025

Choose a reason for hiding this comment

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

The indentation is inconsistent with other environment variables. This line should be indented with spaces to align with the other env variables above.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where exactly is the indentation inconsistent?

@SimonKaran13 SimonKaran13 merged commit df107fe into main Jul 20, 2025
5 checks passed
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.

2 participants