Skip to content

Commit 927ea31

Browse files
joelanfordclaude
andcommitted
merge upstream main
Resolve conflicts with upstream changes: - PR #2515: ApplyConfiguration types (applier refactoring) - PR #2528: Bundle deployment configuration docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 parents 29345f6 + dee8ed5 commit 927ea31

File tree

66 files changed

+3789
-531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3789
-531
lines changed

.bingo/Variables.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ $(CONFTEST): $(BINGO_DIR)/conftest.mod
2929
@echo "(re)installing $(GOBIN)/conftest-v0.62.0"
3030
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=conftest.mod -o=$(GOBIN)/conftest-v0.62.0 "github.com/open-policy-agent/conftest"
3131

32-
CONTROLLER_GEN := $(GOBIN)/controller-gen-v0.20.0
32+
CONTROLLER_GEN := $(GOBIN)/controller-gen-v0.20.1
3333
$(CONTROLLER_GEN): $(BINGO_DIR)/controller-gen.mod
3434
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
35-
@echo "(re)installing $(GOBIN)/controller-gen-v0.20.0"
36-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=controller-gen.mod -o=$(GOBIN)/controller-gen-v0.20.0 "sigs.k8s.io/controller-tools/cmd/controller-gen"
35+
@echo "(re)installing $(GOBIN)/controller-gen-v0.20.1"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=controller-gen.mod -o=$(GOBIN)/controller-gen-v0.20.1 "sigs.k8s.io/controller-tools/cmd/controller-gen"
3737

3838
CRD_DIFF := $(GOBIN)/crd-diff-v0.5.0
3939
$(CRD_DIFF): $(BINGO_DIR)/crd-diff.mod

.bingo/controller-gen.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
22

33
go 1.25.0
44

5-
require sigs.k8s.io/controller-tools v0.20.0 // cmd/controller-gen
5+
require sigs.k8s.io/controller-tools v0.20.1 // cmd/controller-gen

.bingo/controller-gen.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ sigs.k8s.io/controller-tools v0.19.0 h1:OU7jrPPiZusryu6YK0jYSjPqg8Vhf8cAzluP9XGI
175175
sigs.k8s.io/controller-tools v0.19.0/go.mod h1:y5HY/iNDFkmFla2CfQoVb2AQXMsBk4ad84iR1PLANB0=
176176
sigs.k8s.io/controller-tools v0.20.0 h1:VWZF71pwSQ2lZZCt7hFGJsOfDc5dVG28/IysjjMWXL8=
177177
sigs.k8s.io/controller-tools v0.20.0/go.mod h1:b4qPmjGU3iZwqn34alUU5tILhNa9+VXK+J3QV0fT/uU=
178+
sigs.k8s.io/controller-tools v0.20.1 h1:gkfMt9YodI0K85oT8rVi80NTXO/kDmabKR5Ajn5GYxs=
179+
sigs.k8s.io/controller-tools v0.20.1/go.mod h1:b4qPmjGU3iZwqn34alUU5tILhNa9+VXK+J3QV0fT/uU=
178180
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE=
179181
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg=
180182
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg=

.bingo/variables.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BINGO="${GOBIN}/bingo-v0.9.0"
1212

1313
CONFTEST="${GOBIN}/conftest-v0.62.0"
1414

15-
CONTROLLER_GEN="${GOBIN}/controller-gen-v0.20.0"
15+
CONTROLLER_GEN="${GOBIN}/controller-gen-v0.20.1"
1616

1717
CRD_DIFF="${GOBIN}/crd-diff-v0.5.0"
1818

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@ manifests: update-crds $(MANIFESTS) $(HELM) #EXHELP Generate OLMv1 manifests
193193
$(HELM) template olmv1 helm/olmv1 --set "options.openshift.enabled=true" > /dev/null
194194

195195
.PHONY: generate
196-
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
197-
@find api cmd hack internal -name "zz_generated.deepcopy.go" -not -path "*/vendor/*" -delete # Need to delete the files for them to be generated properly
196+
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, DeepCopyObject, and ApplyConfiguration type implementations.
197+
# Need to delete the files for them to be generated properly
198+
@find api cmd hack internal -name "zz_generated.deepcopy.go" -not -path "*/vendor/*" -delete && rm -rf applyconfigurations
199+
$(CONTROLLER_GEN) --load-build-tags=$(GO_BUILD_TAGS) applyconfiguration:headerFile="hack/boilerplate.go.txt" paths="./api/..."
198200
$(CONTROLLER_GEN) --load-build-tags=$(GO_BUILD_TAGS) object:headerFile="hack/boilerplate.go.txt" paths="./..."
199201

200202
.PHONY: verify
@@ -317,7 +319,11 @@ test-experimental-e2e: run-internal image-registry prometheus e2e e2e-coverage k
317319
prometheus: PROMETHEUS_NAMESPACE := olmv1-system
318320
prometheus: PROMETHEUS_VERSION := v0.83.0
319321
prometheus: $(KUSTOMIZE) #EXHELP Deploy Prometheus into specified namespace
322+
ifeq ($(strip $(E2E_SUMMARY_OUTPUT)),)
323+
@echo "E2E_SUMMARY_OUTPUT unset; skipping prometheus deployment"
324+
else
320325
./hack/test/install-prometheus.sh $(PROMETHEUS_NAMESPACE) $(PROMETHEUS_VERSION) $(VERSION) $(PROMETHEUS_VALUES)
326+
endif
321327

322328
.PHONY: test-extension-developer-e2e
323329
test-extension-developer-e2e: SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST)

api/v1/clustercatalog_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const (
4444
ReasonUserSpecifiedUnavailable = "UserSpecifiedUnavailable"
4545
)
4646

47+
// +genclient
48+
// +genclient:nonNamespaced
4749
//+kubebuilder:object:root=true
4850
//+kubebuilder:resource:scope=Cluster
4951
//+kubebuilder:subresource:status

api/v1/clusterextension_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ type ClusterExtensionInstallStatus struct {
540540
Bundle BundleMetadata `json:"bundle"`
541541
}
542542

543+
// +genclient
544+
// +genclient:nonNamespaced
543545
// +kubebuilder:object:root=true
544546
// +kubebuilder:resource:scope=Cluster
545547
// +kubebuilder:subresource:status

api/v1/clusterextensionrevision_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ type ClusterExtensionRevisionStatus struct {
252252
Conditions []metav1.Condition `json:"conditions,omitempty"`
253253
}
254254

255+
// +genclient
256+
// +genclient:nonNamespaced
255257
// +kubebuilder:object:root=true
256258
// +kubebuilder:resource:scope=Cluster
257259
// +kubebuilder:subresource:status

api/v1/groupversion_info.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ limitations under the License.
1717
// Package v1 contains API Schema definitions for the olm v1 API group
1818
// +kubebuilder:object:generate=true
1919
// +groupName=olm.operatorframework.io
20+
// +kubebuilder:ac:generate=true
21+
// +kubebuilder:ac:output:package=../../applyconfigurations
2022
package v1
2123

2224
import (
@@ -28,6 +30,10 @@ var (
2830
// GroupVersion is group version used to register these objects
2931
GroupVersion = schema.GroupVersion{Group: "olm.operatorframework.io", Version: "v1"}
3032

33+
// SchemeGroupVersion is an alias for GroupVersion, required by the
34+
// generated apply configuration code.
35+
SchemeGroupVersion = GroupVersion
36+
3137
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
3238
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
3339

applyconfigurations/api/v1/bundlemetadata.go

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)