Skip to content

Commit

Permalink
enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Aug 2, 2024
1 parent 307899c commit ed26024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .github/actions/make-bundle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ inputs:
required: false
default: ""
server:
description: "image uri for tackle-hub (ie. ghcr.io/<namespace>/<image-name>:<tag>)"
description: "image uri for trustify server (ie. ghcr.io/<namespace>/<image-name>:<tag>)"
required: false
default: ""
server_postgres:
description: "image uri for tackle-postgres (ie. ghcr.io/<namespace>/<image-name>:<tag>)"
description: "image uri for trustify postgres (ie. ghcr.io/<namespace>/<image-name>:<tag>)"
required: false
default: ""
version:
Expand Down
45 changes: 0 additions & 45 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,8 @@ IMAGE_TAG_BASE ?= $(IMAGE_ORG)/trustify-operator
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)

# BUNDLE_GEN_FLAGS are the flags passed to the operator-sdk generate bundle command
BUNDLE_GEN_FLAGS ?= -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)

HELM_RELEASE ?= my-trustify-release
NAMESPACE ?= trustify

# USE_IMAGE_DIGESTS defines if images are resolved via tags or digests
# You can enable this value if you would like to use SHA Based Digests
# To enable set flag to true
USE_IMAGE_DIGESTS ?= false
ifeq ($(USE_IMAGE_DIGESTS), true)
BUNDLE_GEN_FLAGS += --use-image-digests
endif

# Image URL to use all building/pushing image targets
IMG ?= $(IMAGE_ORG)/trustify-operator:latest

Expand Down Expand Up @@ -201,36 +189,3 @@ install-trustify:
.PHONY: install-trustify-bundle
install-trustify-bundle:
bash hack/install-trustify-bundle.sh

YQ = $(shell pwd)/bin/yq
.PHONY: yq
yq:
ifeq (,$(wildcard $(YQ)))
ifeq (,$(shell which yq 2>/dev/null))
@{ \
set -e ;\
mkdir -p $(dir $(YQ)) ;\
curl -L https://github.com/mikefarah/yq/releases/download/v4.13.5/yq_$(OS)_$(ARCH) -o $(YQ) ;\
chmod +x $(YQ) ;\
}
else
YQ = $(shell which yq)
endif
endif

OPENSHIFT_CLIENT = $(shell pwd)/bin/oc
.PHONY: openshift-client
openshift-client:
ifeq (,$(wildcard $(OPENSHIFT_CLIENT)))
ifeq (,$(shell which oc 2>/dev/null))
@{ \
set -e ;\
mkdir -p $(dir $(OPENSHIFT_CLIENT)) ;\
curl -L https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-$(subst darwin,mac,$(OS))-$(ARCH).tar.gz -o $(dir $(OPENSHIFT_CLIENT))openshift-client.tar.gz ;\
tar zxf $(dir $(OPENSHIFT_CLIENT))openshift-client.tar.gz -C $(dir $(OPENSHIFT_CLIENT)) ;\
rm $(dir $(OPENSHIFT_CLIENT))openshift-client.tar.gz ;\
}
else
OPENSHIFT_CLIENT = $(shell which oc)
endif
endif

0 comments on commit ed26024

Please sign in to comment.