Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Upgrade images used in the samples and e2e tests for deployImage plugin #3849

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/e2e/deployimage/plugin_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var _ = Describe("kubebuilder", func() {
"--version", kbc.Version,
"--kind", kbc.Kind,
"--plugins", "deploy-image/v1-alpha",
"--image", "memcached:1.4.36-alpine",
"--image", "memcached:1.6.26-alpine3.19",
"--image-container-port", "11211",
"--image-container-command", "memcached,-m=64,-o,modern,-v",
"--run-as-user", "1001",
Expand Down Expand Up @@ -128,7 +128,7 @@ var _ = Describe("kubebuilder", func() {
"--version", kbc.Version,
"--kind", kbc.Kind,
"--plugins", "deploy-image/v1-alpha",
"--image", "busybox:1.28",
"--image", "busybox:1.36.1",
"--make=false",
"--manifests=false",
)
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function delete_cluster {
function test_cluster {
local flags="$@"

docker pull memcached:1.6.23-alpine
kind load docker-image --name $KIND_CLUSTER memcached:1.6.23-alpine
docker pull memcached:1.6.26-alpine3.19
kind load docker-image --name $KIND_CLUSTER memcached:1.6.26-alpine3.19

docker pull busybox:1.36.1
kind load docker-image --name $KIND_CLUSTER busybox:1.36.1
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function scaffold_test_project {
fi
elif [[ $project =~ deploy-image ]]; then
header_text 'Creating Memcached API with deploy-image plugin ...'
$kb create api --group example.com --version v1alpha1 --kind Memcached --image=memcached:1.4.36-alpine --image-container-command="memcached,-m=64,-o,modern,-v" --image-container-port="11211" --run-as-user="1001" --plugins="deploy-image/v1-alpha" --make=false
$kb create api --group example.com --version v1alpha1 --kind Busybox --image=busybox:1.28 --plugins="deploy-image/v1-alpha" --make=false
$kb create api --group example.com --version v1alpha1 --kind Memcached --image=memcached:memcached:1.6.26-alpine3.19 --image-container-command="memcached,-m=64,-o,modern,-v" --image-container-port="11211" --run-as-user="1001" --plugins="deploy-image/v1-alpha" --make=false
$kb create api --group example.com --version v1alpha1 --kind Busybox --image=busybox:1.36.1 --plugins="deploy-image/v1-alpha" --make=false
header_text 'Creating Memcached webhook ...'
$kb create webhook --group example.com --version v1alpha1 --kind Memcached --programmatic-validation
fi
Expand Down
4 changes: 2 additions & 2 deletions testdata/project-v4-with-deploy-image/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ plugins:
options:
containerCommand: memcached,-m=64,-o,modern,-v
containerPort: "11211"
image: memcached:1.4.36-alpine
image: memcached:memcached:1.6.26-alpine3.19
runAsUser: "1001"
version: v1alpha1
- domain: testproject.org
group: example.com
kind: Busybox
options:
image: busybox:1.28
image: busybox:1.36.1
version: v1alpha1
projectName: project-v4-with-deploy-image
repo: sigs.k8s.io/kubebuilder/testdata/project-v4-with-deploy-image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ spec:
name: manager
env:
- name: BUSYBOX_IMAGE
value: busybox:1.28
value: busybox:1.36.1
- name: MEMCACHED_IMAGE
value: memcached:1.4.36-alpine
value: memcached:memcached:1.6.26-alpine3.19
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
4 changes: 2 additions & 2 deletions testdata/project-v4-with-deploy-image/dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,9 @@ spec:
- /manager
env:
- name: BUSYBOX_IMAGE
value: busybox:1.28
value: busybox:1.36.1
- name: MEMCACHED_IMAGE
value: memcached:1.4.36-alpine
value: memcached:memcached:1.6.26-alpine3.19
image: controller:latest
livenessProbe:
httpGet:
Expand Down
Loading