Compare commits

...

13 Commits

Author SHA1 Message Date
Hristo Hristov
772fb2a8c2 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-06 12:23:42 +03:00
Hristo Hristov
48030ffe2e feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-06 12:22:35 +03:00
Hristo Hristov
11f1b13f5b feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-06 12:13:14 +03:00
Hristo Hristov
8a0bc42776 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 16:35:27 +03:00
Hristo Hristov
dea77f4dc6 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 16:26:29 +03:00
Hristo Hristov
ad9bc5a554 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 15:30:49 +03:00
Hristo Hristov
9ad218a06c feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 15:23:46 +03:00
Hristo Hristov
72dab64be2 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 15:19:31 +03:00
Hristo Hristov
83fb10d39e feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-03 15:10:10 +03:00
Hristo Hristov
90905f74d7 feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-01 12:32:49 +03:00
Hristo Hristov
e3d4f8c4ce feat: add e2e-minishift Makefile target and workflow job
Signed-off-by: Hristo Hristov <me@hhristov.info>
2026-04-01 12:25:24 +03:00
copilot-swe-agent[bot]
20ee2e7b01 feat: add e2e-minishift Makefile target and workflow job
Agent-Logs-Url: https://github.com/projectcapsule/capsule/sessions/16188b87-3dc5-4033-960e-5435de48131f

Co-authored-by: Svarrogh1337 <16626420+Svarrogh1337@users.noreply.github.com>
2026-04-01 08:57:52 +00:00
renovate[bot]
e1ec9de6f5 chore(deps): update anchore/sbom-action digest to e22c389 (#1888)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-24 10:31:19 +01:00
4 changed files with 80 additions and 2 deletions

View File

@@ -65,3 +65,19 @@ jobs:
- name: e2e (Enterprise)
run: sudo KUBERNETES_SUPPORTED_VERSION=${{ matrix.k8s-version }} make e2e
e2e-openshift:
name: E2E Testing (MINC)
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
- name: e2e
run: sudo make e2e-openshift

View File

@@ -30,7 +30,7 @@ jobs:
timeout-minutes: 5
continue-on-error: true
- uses: creekorful/goreportcard-action@1f35ced8cdac2cba28c9a2f2288a16aacfd507f9 # v1.0
- uses: anchore/sbom-action/download-syft@a0a65128ee20bfc2cba8a1e7fc6ca46a88149706
- uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610
- name: Install Cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
- name: Run GoReleaser

View File

@@ -189,6 +189,7 @@ dev-setup:
./charts/capsule || true
setup-monitoring: dev-setup-fluxcd
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/monitoring | envsubst | kubectl apply -f -
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/monitoring/dashboards | kubectl apply -f -
@$(MAKE) wait-for-helmreleases
@@ -210,7 +211,14 @@ dev-setup-cert-manager:
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/cert-manager | envsubst | kubectl apply -f -
dev-setup-fluxcd:
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/fluxcd | envsubst | kubectl apply -f -
if [ "$$DISTRO" = "openshift" ]; then \
echo "Running OpenShift"; \
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/overlays/openshift | envsubst | kubectl apply -f -
else \
echo "Other distro"; \
@$(KUBECTL) kustomize --load-restrictor='LoadRestrictionsNone' hack/distro/fluxcd | envsubst | kubectl apply -f -
fi
# Here to setup the current capsule version
@@ -345,7 +353,19 @@ golint: golangci-lint
golint-fix: golangci-lint
$(GOLANGCI_LINT) run -c .golangci.yaml --verbose --fix
.PHONY: e2e-openshift
e2e-openshift: ginkgo
$(MAKE) e2e-build-openshift && $(MAKE) e2e-exec && $(MAKE) e2e-destroy-openshift
e2e-build-openshift: minc
export DISTRO=openshift
$(MINC) config set provider docker
$(MINC) create --disable-overlay-cache true
$(MINC) status
$(MAKE) dev-install-deps
$(MAKE) e2e-install
e2e-destroy-openshift: minc
$(MINC) delete
# Running e2e tests in a KinD instance
.PHONY: e2e
e2e: ginkgo
@@ -472,6 +492,13 @@ ct:
@test -s $(CT) && $(CT) version | grep -q $(CT_VERSION) || \
$(call go-install-tool,$(CT),github.com/$(CT_LOOKUP)/v3/ct@$(CT_VERSION))
MINC:= $(LOCALBIN)/minc
MINC_VERSION := v0.1.0
MINC_LOOKUP := minc-org/minc
minc:
echo "Installing minc to $(MINC)" && \
$(call go-install-tool,$(MINC),github.com/$(MINC_LOOKUP)/cmd/minc@$(MINC_VERSION))
KIND := $(LOCALBIN)/kind
KIND_VERSION := v0.31.0
KIND_LOOKUP := kubernetes-sigs/kind

View File

@@ -0,0 +1,35 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../fluxcd
patches:
- target:
kind: Deployment
labelSelector: app.kubernetes.io/part-of=flux
patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: not-used-with-target
spec:
template:
spec:
securityContext:
$patch: delete
containers:
- name: manager
securityContext:
runAsUser: 65534
seccompProfile:
$patch: delete
- target:
kind: Namespace
labelSelector: app.kubernetes.io/part-of=flux
patch: |-
- op: remove
path: /metadata/labels/pod-security.kubernetes.io~1warn
- op: remove
path: /metadata/labels/pod-security.kubernetes.io~1warn-version