Skip to content

Commit

Permalink
reset
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Rae Kim <[email protected]>
  • Loading branch information
yiraeChristineKim committed Nov 14, 2023
1 parent 3416d53 commit f5bce2c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/olm_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# TODO: Use operator-sdk run bundle and bundle-upgrade commands for
# testing with OLM.
OPERATOR_VERSION=$(awk '/^VERSION \?=/ {print $3}' Makefile)
REPO=http://localhost:5000
REPO=localhost:5000
IMG=${REPO}/gatekeeper-operator:${GITHUB_SHA}
PREV_BUNDLE_INDEX_IMG=quay.io/gatekeeper/gatekeeper-operator-bundle-index:$(make get-replaces-version)
make build-and-push-bundle-images IMG=${IMG} REPO=${REPO} VERSION=${GITHUB_SHA} OPERATOR_VERSION=${OPERATOR_VERSION}
Expand All @@ -58,7 +58,7 @@ jobs:
echo "Waiting for operator deployment"; \
sleep 2; \
done
kubectl -n mygatekeeper wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s
kubectl -n mygatekeeper wait pod -l olm.catalogSource=gatekeeper-operator --for condition=ready --timeout=300s
- name: E2E Tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DOCKER ?= docker
#
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
# gatekeeper.sh/gatekeeper-operator-bundle:$VERSION and gatekeeper.sh/gatekeeper-operator-catalog:$VERSION.
REPO ?= localhost:5000
REPO ?= quay.io/gatekeeper
IMAGE_TAG_BASE ?= $(REPO)/gatekeeper-operator

# BUNDLE_IMG defines the image:tag used for the bundle.
Expand Down Expand Up @@ -376,7 +376,7 @@ endif
# Generate and push bundle image and bundle index image
# Note: OPERATOR_VERSION is an arbitrary number and does not need to match any official versions
.PHONY: build-and-push-bundle-images
build-and-push-bundle-images: # docker-build docker-push
build-and-push-bundle-images: #docker-build docker-push
$(MAKE) bundle VERSION=$(OPERATOR_VERSION)
$(MAKE) bundle-build
$(MAKE) docker-push IMG=$(BUNDLE_IMG)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ spec:
env:
- name: RELATED_IMAGE_GATEKEEPER
value: openpolicyagent/gatekeeper:v3.11.1
image: localhost:5000/gatekeeper-operator:v3.11.1
image: quay.io/gatekeeper/gatekeeper-operator:v3.11.1
imagePullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: localhost:5000/gatekeeper-operator
newName: quay.io/gatekeeper/gatekeeper-operator
newTag: v3.11.1
20 changes: 13 additions & 7 deletions config/olm-install/install-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,38 @@
apiVersion: v1
kind: Namespace
metadata:
name: mygatekeeper
name: gatekeeper-system
labels:
pod-security.kubernetes.io/audit: baseline
pod-security.kubernetes.io/audit-version: latest
pod-security.kubernetes.io/enforce: baseline
pod-security.kubernetes.io/warn: baseline
pod-security.kubernetes.io/warn-version: latest
---
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: gatekeeper-operator
namespace: mygatekeeper
namespace: gatekeeper-system
spec:
displayName: Gatekeeper Operator Upstream
image: 'quay.io/gatekeeper/gatekeeper-operator-bundle-index:latest'
image: 'quay.io/yikim/gatekeeper-operator-bundle-index:v3.11.1'
publisher: github.com/gatekeeper/gatekeeper-operator
sourceType: grpc
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: gatekeeper-operator
namespace: mygatekeeper
namespace: gatekeeper-system
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: gatekeeper-operator-sub
namespace: mygatekeeper
namespace: gatekeeper-system
spec:
name: gatekeeper-operator
channel: "3.11"
channel: stable
source: gatekeeper-operator
sourceNamespace: mygatekeeper
sourceNamespace: gatekeeper-system

0 comments on commit f5bce2c

Please sign in to comment.