Skip to content

Commit

Permalink
Support separate namespace for pipeline pods (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
meln5674 authored Sep 18, 2024
1 parent 3d4fcc4 commit 40574e9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions charts/woodpecker/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 1.0.1
- name: agent
repository: ""
version: 0.3.1
digest: sha256:814062a80d8b2fea1fede9b7cce3fd75204377fd96147e3e573e3fc0ce2136a4
generated: "2024-09-12T15:19:06.065499+02:00"
version: 0.4.0
digest: sha256:26bcf2636fe4b05abe8d02316b0b36b729acf927630b67b8c3d13cfa764773ac
generated: "2024-09-14T10:36:05.762895922-06:00"
2 changes: 1 addition & 1 deletion charts/woodpecker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ dependencies:
version: 1.0.1
condition: server.enabled
- name: agent
version: 0.3.1
version: 0.4.0
condition: agent.enabled
2 changes: 1 addition & 1 deletion charts/woodpecker/charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: agent
description: A Helm chart for the Woodpecker agent
type: application
version: 0.3.1
version: 0.4.0
# renovate: datasource=github-releases depName=woodpecker-ci/woodpecker extractVersion=^v(?<version>.*)$
appVersion: 2.7.1
home: https://woodpecker-ci.org/
Expand Down
3 changes: 3 additions & 0 deletions charts/woodpecker/charts/agent/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "woodpecker-agent.serviceAccountName" . }}
{{- with .Values.env.WOODPECKER_BACKEND_K8S_NAMESPACE }}
namespace: {{ . }}
{{- end }}
labels:
{{- include "woodpecker-agent.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.rbac.role.labels }}
Expand Down
3 changes: 3 additions & 0 deletions charts/woodpecker/charts/agent/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "woodpecker-agent.serviceAccountName" . }}
{{- with .Values.env.WOODPECKER_BACKEND_K8S_NAMESPACE }}
namespace: {{ . }}
{{- end }}
labels:
{{- include "woodpecker-agent.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.rbac.roleBinding.labels }}
Expand Down

0 comments on commit 40574e9

Please sign in to comment.