Skip to content

Commit 92e16df

Browse files
author
Devtools
committed
Merge branch 'master' of github.com:mfrancisc/api
2 parents 4cd5019 + cb19fc6 commit 92e16df

File tree

13 files changed

+153
-527
lines changed

13 files changed

+153
-527
lines changed

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
go-version-file: go.mod
2424

2525
- name: Lint
26-
uses: golangci/golangci-lint-action@v8
26+
uses: golangci/golangci-lint-action@v9
2727
with:
2828
version: v2.1.6
2929
skip-pkg-cache: true

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ linters:
3030
- testifylint
3131
- unparam
3232
- zerologlint
33+
- copyloopvar
3334
disable:
3435
- contextcheck
3536
- noctx

.govulncheck.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
ignored-vulnerabilities:
2-
# Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
3-
# Found in: os@go1.22.12
4-
# Fixed in: os@go1.23.10
5-
- id: GO-2025-3750
6-
silence-until: 2025-10-02
7-
info: https://pkg.go.dev/vuln/GO-2025-3750
2+
# Parsing DER payload can cause memory exhaustion in encoding/asn1
3+
# Found in: encoding/asn1@go1.23.12
4+
# Fixed in: encoding/asn1@go1.24.8
5+
- id: GO-2025-4011
6+
info: https://pkg.go.dev/vuln/GO-2025-4011
7+
silence-until: 2025-12-03
8+
# Insufficient validation of bracketed IPv6 hostnames in net/url
9+
# Found in: net/url@go1.23.12
10+
# Fixed in: net/url@go1.24.8
11+
- id: GO-2025-4010
12+
info: https://pkg.go.dev/vuln/GO-2025-4010
13+
silence-until: 2025-12-03
14+
# Quadratic complexity when parsing some invalid inputs in encoding/pem
15+
# Found in: encoding/pem@go1.23.12
16+
# Fixed in: encoding/pem@go1.24.8
17+
- id: GO-2025-4009
18+
info: https://pkg.go.dev/vuln/GO-2025-4009
19+
silence-until: 2025-12-03
20+
# Quadratic complexity when checking name constraints in crypto/x509
21+
# Found in: crypto/x509@go1.23.12
22+
# Fixed in: crypto/x509@go1.24.9
23+
- id: GO-2025-4007
24+
info: https://pkg.go.dev/vuln/GO-2025-4007
25+
silence-until: 2025-12-03

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For the API reference docs go xref:api/v1alpha1/docs/apiref.adoc[here]
88
== Building
99
Requires:
1010

11-
* Go version 1.22.x (1.22.12 or higher) - download for your development environment https://golang.org/dl/[here].
11+
* Go version 1.23.x (1.23.12 or higher) - download for your development environment https://golang.org/dl/[here].
1212

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

api/v1alpha1/docs/apiref.adoc

Lines changed: 26 additions & 109 deletions
Large diffs are not rendered by default.

api/v1alpha1/memberoperatorconfig_types.go

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ type MemberOperatorConfigSpec struct {
1515
// +optional
1616
Autoscaler AutoscalerConfig `json:"autoscaler,omitempty"`
1717

18-
// Keeps parameters concerned with Che/CRW
19-
// +optional
20-
Che CheConfig `json:"che,omitempty"`
21-
2218
// Keeps parameters concerned with the console
2319
// +optional
2420
Console ConsoleConfig `json:"console,omitempty"`
@@ -72,50 +68,6 @@ type AutoscalerConfig struct {
7268
BufferReplicas *int `json:"bufferReplicas,omitempty"`
7369
}
7470

75-
// Defines all parameters concerned with Che
76-
// +k8s:openapi-gen=true
77-
type CheConfig struct {
78-
// Defines the Che/CRW Keycloak route name
79-
// +optional
80-
KeycloakRouteName *string `json:"keycloakRouteName,omitempty"`
81-
82-
// Defines the Che/CRW route name
83-
// +optional
84-
RouteName *string `json:"routeName,omitempty"`
85-
86-
// Defines the Che/CRW operator namespace
87-
// +optional
88-
Namespace *string `json:"namespace,omitempty"`
89-
90-
// Defines a flag that indicates whether the Che/CRW operator is required to be installed on the cluster. May be used in monitoring.
91-
// +optional
92-
Required *bool `json:"required,omitempty"`
93-
94-
// Defines a flag to turn the Che user deletion logic on/off
95-
// +optional
96-
UserDeletionEnabled *bool `json:"userDeletionEnabled,omitempty"`
97-
98-
// Defines all secrets related to Che configuration
99-
// +optional
100-
Secret CheSecret `json:"secret,omitempty"`
101-
}
102-
103-
// Defines all secrets related to Che configuration
104-
// +k8s:openapi-gen=true
105-
type CheSecret struct {
106-
// The reference to the secret that is expected to contain the keys below
107-
// +optional
108-
ToolchainSecret `json:",inline"`
109-
110-
// The key for the Che admin username in the secret values map
111-
// +optional
112-
CheAdminUsernameKey *string `json:"cheAdminUsernameKey,omitempty"`
113-
114-
// The key for the Che admin password in the secret values map
115-
// +optional
116-
CheAdminPasswordKey *string `json:"cheAdminPasswordKey,omitempty"`
117-
}
118-
11971
// Defines all parameters concerned with the console
12072
// +k8s:openapi-gen=true
12173
type ConsoleConfig struct {

api/v1alpha1/memberstatus_types.go

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ type MemberStatusStatus struct {
2121
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
2222
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
2323

24-
// Che is the status of Che/CRW, such as installed and whether the member configuration is correct
25-
// +optional
26-
Che *CheStatus `json:"che,omitempty"`
27-
2824
// MemberOperator is the status of a toolchain member operator
2925
// +optional
3026
MemberOperator *MemberOperatorStatus `json:"memberOperator,omitempty"`
@@ -50,35 +46,18 @@ type MemberStatusStatus struct {
5046
// +optional
5147
ResourceUsage ResourceUsage `json:"resourceUsage,omitempty"`
5248

53-
// Routes/URLs of the cluster, such as Console and Che Dashboard URLs
49+
// Routes/URLs of the cluster, such as Console
5450
// +optional
5551
Routes *Routes `json:"routes,omitempty"`
5652
}
5753

58-
// CheStatus contains information about the status of Che/CRW, such as installed and whether the member configuration is correct
59-
// +k8s:openapi-gen=true
60-
type CheStatus struct {
61-
// Conditions is an array of current Che status conditions
62-
// Supported condition types: ConditionReady
63-
// +optional
64-
// +patchMergeKey=type
65-
// +patchStrategy=merge
66-
// +listType=map
67-
// +listMapKey=type
68-
Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
69-
}
70-
7154
// Routes contains information about the public routes available to the user in the cluster
7255
// +k8s:openapi-gen=true
7356
type Routes struct {
7457
// ConsoleURL is the web console URL of the cluster
7558
// +optional
7659
ConsoleURL string `json:"consoleURL,omitempty"`
7760

78-
// CheDashboardURL is the Che Dashboard URL of the cluster if Che is installed
79-
// +optional
80-
CheDashboardURL string `json:"cheDashboardURL,omitempty"`
81-
8261
// Conditions is an array of current member operator status conditions
8362
// Supported condition types: ConditionReady
8463
// +optional

api/v1alpha1/toolchainstatus_types.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,10 @@ const (
4848
ToolchainStatusHostRoutesAvailableReason = "HostRoutesAvailable"
4949

5050
// member status reasons
51-
ToolchainStatusMemberStatusNotFoundReason = "MemberStatusNotFound"
52-
ToolchainStatusMemberToolchainClusterMissingReason = "MemberToolchainClusterMissing"
53-
ToolchainStatusMemberStatusConsoleRouteUnavailableReason = "ConsoleRouteUnavailable"
54-
ToolchainStatusMemberStatusRoutesAvailableReason = "RoutesAvailable"
55-
ToolchainStatusMemberStatusCheRouteUnavailableReason = "CheRouteUnavailable"
56-
ToolchainStatusMemberStatusCheUserAPICheckFailedReason = "CheUserAPICheckFailed"
57-
ToolchainStatusMemberStatusCheNotRequiredReason = "CheNotRequired"
58-
ToolchainStatusMemberStatusCheAdminUserNotConfiguredReason = "CheAdminUserNotConfigured"
59-
ToolchainStatusMemberStatusCheUserDeletionNotEnabledReason = "CheUserDeletionNotEnabled"
60-
ToolchainStatusMemberStatusCheReadyReason = "CheReady"
51+
ToolchainStatusMemberStatusNotFoundReason = "MemberStatusNotFound"
52+
ToolchainStatusMemberToolchainClusterMissingReason = "MemberToolchainClusterMissing"
53+
ToolchainStatusMemberStatusConsoleRouteUnavailableReason = "ConsoleRouteUnavailable"
54+
ToolchainStatusMemberStatusRoutesAvailableReason = "RoutesAvailable"
6155

6256
// Metric Keys
6357
// MasterUserRecordsPerDomainMetricKey the key to store the metric for the number of MasterUserRecords per email address domain

api/v1alpha1/usersignup_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ type IdentityClaimsEmbedded struct {
206206
// Company contains the value of the 'company' claim
207207
// +optional
208208
Company string `json:"company,omitempty"`
209+
210+
// AccountNumber contains the value of the 'account_number' claim
211+
// +optional
212+
AccountNumber string `json:"accountNumber,omitempty"`
209213
}
210214

211215
// +k8s:openapi-gen=true

api/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)