Skip to content

Commit f52ec36

Browse files
authored
Add retry to the test port forwarder (#714)
1 parent f39d0fa commit f52ec36

29 files changed

+113
-2225
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ test/**/test-report.xml
5555
/hack/sdk/*
5656

5757
# Generated file created by the build
58+
api/**/zz_*.go
5859
bundle.Dockerfile
5960
/__debug_bin
6061
hack/istio*/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ TEST_APPLICATION_IMAGE_SPRING_CNBP := $(OPERATOR_IMAGE_REGISTRY)/operator-test
152152
TEST_APPLICATION_IMAGE_SPRING_2 := $(OPERATOR_IMAGE_REGISTRY)/operator-test-spring-2:1.0.0
153153
TEST_APPLICATION_IMAGE_SPRING_FAT_2 := $(OPERATOR_IMAGE_REGISTRY)/operator-test-spring-fat-2:1.0.0
154154
TEST_APPLICATION_IMAGE_SPRING_CNBP_2 := $(OPERATOR_IMAGE_REGISTRY)/operator-test-spring-cnbp-2:1.0.0
155-
SKIP_SPRING_CNBP := false
155+
SKIP_SPRING_CNBP ?= false
156156

157157
# ----------------------------------------------------------------------------------------------------------------------
158158
# Operator Lifecycle Manager properties
@@ -2526,6 +2526,7 @@ push-test-images:
25262526
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_HELIDON_2)
25272527
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_HELIDON_3)
25282528
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_SPRING)
2529+
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_SPRING_2)
25292530
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_SPRING_FAT)
25302531
$(DOCKER_CMD) push $(PUSH_ARGS) $(TEST_APPLICATION_IMAGE_SPRING_FAT_2)
25312532
ifneq (true,$(SKIP_SPRING_CNBP))

api/v1/coherenceresourcespec_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ func (in *CoherenceResourceSpec) CreateDefaultEnv(deployment CoherenceResource)
996996
corev1.EnvVar{Name: EnvVarCohHealthPort, Value: Int32ToString(in.GetHealthPort())},
997997
corev1.EnvVar{Name: EnvVarCoherenceTTL, Value: "0"},
998998
corev1.EnvVar{Name: EnvVarCohCtlHome, Value: VolumeMountPathUtils},
999+
corev1.EnvVar{Name: EnvVarCohResourceName, Value: deployment.GetName()},
9991000
)
10001001

10011002
ann := deployment.GetAnnotations()

api/v1/common_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ func createMinimalExpectedPodSpec(deployment coh.CoherenceResource) corev1.PodTe
373373
Name: "COHERENCE_IPMONITOR_PINGTIMEOUT",
374374
Value: "0",
375375
},
376+
{
377+
Name: coh.EnvVarCohResourceName,
378+
Value: deployment.GetName(),
379+
},
376380
}
377381

378382
if deployment.GetType() == coh.CoherenceTypeJob {

api/v1/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ const (
219219
EnvVarCohSkipVersionCheck = "COHERENCE_OPERATOR_SKIP_VERSION_CHECK"
220220
EnvVarCohPodUID = "COHERENCE_OPERATOR_POD_UID"
221221
EnvVarCohIdentity = "COHERENCE_OPERATOR_IDENTITY"
222+
EnvVarCohResourceName = "COHERENCE_OPERATOR_RESOURCE_NAME"
222223
EnvVarCohAppDir = "COHERENCE_OPERATOR_APP_DIR"
223224
EnvVarCohSkipSite = "COHERENCE_OPERATOR_SKIP_SITE"
224225
EnvVarCohSite = "COHERENCE_OPERATOR_SITE_INFO_LOCATION"

0 commit comments

Comments
 (0)