-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
283 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
.github/workflows/composites/restore-docker-images/action.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: restore-docker-images | ||
description: upload docker images | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: restore images if cache matches | ||
uses: actions/cache/restore@v4 | ||
id: images-cache | ||
with: | ||
path: /tmp/docker/images | ||
key: docker-images-github-cache-${{ hashFiles('**/current-images.txt') }} | ||
|
||
- name: pull docker images | ||
shell: bash | ||
if: steps.images-cache.outputs.cache-hit != 'true' | ||
run: | | ||
echo 'start pulling common images' | ||
mkdir -p /tmp/docker/images | ||
result=$(find . -name 'current-images.txt') | ||
while read line; do | ||
docker pull "$line" | ||
replace_slash=$(tr '/' '-' <<< "$line") | ||
docker save "${line}" > "/tmp/docker/images/${replace_slash}.tar" | ||
done <$result | ||
- name: save docker images | ||
id: save-docker-images | ||
uses: actions/cache/save@v4 | ||
if: steps.images-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: | | ||
/tmp/docker/images | ||
key: docker-images-github-cache-${{ hashFiles('**/current-images.txt') }} | ||
|
||
- name: print images | ||
shell: bash | ||
run: | | ||
echo 'printing images' | ||
ls /tmp/docker/images | ||
19 changes: 0 additions & 19 deletions
19
.github/workflows/composites/upload-docker-images/action.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,14 +35,14 @@ | |
import reactor.util.retry.RetryBackoffSpec; | ||
|
||
import org.springframework.cloud.kubernetes.integration.tests.commons.Commons; | ||
import org.springframework.cloud.kubernetes.integration.tests.commons.Images; | ||
import org.springframework.cloud.kubernetes.integration.tests.commons.Phase; | ||
import org.springframework.cloud.kubernetes.integration.tests.commons.fabric8_client.Util; | ||
import org.springframework.http.HttpMethod; | ||
import org.springframework.http.client.reactive.ReactorClientHttpConnector; | ||
import org.springframework.web.reactive.function.client.WebClient; | ||
|
||
import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.processExecResult; | ||
import static org.springframework.cloud.kubernetes.integration.tests.commons.fabric8_client.Util.ISTIO_ISTIOCTL; | ||
|
||
/** | ||
* @author wind57 | ||
|
@@ -53,10 +53,6 @@ class Fabric8IstioIT { | |
|
||
private static final String IMAGE_NAME = "spring-cloud-kubernetes-fabric8-client-istio"; | ||
|
||
private static final String ISTIO_PROXY = "istio/proxyv2"; | ||
|
||
private static final String ISTIO_PILOT = "istio/pilot"; | ||
|
||
private static Util util; | ||
|
||
private static K3sContainer K3S; | ||
|
@@ -69,12 +65,7 @@ static void beforeAll() throws Exception { | |
Commons.validateImage(IMAGE_NAME, K3S); | ||
Commons.loadSpringCloudKubernetesImage(IMAGE_NAME, K3S); | ||
|
||
Commons.pullImage(ISTIO_ISTIOCTL, Commons.ISTIO_VERSION, K3S); | ||
Commons.loadImage(ISTIO_ISTIOCTL, Commons.ISTIO_VERSION, "istioctl", K3S); | ||
Commons.pullImage(ISTIO_PROXY, Commons.ISTIO_VERSION, K3S); | ||
Commons.loadImage(ISTIO_PROXY, Commons.ISTIO_VERSION, "istioproxy", K3S); | ||
Commons.pullImage(ISTIO_PILOT, Commons.ISTIO_VERSION, K3S); | ||
Commons.loadImage(ISTIO_PILOT, Commons.ISTIO_VERSION, "istiopilot", K3S); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ryanjbaxter
Contributor
|
||
Images.loadIstioctl(K3S); | ||
|
||
processExecResult(K3S.execInContainer("sh", "-c", "kubectl create namespace istio-test")); | ||
processExecResult( | ||
|
@@ -127,6 +118,7 @@ private static void appManifests(Phase phase) { | |
InputStream ingressStream = util.inputStream("istio-ingress.yaml"); | ||
|
||
Deployment deployment = Serialization.unmarshal(deploymentStream, Deployment.class); | ||
|
||
Service service = Serialization.unmarshal(serviceStream, Service.class); | ||
Ingress ingress = Serialization.unmarshal(ingressStream, Ingress.class); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@wind57 I think we need to revert this and go back to loading the images into the container. This causes a problem for us on Jenkins where k8s is not authenticated and eventually runs into 429 errors from docker hub.
Pulling and loading the images in the test avoids this