Skip to content

feat(k8s): Argo CD posts a GitHub deployment for each deploy #3779

Closed

Description

@dan-petty

Problem or Motivation

Issue #2000 added the GitHub App of Argo CD's notifier to the cluster secret push. The owner created the App devops-cli-argocd and pushed its App ID, installation ID and private key to argocd/argocd-notifications-secret. No notifier reads them.

k8s/argocd/values.yaml defines only the notifier service.webhook.mattermost. The README says that service.github refers to the keys $github-appID, $github-installationID and $github-privateKey, but no service.github exists. So Argo CD posts no deployment to GitHub, and the README is wrong.

Proposed Solution & Architectural Design

Add the GitHub notifier and one template, and nothing broader:

  • A notifier service.github in k8s/argocd/values.yaml that reads $github-appID, $github-installationID and $github-privateKey from the secret.
  • A template that sends a GitHub deployment block for a deployed application, with the state, the environment and the log URL. It uses only the permission Deployments (read and write) that the App has.
  • A subscription of the existing trigger on-deployed to the new notifier, next to the Mattermost one.
  • A README fix that says what the values now define.

Points to verify before the change is built:

  • The Argo CD version of the chart supports the deployment block, and which fields it needs. Read the Argo CD notifications documentation and the notifications engine source of that version.
  • Which applications have a GitHub repoURL. An application whose source is another host (for example Gitea) must not subscribe.
  • Whether a NetworkPolicy or the cluster egress rules let the notifications controller reach api.github.com.
  • That the rendered values stay valid (helm template or the repository's manifest tests) and that notifications.secret.create stays false.

The cluster is applied by Argo CD from main, so merging the pull request deploys it. An agent does not apply anything to the cluster.

Target Subsystem

Kubernetes & Minikube Automation.

Existing Tool Considered

Argo CD Notifications has a built-in GitHub service with a deployment block. No code is needed beyond the chart values. The permission list comes from the Argo CD documentation: write on deployments for the deployment block, write on commit statuses for status, and write on pull requests for comments.

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. It adds deployment visibility but does not fix a broken or missing critical function.
    • Value: Medium. It gives a record of each deploy in GitHub, reducing manual status checks.
    • Effort: Low. The change is chart values, one template, one subscription, and a README line; no application code is needed.
    • Related: dan-petty/homelab#330, which asks for a different change. Both add Argo CD's GitHub notifier to the chart; the candidate posts a deployment block only, while 2003 also writes a status on the synced commit and scopes to single-source applications.
  3. added
    priority/p2-medium
    status/in-review
    and removed
    status/new
    on Nov 6, 2026
  4. removed
    status/in-review
    on Nov 6, 2026
  5. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 13:25 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions