Skip to content

Commit 44fd91b

Browse files
author
OpenShift Bot
authored
Merge pull request #11350 from jim-minter/spelljenkings
Merged by openshift-bot
2 parents 5134734 + 15d8f72 commit 44fd91b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/build/admission/jenkinsbootstrapper/admission.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import (
3030

3131
func init() {
3232
admission.RegisterPlugin("openshift.io/JenkinsBootstrapper", func(c clientset.Interface, config io.Reader) (admission.Interface, error) {
33-
return NewJenkingsBootstrapper(c.Core()), nil
33+
return NewJenkinsBootstrapper(c.Core()), nil
3434
})
3535
}
3636

37-
type jenkingsBootstrapper struct {
37+
type jenkinsBootstrapper struct {
3838
*admission.Handler
3939

4040
privilegedRESTClientConfig restclient.Config
@@ -44,15 +44,15 @@ type jenkingsBootstrapper struct {
4444
jenkinsConfig configapi.JenkinsPipelineConfig
4545
}
4646

47-
// NewJenkingsBootstrapper returns an admission plugin that will create required jenkins resources as the user if they are needed.
48-
func NewJenkingsBootstrapper(serviceClient coreclient.ServicesGetter) admission.Interface {
49-
return &jenkingsBootstrapper{
47+
// NewJenkinsBootstrapper returns an admission plugin that will create required jenkins resources as the user if they are needed.
48+
func NewJenkinsBootstrapper(serviceClient coreclient.ServicesGetter) admission.Interface {
49+
return &jenkinsBootstrapper{
5050
Handler: admission.NewHandler(admission.Create),
5151
serviceClient: serviceClient,
5252
}
5353
}
5454

55-
func (a *jenkingsBootstrapper) Admit(attributes admission.Attributes) error {
55+
func (a *jenkinsBootstrapper) Admit(attributes admission.Attributes) error {
5656
if a.jenkinsConfig.AutoProvisionEnabled == nil || !*a.jenkinsConfig.AutoProvisionEnabled {
5757
return nil
5858
}
@@ -143,14 +143,14 @@ func needsJenkinsTemplate(obj runtime.Object) bool {
143143
}
144144
}
145145

146-
func (a *jenkingsBootstrapper) SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig) {
146+
func (a *jenkinsBootstrapper) SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig) {
147147
a.jenkinsConfig = jenkinsConfig
148148
}
149149

150-
func (a *jenkingsBootstrapper) SetRESTClientConfig(restClientConfig restclient.Config) {
150+
func (a *jenkinsBootstrapper) SetRESTClientConfig(restClientConfig restclient.Config) {
151151
a.privilegedRESTClientConfig = restClientConfig
152152
}
153153

154-
func (a *jenkingsBootstrapper) SetOpenshiftClient(oclient client.Interface) {
154+
func (a *jenkinsBootstrapper) SetOpenshiftClient(oclient client.Interface) {
155155
a.openshiftClient = oclient
156156
}

pkg/build/admission/jenkinsbootstrapper/admission_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestAdmission(t *testing.T) {
120120
kubeClient := fake.NewSimpleClientset(tc.objects...)
121121
originClient := testclient.NewSimpleFake(tc.objects...)
122122

123-
admission := NewJenkingsBootstrapper(kubeClient.Core()).(*jenkingsBootstrapper)
123+
admission := NewJenkinsBootstrapper(kubeClient.Core()).(*jenkinsBootstrapper)
124124
admission.openshiftClient = originClient
125125
admission.jenkinsConfig = configapi.JenkinsPipelineConfig{
126126
AutoProvisionEnabled: tc.jenkinsEnabled,

0 commit comments

Comments
 (0)