Skip to content

Commit b2e343a

Browse files
Merge pull request openshift#538 from openshift-bot/synchronize-upstream
NO-ISSUE: Synchronize From Upstream Repositories
2 parents e34bd58 + b96f1ca commit b2e343a

File tree

37 files changed

+1192
-317
lines changed

37 files changed

+1192
-317
lines changed

.bingo/Variables.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ $(SETUP_ENVTEST): $(BINGO_DIR)/setup-envtest.mod
9595
@echo "(re)installing $(GOBIN)/setup-envtest-v0.0.0-20250620151452-b9a9ca01fd37"
9696
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=setup-envtest.mod -o=$(GOBIN)/setup-envtest-v0.0.0-20250620151452-b9a9ca01fd37 "sigs.k8s.io/controller-runtime/tools/setup-envtest"
9797

98+
YAMLFMT := $(GOBIN)/yamlfmt-v0.20.0
99+
$(YAMLFMT): $(BINGO_DIR)/yamlfmt.mod
100+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
101+
@echo "(re)installing $(GOBIN)/yamlfmt-v0.20.0"
102+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=yamlfmt.mod -o=$(GOBIN)/yamlfmt-v0.20.0 "github.com/google/yamlfmt/cmd/yamlfmt"
103+

.bingo/variables.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ OPM="${GOBIN}/opm-v1.51.0"
3434

3535
SETUP_ENVTEST="${GOBIN}/setup-envtest-v0.0.0-20250620151452-b9a9ca01fd37"
3636

37+
YAMLFMT="${GOBIN}/yamlfmt-v0.20.0"
38+

.bingo/yamlfmt.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.24.4
4+
5+
require github.com/google/yamlfmt v0.20.0 // cmd/yamlfmt

.bingo/yamlfmt.sum

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q=
2+
github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
3+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4+
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
5+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
6+
github.com/google/yamlfmt v0.20.0 h1:EfMuMFEZGnXPn2NY+KgJTH9sNs6P+am/Of6IwE2K6P8=
7+
github.com/google/yamlfmt v0.20.0/go.mod h1:gs0UEklJOYkUJ+OOCG0hg9n+DzucKDPlJElTUasVNK8=
8+
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
9+
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
10+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
11+
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
12+
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
13+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
14+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
15+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
16+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ vendor/
3838
\#*\#
3939
.\#*
4040

41+
# AI temp files files
42+
.claude/
43+
4144
# documentation website asset folder
4245
site
4346

4447
.tiltbuild/
4548
.catalogd-tmp/
4649
.vscode
4750

48-
# Tmporary files and directories
51+
# Temporary files and directories
4952
/test/regression/convert/testdata/tmp/*

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ update-crds:
152152
#
153153
# Override HELM_SETTINGS on the command line to include additional Helm settings
154154
# e.g. make HELM_SETTINGS="options.openshift.enabled=true" manifests
155-
# e.g. make HELM_SETTINGS="operatorControllerFeatures={WebhookProviderCertManager}" manifests
155+
# e.g. make HELM_SETTINGS="options.operatorController.features.enabled={WebhookProviderCertManager}" manifests
156156
#
157157
MANIFESTS ?= $(STANDARD_MANIFEST) $(STANDARD_E2E_MANIFEST) $(EXPERIMENTAL_MANIFEST) $(EXPERIMENTAL_E2E_MANIFEST)
158158
$(STANDARD_MANIFEST) ?= helm/cert-manager.yaml
@@ -186,8 +186,9 @@ fix-lint: $(GOLANGCI_LINT) #EXHELP Fix lint issues
186186
$(GOLANGCI_LINT) run --fix --build-tags $(GO_BUILD_TAGS) $(GOLANGCI_LINT_ARGS)
187187

188188
.PHONY: fmt
189-
fmt: #EXHELP Formats code
189+
fmt: $(YAMLFMT) #EXHELP Formats code
190190
go fmt ./...
191+
$(YAMLFMT) -gitignore_excludes testdata
191192

192193
.PHONY: update-tls-profiles
193194
update-tls-profiles: $(GOJQ) #EXHELP Update TLS profiles from the Mozilla wiki

commitchecker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
expectedMergeBase: 926d57e1e6559f7ac0ef69a47b3d50d96975ec38
1+
expectedMergeBase: f71870daded48936c5d2012211a885b339d1182f
22
upstreamBranch: main
33
upstreamOrg: operator-framework
44
upstreamRepo: operator-controller

docs/draft/howto/single-ownnamespace-install.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,43 @@ kubectl rollout status -n olmv1-system deployment/operator-controller-controller
5656
## Configuring the `ClusterExtension`
5757

5858
A `ClusterExtension` can be configured to install bundle in `Single-` or `OwnNamespace` mode through the
59-
`.spec.config.inline.watchNamespace` property. The *installMode* is inferred in the following way:
60-
61-
- *AllNamespaces*: `watchNamespace` is empty, or not set
62-
- *OwnNamespace*: `watchNamespace` is the install namespace (i.e. `.spec.namespace`)
63-
- *SingleNamespace*: `watchNamespace` *not* the install namespace
59+
`.spec.config.inline.watchNamespace` property which may or may not be present or required depending on the bundle's
60+
install mode support, if the bundle:
61+
62+
- only supports *AllNamespaces* mode => `watchNamespace` is not a configuration
63+
- supports *AllNamespaces* and *SingleNamespace* and/or *OwnNamespace* => `watchNamespace` is optional
64+
- bundle only supports *SingleNamespace* and/or *OwnNamespace* => `watchNamespace` is required
65+
66+
The `watchNamespace` configuration can only be the install namespace if the bundle supports the *OwnNamespace* install mode, and
67+
it can only be any other namespace if the bundle supports the *SingleNamespace* install mode.
68+
69+
Examples:
70+
71+
Bundle only supports *AllNamespaces*:
72+
- `watchNamespace` is not a configuration
73+
- bundle will be installed in *AllNamespaces* mode
74+
75+
Bundle only supports *OwnNamespace*:
76+
- `watchNamespace` is required
77+
- `watchNamespace` must be the install namespace
78+
- bundle will always be installed in *OwnNamespace* mode
79+
80+
Bundle supports *AllNamespace* and *OwnNamespace*:
81+
- `watchNamespace` is optional
82+
- if `watchNamespace` = install namespace => bundle will be installed in *OwnNamespace* mode
83+
- if `watchNamespace` is null or not set => bundle will be installed in *AllNamespaces* mode
84+
- if `watchNamespace` != install namespace => error
85+
86+
Bundle only supports *SingleNamespace*:
87+
- `watchNamespace` is required
88+
- `watchNamespace` must *NOT* be the install namespace
89+
- bundle will always be installed in *SingleNamespace* mode
90+
91+
Bundle supports *AllNamespaces*, *SingleNamespace*, and *OwnNamespace* install modes:
92+
- `watchNamespace` can be optionally configured
93+
- if `watchNamespace` = install namespace => bundle will be installed in *OwnNamespace* mode
94+
- if `watchNamespace` != install namespace => bundle will be installed in *SingleNamespace* mode
95+
- if `watchNamespace` is null or not set => bundle will be installed in *AllNamespaces* mode
6496

6597
### Examples
6698

helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ spec:
4545
{{- end }}
4646
- --metrics-bind-address=:7443
4747
- --external-address=catalogd-service.{{ .Values.namespaces.olmv1.name }}.svc
48-
{{- range .Values.catalogdFeatures }}
49-
- --feature-gates={{- . -}}=true
50-
{{- end }}
5148
{{- range .Values.options.catalogd.features.enabled }}
5249
- --feature-gates={{- . -}}=true
5350
{{- end }}

helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ spec:
4444
{{- if not .Values.options.tilt.enabled }}
4545
- --leader-elect
4646
{{- end }}
47-
{{- range .Values.operatorControllerFeatures }}
48-
- --feature-gates={{- . -}}=true
49-
{{- end }}
5047
{{- range .Values.options.operatorController.features.enabled }}
5148
- --feature-gates={{- . -}}=true
5249
{{- end }}

0 commit comments

Comments
 (0)