ssh-known-hosts: Move ConfigMap to its own project
This will allow multiple projects to have a ConfigMap with the same `ssh_known_hosts` contents without duplicating the source file in the repository.
This commit is contained in:
@@ -10,14 +10,7 @@ resources:
|
||||
- secrets.yaml
|
||||
- iscsi.yaml
|
||||
- gentoo-storage.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: ssh-known-hosts
|
||||
namespace: jenkins-jobs
|
||||
files:
|
||||
- ssh_known_hosts
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- ../ssh-host-keys
|
||||
|
||||
patches:
|
||||
- patch: |
|
||||
|
||||
12
ssh-host-keys/kustomization.yaml
Normal file
12
ssh-host-keys/kustomization.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
configMapGenerator:
|
||||
- name: ssh-known-hosts
|
||||
namespace: jenkins-jobs
|
||||
files:
|
||||
- ssh_known_hosts
|
||||
options:
|
||||
labels:
|
||||
app.kubernetes.io/name: ssh-known-hosts
|
||||
disableNameSuffixHash: true
|
||||
Reference in New Issue
Block a user