Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: have renovate update Makefile dependencies #431

Merged
merged 12 commits into from
Nov 17, 2022
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: '.ci/mlc_config.json'
config-file: '.github/mlc_config.json'
use-verbose-mode: true
use-quiet-mode: true
folder-path: 'examples'
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Image URL to use all building/pushing image targets

# renovate: datasource=github-releases depName=cert-manager/cert-manager
CERT_MANAGER_VERSION ?= v1.8.0
TAG ?= "$(shell date +%Y%m%d%s)"
TAG := $(TAG)
Expand Down
5 changes: 4 additions & 1 deletion examples/argo/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
LFC_NAMESPACE ?= keptn-lifecycle-toolkit-system
PODTATO_NAMESPACE ?= podtato-kubectl
ARGO_NAMESPACE ?= argocd
# renovate: datasource=github-tags depName=argoproj/argo-cd
ARGO_VERSION ?= 2.4.14
# renovate: datasource=github-tags depName=cert-manager/cert-manager
CERT_MANAGER_VERSION ?= v1.10.0
ARGO_SECRET = $(shell kubectl -n ${ARGO_NAMESPACE} get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo)

.PHONY: install
install:
@echo "-----------------------------------"
@echo "Create Namespace and install Keptn-lifecycle-toolkit"
@echo "-----------------------------------"
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MANAGER_VERSION)/cert-manager.yaml
kubectl wait --for=condition=available deployment/cert-manager -n cert-manager --timeout=300s
kubectl apply -f https://github.com/keptn/lifecycle-toolkit/releases/download/v0.4.0/manifest.yaml #x-release-please-version
kubectl wait --for=condition=available deployment/klc-controller-manager -n keptn-lifecycle-toolkit-system --timeout=300s
Expand Down
3 changes: 1 addition & 2 deletions examples/flux/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
JAEGER_VERSION ?= v1.38.0
LFC_NAMESPACE ?= keptn-lifecycle-toolkit-system
PODTATO_NAMESPACE ?= podtato-kubectl
REPO_PATH ?= flux-demo
Expand Down Expand Up @@ -67,4 +66,4 @@ uninstall: check-flux-binary
@echo "----------------------------------------"
@echo "Uninstalling flux"
@echo "----------------------------------------"
flux uninstall
flux uninstall
3 changes: 2 additions & 1 deletion examples/kubecon-na-22-demo/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# renovate: datasource=github-tags depName=jaegertracing/jaeger
JAEGER_VERSION ?= v1.38.0
LFC_NAMESPACE ?= keptn-lifecycle-controller-system
PODTATO_NAMESPACE ?= podtato-kubectl
Expand Down Expand Up @@ -40,4 +41,4 @@ undeploy-podtatohead:

.PHONY: uninstall
uninstall: undeploy-podtatohead
make -C ../observability uninstall
make -C ../observability uninstall
5 changes: 4 additions & 1 deletion examples/observability/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# renovate: datasource=github-tags depName=jaegertracing/jaeger
JAEGER_VERSION ?= v1.38.0
# renovate: datasource=github-tags depName=cert-manager/cert-manager
CERT_MANAGER_VERSION?=v1.10.0
mowies marked this conversation as resolved.
Show resolved Hide resolved
TOOLKIT_NAMESPACE ?= keptn-lifecycle-toolkit-system
PODTATO_NAMESPACE ?= podtato-kubectl
GRAFANA_PORT_FORWARD ?= 3000
Expand All @@ -8,7 +11,7 @@ install:undeploy-podtatohead
@echo "-----------------------------------"
@echo "Create Namespace and install Keptn-lifecycle-toolkit"
@echo "-----------------------------------"
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MANAGER_VERSION)/cert-manager.yaml
kubectl wait --for=condition=available deployment/cert-manager -n cert-manager --timeout=300s
kubectl apply -f https://github.com/keptn/lifecycle-toolkit/releases/download/v0.4.0/manifest.yaml #x-release-please-version
kubectl wait --for=condition=available deployment/klc-controller-manager -n keptn-lifecycle-toolkit-system --timeout=300s
Expand Down
12 changes: 7 additions & 5 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ BUILDENVVAR=CGO_ENABLED=0
VERSION=$(shell echo $(RELEASE_VERSION) | awk -F - '{print $$2}')

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.24.2
ENVTEST_K8S_VERSION=1.24.2

## Tool Versions
# renovate: datasource=github-tags depName=kubernetes-sigs/kustomize
KUSTOMIZE_VERSION?=v4.2.0
# renovate: datasource=github-tags depName=kubernetes-sigs/controller-tools
CONTROLLER_TOOLS_VERSION?=v0.9.2

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand Down Expand Up @@ -144,10 +150,6 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest

## Tool Versions
KUSTOMIZE_VERSION ?= v4.2.0
CONTROLLER_TOOLS_VERSION ?= v0.9.2

KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
Expand Down
17 changes: 16 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": [
"config:base",
":gitSignOff",
"schedule:nonOfficeHours",
":semanticCommitTypeAll(deps)",
":semanticCommitScope()",
"group:monorepos",
Expand All @@ -18,6 +17,10 @@
"gomodTidy",
"gomodMassage"
],
"ignorePaths": [
"**/test/**",
"**/tests/**"
],
"packageRules": [
{
"matchManagers": ["gomod"],
Expand All @@ -30,6 +33,18 @@
{
"matchManagers": ["dockerfile"],
"addLabels": ["docker"]
},
{
"matchPackageNames": ["kubernetes-sigs/kustomize"],
"extractVersion": "^kustomize/(?<version>.*)$"
}
],
"regexManagers": [
{
"fileMatch": ["(^|\\/)Makefile$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)\\s.*?_VERSION ?\\??= ?(?<currentValue>.+?)?\\s"
]
}
]
}
1 change: 1 addition & 0 deletions scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ $(LOCALBIN):
mkdir -p $(LOCALBIN)

## Tool Versions
# renovate: datasource=github-tags depName=kubernetes-sigs/kustomize
KUSTOMIZE_VERSION ?= v4.2.0

## Tool Binaries
Expand Down