mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-02 22:21:12 +02:00
[WIP] AWS S3 backup
- mount backup credentials secret into Jenkins pod
This commit is contained in:
@@ -33,6 +33,9 @@ const (
|
||||
// this scripts are provided by user
|
||||
JenkinsUserConfigurationVolumePath = "/var/jenkins/user-configuration"
|
||||
|
||||
jenkinsBackupCredentialsVolumeName = "backup-credentials"
|
||||
jenkinsBackupCredentialsVolumePath = "/var/jenkins/backup-credentials"
|
||||
|
||||
httpPortName = "http"
|
||||
slavePortName = "slavelistener"
|
||||
// HTTPPortInt defines Jenkins master HTTP port
|
||||
@@ -152,6 +155,11 @@ func NewJenkinsMasterPod(objectMeta metav1.ObjectMeta, jenkins *virtuslabv1alpha
|
||||
MountPath: jenkinsOperatorCredentialsVolumePath,
|
||||
ReadOnly: true,
|
||||
},
|
||||
{
|
||||
Name: jenkinsBackupCredentialsVolumeName,
|
||||
MountPath: jenkinsBackupCredentialsVolumePath,
|
||||
ReadOnly: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -210,6 +218,14 @@ func NewJenkinsMasterPod(objectMeta metav1.ObjectMeta, jenkins *virtuslabv1alpha
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: jenkinsBackupCredentialsVolumeName,
|
||||
VolumeSource: corev1.VolumeSource{
|
||||
Secret: &corev1.SecretVolumeSource{
|
||||
SecretName: GetBackupCredentialsSecretName(jenkins),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user