From 764a144c5a203762e53a01959a5b8e221f12759f Mon Sep 17 00:00:00 2001 From: Mateusz Korus Date: Thu, 30 Sep 2021 11:42:35 +0200 Subject: [PATCH] Regenerate crds (#659) --- config/crd/bases/jenkins.io_jenkins.yaml | 16 ++++++++++++++++ pkg/configuration/base/resources/deployment.go | 2 +- pkg/configuration/base/resources/pod.go | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config/crd/bases/jenkins.io_jenkins.yaml b/config/crd/bases/jenkins.io_jenkins.yaml index 95350902..72fdcbbd 100644 --- a/config/crd/bases/jenkins.io_jenkins.yaml +++ b/config/crd/bases/jenkins.io_jenkins.yaml @@ -1108,6 +1108,22 @@ spec: description: DisableCSRFProtection allows you to toggle CSRF Protection on Jenkins type: boolean + hostAliases: + description: HostAliases for Jenkins master pod and SeedJob agent + items: + description: HostAlias holds the mapping between IP and hostnames + that will be injected as an entry in the pod's hosts file. + properties: + hostnames: + description: Hostnames for the above IP address. + items: + type: string + type: array + ip: + description: IP address of the host file entry. + type: string + type: object + type: array imagePullSecrets: description: 'ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the diff --git a/pkg/configuration/base/resources/deployment.go b/pkg/configuration/base/resources/deployment.go index c5f7481d..fe0b1c0c 100644 --- a/pkg/configuration/base/resources/deployment.go +++ b/pkg/configuration/base/resources/deployment.go @@ -37,7 +37,7 @@ func NewJenkinsDeployment(objectMeta metav1.ObjectMeta, jenkins *v1alpha2.Jenkin ImagePullSecrets: jenkins.Spec.Master.ImagePullSecrets, Tolerations: jenkins.Spec.Master.Tolerations, PriorityClassName: jenkins.Spec.Master.PriorityClassName, - HostAliases: jenkins.Spec.Master.HostAliases, + HostAliases: jenkins.Spec.Master.HostAliases, }, }, Selector: selector, diff --git a/pkg/configuration/base/resources/pod.go b/pkg/configuration/base/resources/pod.go index c832667d..c2792e08 100644 --- a/pkg/configuration/base/resources/pod.go +++ b/pkg/configuration/base/resources/pod.go @@ -380,7 +380,7 @@ func NewJenkinsMasterPod(objectMeta metav1.ObjectMeta, jenkins *v1alpha2.Jenkins ImagePullSecrets: jenkins.Spec.Master.ImagePullSecrets, Tolerations: jenkins.Spec.Master.Tolerations, PriorityClassName: jenkins.Spec.Master.PriorityClassName, - HostAliases: jenkins.Spec.Master.HostAliases, + HostAliases: jenkins.Spec.Master.HostAliases, }, } }