@@ -30,11 +30,11 @@ import (
30
30
31
31
func init () {
32
32
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
34
34
})
35
35
}
36
36
37
- type jenkingsBootstrapper struct {
37
+ type jenkinsBootstrapper struct {
38
38
* admission.Handler
39
39
40
40
privilegedRESTClientConfig restclient.Config
@@ -44,15 +44,15 @@ type jenkingsBootstrapper struct {
44
44
jenkinsConfig configapi.JenkinsPipelineConfig
45
45
}
46
46
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 {
50
50
Handler : admission .NewHandler (admission .Create ),
51
51
serviceClient : serviceClient ,
52
52
}
53
53
}
54
54
55
- func (a * jenkingsBootstrapper ) Admit (attributes admission.Attributes ) error {
55
+ func (a * jenkinsBootstrapper ) Admit (attributes admission.Attributes ) error {
56
56
if a .jenkinsConfig .AutoProvisionEnabled == nil || ! * a .jenkinsConfig .AutoProvisionEnabled {
57
57
return nil
58
58
}
@@ -143,14 +143,14 @@ func needsJenkinsTemplate(obj runtime.Object) bool {
143
143
}
144
144
}
145
145
146
- func (a * jenkingsBootstrapper ) SetJenkinsPipelineConfig (jenkinsConfig configapi.JenkinsPipelineConfig ) {
146
+ func (a * jenkinsBootstrapper ) SetJenkinsPipelineConfig (jenkinsConfig configapi.JenkinsPipelineConfig ) {
147
147
a .jenkinsConfig = jenkinsConfig
148
148
}
149
149
150
- func (a * jenkingsBootstrapper ) SetRESTClientConfig (restClientConfig restclient.Config ) {
150
+ func (a * jenkinsBootstrapper ) SetRESTClientConfig (restClientConfig restclient.Config ) {
151
151
a .privilegedRESTClientConfig = restClientConfig
152
152
}
153
153
154
- func (a * jenkingsBootstrapper ) SetOpenshiftClient (oclient client.Interface ) {
154
+ func (a * jenkinsBootstrapper ) SetOpenshiftClient (oclient client.Interface ) {
155
155
a .openshiftClient = oclient
156
156
}
0 commit comments