Skip to content

Commit 021d9f3

Browse files
authored
Small local dev workflow improvements (#105)
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
1 parent 8c4255b commit 021d9f3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Current Operator version
2-
VERSION ?= "$(shell git describe --tags | grep -Po "([\d\.]+)")" ## version, without the 'v' prefix
2+
VERSION ?= "$(shell git describe --tags | sed 's/^v//')"
33
VERSION_DATE ?= $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
44
VERSION_PKG ?= "github.com/open-telemetry/opentelemetry-operator/internal/version"
55
OTELCOL_VERSION ?= "$(shell grep -v '\#' versions.txt | grep opentelemetry-collector | awk -F= '{print $$2}')"
@@ -18,7 +18,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
1818

1919
# Image URL to use all building/pushing image targets
2020
IMG_PREFIX ?= quay.io/${USER}
21-
IMG ?= ${IMG_PREFIX}:${VERSION}
21+
IMG_REPO ?= opentelemetry-operator
22+
IMG ?= ${IMG_PREFIX}/${IMG_REPO}:${VERSION}
2223

2324
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
2425
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
@@ -103,6 +104,9 @@ docker-push:
103104

104105
cert-manager:
105106
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.16.1/cert-manager.yaml
107+
kubectl wait --for=condition=available deployment cert-manager -n cert-manager
108+
kubectl wait --for=condition=available deployment cert-manager-cainjector -n cert-manager
109+
kubectl wait --for=condition=available deployment cert-manager-webhook -n cert-manager
106110

107111
# find or download controller-gen
108112
# download controller-gen if necessary

pkg/collector/reconcile/deployment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func expectedDeployments(ctx context.Context, params Params, expected []appsv1.D
9292
if err := params.Client.Patch(ctx, updated, patch); err != nil {
9393
return fmt.Errorf("failed to apply changes: %w", err)
9494
}
95-
95+
9696
params.Log.V(2).Info("applied", "deployment.name", desired.Name, "deployment.namespace", desired.Namespace)
9797
}
9898

0 commit comments

Comments
 (0)