@@ -13,8 +13,7 @@ import (
13
13
"k8s.io/apimachinery/pkg/util/intstr"
14
14
)
15
15
16
- << << << < HEAD
17
- func CreateDeployment (instance * v1alpha1.CTlog , deploymentName string , sa string , labels map [string ]string , serverPort , metricsPort int32 ) (* appsv1.Deployment , error ) {
16
+ func CreateDeployment (instance * v1alpha1.CTlog , deploymentName string , sa string , labels map [string ]string , serverPort , metricsPort int32 , useHTTPS bool ) (* appsv1.Deployment , error ) {
18
17
switch {
19
18
case instance .Status .ServerConfigRef == nil :
20
19
return nil , fmt .Errorf ("CreateCTLogDeployment: %w" , ServerConfigNotSpecified )
@@ -24,11 +23,6 @@ func CreateDeployment(instance *v1alpha1.CTlog, deploymentName string, sa string
24
23
return nil , fmt .Errorf ("CreateCTLogDeployment: %w" , TrillianAddressNotSpecified )
25
24
case instance .Spec .Trillian .Port == nil :
26
25
return nil , fmt .Errorf ("CreateCTLogDeployment: %w" , TrillianPortNotSpecified )
27
- == == == =
28
- func CreateDeployment (instance * v1alpha1 .CTlog , deploymentName string , sa string , labels map [string ]string , useHTTPS bool ) (* appsv1 .Deployment , error ) {
29
- if instance .Status .ServerConfigRef == nil {
30
- return nil , errors .New ("server config name not specified" )
31
- >> >> >> > df48e12 (updates - 1 )
32
26
}
33
27
replicas := int32 (1 )
34
28
scheme := corev1 .URISchemeHTTP
@@ -83,14 +77,9 @@ func CreateDeployment(instance *v1alpha1.CTlog, deploymentName string, sa string
83
77
LivenessProbe : & corev1.Probe {
84
78
ProbeHandler : corev1.ProbeHandler {
85
79
HTTPGet : & corev1.HTTPGetAction {
86
- << << << < HEAD
87
- Path : "/healthz" ,
88
- Port : intstr .FromInt32 (serverPort ),
89
- == == == =
90
80
Path : "/healthz" ,
91
- Port : intstr .FromInt32 (6962 ),
81
+ Port : intstr .FromInt32 (serverPort ),
92
82
Scheme : scheme ,
93
- >> >> >> > df48e12 (updates - 1 )
94
83
},
95
84
},
96
85
InitialDelaySeconds : 10 ,
@@ -102,14 +91,9 @@ func CreateDeployment(instance *v1alpha1.CTlog, deploymentName string, sa string
102
91
ReadinessProbe : & corev1.Probe {
103
92
ProbeHandler : corev1.ProbeHandler {
104
93
HTTPGet : & corev1.HTTPGetAction {
105
- << << << < HEAD
106
- Path : "/healthz" ,
107
- Port : intstr .FromInt32 (serverPort ),
108
- == == == =
109
94
Path : "/healthz" ,
110
- Port : intstr .FromInt32 (6962 ),
95
+ Port : intstr .FromInt32 (serverPort ),
111
96
Scheme : scheme ,
112
- >> >> >> > df48e12 (updates - 1 )
113
97
},
114
98
},
115
99
InitialDelaySeconds : 10 ,
0 commit comments