Skip to content
Open
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
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

env:
BINK_COMMIT: c7c4013e1275f07fe6ee90be92b61d256117460f
RELEASED_OPERATOR_TAG: v0.1.1

permissions:
contents: read
Expand Down Expand Up @@ -115,17 +114,13 @@ jobs:

- name: Deploy to bink cluster
run: make deploy-bink
env:
RELEASED_OPERATOR_IMG: ghcr.io/${{ github.repository }}:${{ env.RELEASED_OPERATOR_TAG }}

- name: Gather deploy logs
if: failure()
run: make gather-bink

- name: Run e2e tests
run: make e2e V=1
env:
RELEASED_OPERATOR_IMG: ghcr.io/${{ github.repository }}:${{ env.RELEASED_OPERATOR_TAG }}

- name: Upload logs
if: always()
Expand Down
111 changes: 0 additions & 111 deletions .github/workflows/helm.yaml

This file was deleted.

33 changes: 16 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ BINK_NODE_DISK_IMAGE ?= ghcr.io/bootc-dev/bink/node:v$(DEFAULT_KUBE_MINOR)-fedor
BINK_LOCAL_REGISTRY_NODE_IMAGE ?= registry.cluster.local:5000/node
E2E_REGISTRY_USER ?= e2e-user
E2E_REGISTRY_PASSWORD ?= e2e-password
# Released operator for upgrade testing (set to run TestOperatorUpgrade).
# RELEASED_OPERATOR_TAG: GitHub release tag to download install.yaml from.
# RELEASED_OPERATOR_IMG: container image to use (defaults to upstream, override for downstream).
# Example: RELEASED_OPERATOR_TAG=v0.1.0
# RELEASED_OPERATOR_IMG=ghcr.io/bootc-dev/bootc-operator:v0.1.0
RELEASED_OPERATOR_TAG ?=
RELEASED_OPERATOR_IMG ?=
# Released operator for upgrade testing (TestOperatorUpgrade).
# Override RELEASED_OPERATOR_IMG for downstream images.
RELEASED_OPERATOR_TAG ?= v0.2.1
RELEASED_OPERATOR_IMG ?= ghcr.io/bootc-dev/bootc-operator:$(RELEASED_OPERATOR_TAG)
IMG_BINK_RELEASED ?= registry.cluster.local:5000/bootc-operator-released:latest
# YEAR defines the year value used for substituting the YEAR placeholder in the boilerplate header.
YEAR ?= $(shell date +%Y)
Expand Down Expand Up @@ -245,17 +242,19 @@ start-bink: seed-node-image ## Start a bink cluster (idempotent).
kubectl --kubeconfig $(KUBECONFIG_BINK) wait --for=condition=Ready node/controller --timeout=5m

.PHONY: deploy-bink
deploy-bink: start-bink build-update-image $(if $(RELEASED_OPERATOR_IMG),push-released-operator-image) kustomize ## Deploy to a bink cluster (requires: buildimg).
deploy-bink: start-bink build-update-image $(if $(RELEASED_OPERATOR_IMG),push-released-operator-image) helm ## Deploy to a bink cluster (requires: buildimg).
podman push --tls-verify=false $(IMG) localhost:5000/bootc-operator-e2e:latest
# On re-deploy, restart the rollout to force a re-pull of the :latest tag.
# On fresh deploy, skip the restart -- the pod is already pulling the correct image.
@existed=$$(kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator get deploy bootc-operator-controller-manager -o name 2>/dev/null || true) && \
$(MAKE) deploy KUBECONFIG=$(abspath $(KUBECONFIG_BINK)) IMG=$(IMG_BINK) \
MANAGER_EXTRA_ARGS='"--allow-insecure-registry","--tag-resolution-interval=10s"' && \
if [ -n "$$existed" ]; then \
kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator rollout restart deployment/bootc-operator-controller-manager; \
fi
kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator rollout status deployment/bootc-operator-controller-manager --timeout=3m
helm dependency build ./chart/bootc-operator
img="$(IMG_BINK)" && \
helm upgrade --install bootc-operator ./chart/bootc-operator \
--kubeconfig $(abspath $(KUBECONFIG_BINK)) \
--create-namespace --namespace bootc-operator \
--set image.repository="$${img%:*}" \
--set image.tag="$${img##*:}" \
--set image.pullPolicy=Always \
--set-json 'controller.extraArgs=["--allow-insecure-registry","--tag-resolution-interval=10s"]'
kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator rollout restart deployment/bootc-operator-controller
kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator rollout status deployment/bootc-operator-controller --timeout=3m

.PHONY: gather-bink
gather-bink: ## Gather diagnostic logs from the bink cluster.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/bootcnode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func scaleController(t *testing.T, env *e2eutil.Env, ctx context.Context, replic
g := NewWithT(t)
deployKey := client.ObjectKey{
Namespace: testutil.OperatorNamespaceName,
Name: "bootc-operator-controller-manager",
Name: "bootc-operator-controller",
}

var deploy appsv1.Deployment
Expand Down
Loading
Loading