Skip to content

Commit 2488358

Browse files
authored
Merge branch 'master' into dependabot/github_actions/golangci/golangci-lint-action-8
2 parents 0dce60d + ee4a91d commit 2488358

File tree

8 files changed

+114
-95
lines changed

8 files changed

+114
-95
lines changed

README.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ For the API reference docs go xref:api/v1alpha1/docs/apiref.adoc[here]
99
Requires:
1010

1111
* Go version 1.22.x (1.22.12 or higher) - download for your development environment https://golang.org/dl/[here].
12-
* Operator SDK v1.38.0 - download for your development environment https://v1-36-x.sdk.operatorframework.io/docs/installation/#install-from-github-release[here]
1312

1413
CodeReady ToolChain API is built using https://github.com/golang/go/wiki/Modules[Go modules].
1514

api/v1alpha1/docs/apiref.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,16 @@ Consumed by host operator and set as env var on registration-service deployment
21242124
| *`registrationServiceURL`* __string__ | RegistrationServiceURL is the URL used to a ccess the registration service + | |
21252125
| *`replicas`* __integer__ | Replicas specifies the number of replicas to use for the registration service deployment + | |
21262126
| *`verification`* __xref:{anchor_prefix}-github-com-codeready-toolchain-api-api-v1alpha1-registrationserviceverificationconfig[$$RegistrationServiceVerificationConfig$$]__ | Keeps parameters necessary for the registration service verification config + | |
2127+
| *`uiCanaryDeploymentWeight`* __integer__ | UICanaryDeploymentWeight specifies the threshold of users that will be using the new UI. +
2128+
This configuration option is just a temporary solution for rolling out our new RHDH based UI using canary deployment strategy. +
2129+
Once we switch all our users to the new UI this will be removed. +
2130+
How this works: +
2131+
- backend returns a weight +
2132+
- old UI assigns a sticky random number for each user +
2133+
- if the user has a number within the weight returned from the backend than user get's redirect to new UI +
2134+
- if the user has a number above the weight they keep using the current UI + | | Maximum: 100 +
2135+
Minimum: 0 +
2136+
21272137
|===
21282138

21292139

api/v1alpha1/toolchainconfig_types.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,20 @@ type RegistrationServiceConfig struct {
244244
// Keeps parameters necessary for the registration service verification config
245245
// +optional
246246
Verification RegistrationServiceVerificationConfig `json:"verification,omitempty"`
247+
248+
// UICanaryDeploymentWeight specifies the threshold of users that will be using the new UI.
249+
// This configuration option is just a temporary solution for rolling out our new RHDH based UI using canary deployment strategy.
250+
// Once we switch all our users to the new UI this will be removed.
251+
// How this works:
252+
// - backend returns a weight
253+
// - old UI assigns a sticky random number for each user
254+
// - if the user has a number within the weight returned from the backend than user get's redirect to new UI
255+
// - if the user has a number above the weight they keep using the current UI
256+
//
257+
// +optional
258+
// +kubebuilder:validation:Minimum=0
259+
// +kubebuilder:validation:Maximum=100
260+
UICanaryDeploymentWeight *int `json:"uiCanaryDeploymentWeight,omitempty"`
247261
}
248262

249263
// RegistrationServiceAnalyticsConfig contains the subset of registration service configuration parameters related to analytics

api/v1alpha1/zz_generated.deepcopy.go

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

api/v1alpha1/zz_generated.openapi.go

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

go.mod

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,26 @@ toolchain go1.22.12
66

77
require (
88
github.com/go-bindata/go-bindata v3.1.2+incompatible
9-
// using latest commit from 'github.com/openshift/api branch release-4.17'
10-
github.com/openshift/api v0.0.0-20250214103856-0cfc958f642b
11-
k8s.io/api v0.30.1
12-
k8s.io/apimachinery v0.30.1
13-
k8s.io/code-generator v0.30.1
9+
// using latest commit from 'github.com/openshift/api branch release-4.18'
10+
github.com/openshift/api v0.0.0-20250410062700-d6c84c55a124
11+
k8s.io/api v0.31.2
12+
k8s.io/apimachinery v0.31.2
13+
k8s.io/code-generator v0.31.2
1414
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01
1515
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340
16-
sigs.k8s.io/controller-runtime v0.18.4
17-
sigs.k8s.io/controller-tools v0.15.0
16+
sigs.k8s.io/controller-runtime v0.19.7
17+
sigs.k8s.io/controller-tools v0.16.5
1818
)
1919

2020
require (
2121
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
22-
github.com/fatih/color v1.16.0 // indirect
23-
github.com/go-logr/logr v1.4.1 // indirect
22+
github.com/fatih/color v1.18.0 // indirect
23+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
24+
github.com/go-logr/logr v1.4.2 // indirect
2425
github.com/go-openapi/jsonpointer v0.19.6 // indirect
2526
github.com/go-openapi/jsonreference v0.20.2 // indirect
26-
github.com/go-openapi/swag v0.22.3 // indirect
27-
github.com/gobuffalo/flect v1.0.2 // indirect
27+
github.com/go-openapi/swag v0.22.4 // indirect
28+
github.com/gobuffalo/flect v1.0.3 // indirect
2829
github.com/gogo/protobuf v1.3.2 // indirect
2930
github.com/golang/protobuf v1.5.4 // indirect
3031
github.com/google/gnostic-models v0.6.8 // indirect
@@ -37,22 +38,23 @@ require (
3738
github.com/mattn/go-isatty v0.0.20 // indirect
3839
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3940
github.com/modern-go/reflect2 v1.0.2 // indirect
40-
github.com/spf13/cobra v1.8.0 // indirect
41+
github.com/spf13/cobra v1.8.1 // indirect
4142
github.com/spf13/pflag v1.0.5 // indirect
42-
golang.org/x/mod v0.17.0 // indirect
43+
github.com/x448/float16 v0.8.4 // indirect
44+
golang.org/x/mod v0.21.0 // indirect
4345
golang.org/x/net v0.33.0 // indirect
4446
golang.org/x/sync v0.10.0 // indirect
4547
golang.org/x/sys v0.28.0 // indirect
4648
golang.org/x/text v0.21.0 // indirect
47-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
48-
google.golang.org/protobuf v1.33.0 // indirect
49+
golang.org/x/tools v0.26.0 // indirect
50+
google.golang.org/protobuf v1.34.2 // indirect
4951
gopkg.in/inf.v0 v0.9.1 // indirect
5052
gopkg.in/yaml.v2 v2.4.0 // indirect
5153
gopkg.in/yaml.v3 v3.0.1 // indirect
52-
k8s.io/apiextensions-apiserver v0.30.1 // indirect
54+
k8s.io/apiextensions-apiserver v0.31.2 // indirect
5355
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
54-
k8s.io/klog/v2 v2.120.1 // indirect
55-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
56+
k8s.io/klog/v2 v2.130.1 // indirect
57+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
5658
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
5759
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
5860
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)