1
0
Fork 0

sshca: Allow Jenkins jobs to restart the Deployment

The Jenkins job for the SSHCA Server restarts the Deployment after
building a new container image.
xactmon-doc
Dustin 2024-07-27 13:10:20 -05:00
parent a26857819a
commit a785fcec73
1 changed files with 30 additions and 0 deletions

30
sshca/jenkins.yaml Normal file
View File

@ -0,0 +1,30 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: jenkins
namespace: sshca
rules:
- apiGroups:
- apps
resources:
- deployments
resourceNames:
- sshca
verbs:
- get
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: jenkins
namespace: sshca
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: jenkins
subjects:
- kind: ServiceAccount
name: default
namespace: jenkins-jobs