1
0
Fork 0

ssh-host-keys: Do not specify a namespace

We don't want to hard-code a namespace for the `ssh-known-hosts`
ConfigMap because that makes it less useful for other projects besides
Jenkins.  Instead, we omit the namespace specification and allow
consumers to specify their own.

The _jenkins_ project doesn't have a default namespace, since it
specifies resources in the `jenkins` and `jenkins-jobs` namespaces, we
need to create a sub-project to set the namespace for the
`ssh-known-hosts` ConfigMap.
pull/74/head
Dustin 2025-07-21 11:47:39 -05:00
parent 959959155c
commit 16dec1cdec
3 changed files with 8 additions and 2 deletions

View File

@ -10,7 +10,7 @@ resources:
- secrets.yaml - secrets.yaml
- iscsi.yaml - iscsi.yaml
- gentoo-storage.yaml - gentoo-storage.yaml
- ../ssh-host-keys - ssh-host-keys
patches: patches:
- patch: | - patch: |

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: jenkins-jobs
resources:
- ../../ssh-host-keys

View File

@ -3,7 +3,6 @@ kind: Kustomization
configMapGenerator: configMapGenerator:
- name: ssh-known-hosts - name: ssh-known-hosts
namespace: jenkins-jobs
files: files:
- ssh_known_hosts - ssh_known_hosts
options: options: