@@ -41,11 +41,11 @@ func TestGeneratePlan(t *testing.T) {
4141 expectUpdate int
4242 expectWorkflow int
4343 expectConfig bool
44- expectConfigSetCurrent * bool // pointer so we can test nil
45- expectConfigRampPercent * int32 // pointer so we can test nil, in percentage (0-100)
44+ expectConfigSetCurrent * bool // pointer so we can test nil
45+ expectConfigRampPercent * int32 // pointer so we can test nil, in percentage (0-100)
4646 expectManagerIdentity * string // pointer so nil means "don't assert"
47- maxVersionsIneligibleForDeletion * int32 // set by env if non-nil, else default 75
48- wrts []temporaliov1alpha1.WorkerResourceTemplate
47+ maxVersionsIneligibleForDeletion * int32 // set by env if non-nil, else default 75
48+ wrts []temporaliov1alpha1.WorkerResourceTemplate
4949 expectOwnedResourceApplies int
5050 }{
5151 {
@@ -2994,12 +2994,12 @@ func TestResolveGateInput(t *testing.T) {
29942994func TestGetOwnedResourceApplies (t * testing.T ) {
29952995 testCases := []struct {
29962996 name string
2997- wrts []temporaliov1alpha1.WorkerResourceTemplate
2997+ wrts []temporaliov1alpha1.WorkerResourceTemplate
29982998 k8sState * k8s.DeploymentState
29992999 expectCount int
30003000 }{
30013001 {
3002- name : "no WRTs produces no applies" ,
3002+ name : "no WRTs produces no applies" ,
30033003 wrts : nil ,
30043004 k8sState : & k8s.DeploymentState {
30053005 Deployments : map [string ]* appsv1.Deployment {
@@ -3077,7 +3077,7 @@ func TestGetOwnedResourceApplies(t *testing.T) {
30773077 ObjectMeta : metav1.ObjectMeta {Name : "nil-raw" , Namespace : "default" },
30783078 Spec : temporaliov1alpha1.WorkerResourceTemplateSpec {
30793079 TemporalWorkerDeploymentRef : temporaliov1alpha1.TemporalWorkerDeploymentReference {Name : "my-worker" },
3080- Template : runtime.RawExtension {Raw : nil },
3080+ Template : runtime.RawExtension {Raw : nil },
30813081 },
30823082 },
30833083 createTestWRT ("my-hpa" , "my-worker" ),
@@ -3181,7 +3181,7 @@ func createTestWRT(name, workerDeploymentRefName string) temporaliov1alpha1.Work
31813181 },
31823182 Spec : temporaliov1alpha1.WorkerResourceTemplateSpec {
31833183 TemporalWorkerDeploymentRef : temporaliov1alpha1.TemporalWorkerDeploymentReference {Name : workerDeploymentRefName },
3184- Template : runtime.RawExtension {Raw : raw },
3184+ Template : runtime.RawExtension {Raw : raw },
31853185 },
31863186 }
31873187}
@@ -3224,7 +3224,7 @@ func TestGetOwnedResourceApplies_MatchLabelsInjection(t *testing.T) {
32243224 ObjectMeta : metav1.ObjectMeta {Name : "my-pdb" , Namespace : "default" },
32253225 Spec : temporaliov1alpha1.WorkerResourceTemplateSpec {
32263226 TemporalWorkerDeploymentRef : temporaliov1alpha1.TemporalWorkerDeploymentReference {Name : "my-worker" },
3227- Template : runtime.RawExtension {Raw : raw },
3227+ Template : runtime.RawExtension {Raw : raw },
32283228 },
32293229 }
32303230
@@ -3267,7 +3267,7 @@ func TestGetOwnedResourceApplies_GoTemplateRendering(t *testing.T) {
32673267 ObjectMeta : metav1.ObjectMeta {Name : "my-monitor" , Namespace : "k8s-production" },
32683268 Spec : temporaliov1alpha1.WorkerResourceTemplateSpec {
32693269 TemporalWorkerDeploymentRef : temporaliov1alpha1.TemporalWorkerDeploymentReference {Name : "my-worker" },
3270- Template : runtime.RawExtension {Raw : raw },
3270+ Template : runtime.RawExtension {Raw : raw },
32713271 },
32723272 }
32733273
@@ -3304,7 +3304,7 @@ func createTestWRTWithInvalidTemplate(name, workerDeploymentRefName string) temp
33043304 },
33053305 Spec : temporaliov1alpha1.WorkerResourceTemplateSpec {
33063306 TemporalWorkerDeploymentRef : temporaliov1alpha1.TemporalWorkerDeploymentReference {Name : workerDeploymentRefName },
3307- Template : runtime.RawExtension {Raw : raw },
3307+ Template : runtime.RawExtension {Raw : raw },
33083308 },
33093309 }
33103310}
0 commit comments