gerlowskija commented on code in PR #494:
URL: https://github.com/apache/solr-operator/pull/494#discussion_r1015886242
##########
Makefile:
##########
@@ -18,6 +18,13 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword
$(MAKEFILE_LIST))))
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
+GO_VERSION = $(shell go version | sed -r
's/^.*([0-9]+\.[0-9]+\.[0-9]+).*$$/\1/g')
+REQUIRED_GO_VERSION = $(shell cat go.mod | grep -E 'go [1-9]\.[0-9]+' | sed -r
's/^go ([0-9]+\.[0-9]+)$$/\1/g')
+
+ifeq (,$(findstring $(REQUIRED_GO_VERSION),$(GO_VERSION)))
Review Comment:
[+1] I remember we talked about this being one of the reasons people ahve
trouble running the operator smoke-tester and build, awesome to add a check in
here for it.
##########
config/crd/bases/solr.apache.org_solrbackups.yaml:
##########
@@ -63,10 +63,14 @@ spec:
description: SolrBackup is the Schema for the solrbackups API
properties:
apiVersion:
- description: 'APIVersion defines the versioned schema of this
representation of an object. Servers should convert recognized schemas to the
latest internal value, and may reject unrecognized values. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
+ description: 'APIVersion defines the versioned schema of this
representation
Review Comment:
[-0] Ugh, these reformatting changes are unfortunate. No way around them I
take it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]