mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-07-07 03:44:38 +00:00
new year update (#4)
* Bring operator to the brand new world of build and deployments. * Clean up the code and basic improvements. * More fixes, moving from python to golang worker. * fixup! More fixes, moving from python to golang worker. * fixup! fixup! More fixes, moving from python to golang worker. * fixup! fixup! fixup! More fixes, moving from python to golang worker. * fixup! fixup! fixup! fixup! More fixes, moving from python to golang worker. * fixup! fixup! fixup! fixup! fixup! More fixes, moving from python to golang worker. * fixup! fixup! fixup! fixup! fixup! fixup! More fixes, moving from python to golang worker.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
# Image URL to use all building/pushing image targets
|
||||
IMG ?= ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
||||
IMG_WORKER ?= ghcr.io/lukaszraczylo/kubernetes-images-sync-worker
|
||||
CHART_NAME = kube-images-sync-operator
|
||||
CHART_NAME = kube-images-sync
|
||||
CHART_DIR = charts/kube-images-sync-operator
|
||||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
|
||||
ENVTEST_K8S_VERSION = 1.31.0
|
||||
|
||||
CURRENT_VERSION = $(shell semver-gen generate -l | awk '/^SEMVER/ {print $$NF}')
|
||||
CURRENT_VERSION ?= $(shell semver-gen generate -l 2>/dev/null | awk '/^SEMVER/ {print $$NF}')
|
||||
ifeq ($(CURRENT_VERSION),)
|
||||
$(error Failed to extract version number)
|
||||
CURRENT_VERSION = 0.5.54
|
||||
endif
|
||||
|
||||
IMAGE_VERSION_TAG ?= $(CURRENT_VERSION)
|
||||
@@ -173,9 +174,9 @@ HELMIFY ?= helmify
|
||||
|
||||
## Tool Versions
|
||||
KUSTOMIZE_VERSION ?= v5.4.3
|
||||
CONTROLLER_TOOLS_VERSION ?= v0.16.1
|
||||
CONTROLLER_TOOLS_VERSION ?= v0.17.1
|
||||
ENVTEST_VERSION ?= release-0.19
|
||||
GOLANGCI_LINT_VERSION ?= v1.59.1
|
||||
GOLANGCI_LINT_VERSION ?= v1.62.2
|
||||
|
||||
.PHONY: print-version
|
||||
print-version:
|
||||
@@ -223,7 +224,7 @@ release-chart:
|
||||
@test -d ../helm-charts || exit 1
|
||||
rm -fr ../helm-charts/charts/${CHART_NAME} || true
|
||||
mkdir -p ../helm-charts/charts/${CHART_NAME}
|
||||
cp -R chart/* ../helm-charts/charts/${CHART_NAME}
|
||||
cp -R ${CHART_DIR}/* ../helm-charts/charts/${CHART_NAME}
|
||||
cd ../helm-charts/charts/${CHART_NAME} && \
|
||||
cr package --config ../../chart-releaser.yaml
|
||||
cd ../helm-charts && git add -A charts/packages && git commit -m "Add packaged charts" && git push
|
||||
|
||||
Reference in New Issue
Block a user