Skip to content

Commit 53bbeca

Browse files
committed
Merge remote-tracking branch 'origin/main' into SP-990
# Conflicts: # .go-version # go.mod
2 parents 052ff09 + 8d61d09 commit 53bbeca

File tree

371 files changed

+8363
-457
lines changed

Some content is hidden

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

371 files changed

+8363
-457
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ http-client.private.env.json
170170
.idea/.cache/.Apifox_Helper
171171
.idea/ApifoxUploaderProjectSetting.xml
172172

173+
# Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215
174+
.idea/**/copilot.data.migration.*.xml
175+
173176
#
174177
# Global/Vim Gitignore
175178
#

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.7
1+
1.24.9

.semaphore/semaphore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ after_pipeline:
9797
- name: Report SonarQube Results
9898
commands:
9999
- checkout
100-
- sem-version java 11
101-
- emit-sonarqube-data -a coverage.txt
100+
- sem-version java 17
101+
- emit-sonarqube-data -a coverage.txt --enable_sonarqube_enterprise
102102

103103
promotions:
104104
- name: "Run macOS builds (manual)"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ This is not an exhaustive list. Always consider the potential user impact of any
295295
Note: For the `confluent local services` command, which interacts with Confluent Platform, we should avoid breaking changes for all supported versions of Confluent Platform.
296296

297297
The following may seem like breaking changes, but *aren't*:
298-
* Renaming a non-serialized, human readable field name
298+
* Renaming a non-serialized, human-readable field name
299299
* Hiding a deprecated flag (as long as users can still use the flag!)
300300

301301
These criteria apply to commands, flags, or any functionality in the LA (Limited Availability) or GA (General Availability) lifecycle stages, which should have a stable interface.

cmd/confluent/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
"github.com/confluentinc/cli/v4/internal"
1010
"github.com/confluentinc/cli/v4/pkg/config"
11+
_ "github.com/confluentinc/cli/v4/pkg/fips"
1112
pversion "github.com/confluentinc/cli/v4/pkg/version"
1213
)
1314

cmd/docs/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import (
66
"path/filepath"
77
"regexp"
88
"strings"
9+
"testing"
910

1011
"github.com/confluentinc/cli/v4/internal"
1112
"github.com/confluentinc/cli/v4/pkg/config"
1213
"github.com/confluentinc/cli/v4/pkg/docs"
1314
pversion "github.com/confluentinc/cli/v4/pkg/version"
15+
testserver "github.com/confluentinc/cli/v4/test/test-server"
1416
)
1517

1618
// Auto-generate documentation files for all CLI commands. Documentation uses reStructured Text (ReST) format, and is
@@ -19,6 +21,10 @@ import (
1921
// This code is adapted from https://github.com/spf13/cobra/blob/master/doc/rest_docs.md
2022

2123
func main() {
24+
// Set up test server for feature flags called by the code
25+
testBackend := testserver.StartTestCloudServer(&testing.T{}, true)
26+
defer testBackend.Close()
27+
2228
// Prevent printing the user's $HOME in docs when generating confluent local services kafka
2329
home, err := os.UserHomeDir()
2430
if err != nil {

cmd/lint/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import (
55
"fmt"
66
"os"
77
"strings"
8+
"testing"
89

910
"github.com/client9/gospell"
1011

1112
"github.com/confluentinc/cli/v4/internal"
1213
"github.com/confluentinc/cli/v4/pkg/config"
1314
"github.com/confluentinc/cli/v4/pkg/linter"
1415
pversion "github.com/confluentinc/cli/v4/pkg/version"
16+
testserver "github.com/confluentinc/cli/v4/test/test-server"
1517
)
1618

1719
var commandRules = []linter.CommandRule{
@@ -164,6 +166,7 @@ var properNouns = []string{
164166
"CRL",
165167
"Data Encryption Key",
166168
"DEK",
169+
"Databricks",
167170
"Flink",
168171
"Go",
169172
"Groovy",
@@ -211,6 +214,7 @@ var vocabWords = []string{
211214
"aws",
212215
"azureml",
213216
"azureopenai",
217+
"a2a",
214218
"backoff",
215219
"base64",
216220
"bedrock",
@@ -241,7 +245,9 @@ var vocabWords = []string{
241245
"deregister",
242246
"deserializer",
243247
"deserializers",
248+
"detached-savepoint",
244249
"dns",
250+
"ecku",
245251
"elastic",
246252
"env",
247253
"eu",
@@ -287,6 +293,8 @@ var vocabWords = []string{
287293
"md",
288294
"mds",
289295
"mongodb",
296+
"name1",
297+
"name2",
290298
"namespace",
291299
"nodejs",
292300
"oauth",
@@ -310,6 +318,8 @@ var vocabWords = []string{
310318
"s3",
311319
"sagemaker",
312320
"sasl",
321+
"savepoint",
322+
"savepoints",
313323
"scala",
314324
"schemas",
315325
"server",
@@ -347,6 +357,7 @@ var vocabWords = []string{
347357
"vpc",
348358
"whitelist",
349359
"wikipedia",
360+
"workspace",
350361
"yaml",
351362
"yml",
352363
"zstd",
@@ -365,6 +376,10 @@ func init() {
365376
}
366377

367378
func main() {
379+
// Set up test server for feature flags called by the code
380+
testBackend := testserver.StartTestCloudServer(&testing.T{}, true)
381+
defer testBackend.Close()
382+
368383
flag.Parse()
369384

370385
vocab, err := gospell.NewGoSpell(affFile, dicFile)

go.mod

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/confluentinc/cli/v4
22

3-
go 1.24.7
3+
go 1.24.9
44

55
require (
66
github.com/antihax/optional v1.0.0
@@ -35,7 +35,7 @@ require (
3535
github.com/confluentinc/ccloud-sdk-go-v2/iam-ip-filtering v0.5.0
3636
github.com/confluentinc/ccloud-sdk-go-v2/identity-provider v0.3.0
3737
github.com/confluentinc/ccloud-sdk-go-v2/kafka-quotas v0.4.0
38-
github.com/confluentinc/ccloud-sdk-go-v2/kafkarest v0.24.0
38+
github.com/confluentinc/ccloud-sdk-go-v2/kafkarest v0.0.0-20250909043602-f80bee0eb280
3939
github.com/confluentinc/ccloud-sdk-go-v2/ksql v0.2.0
4040
github.com/confluentinc/ccloud-sdk-go-v2/mds v0.4.0
4141
github.com/confluentinc/ccloud-sdk-go-v2/metrics v0.2.0
@@ -46,22 +46,22 @@ require (
4646
github.com/confluentinc/ccloud-sdk-go-v2/networking-ip v0.2.0
4747
github.com/confluentinc/ccloud-sdk-go-v2/networking-privatelink v0.3.0
4848
github.com/confluentinc/ccloud-sdk-go-v2/org v0.9.0
49-
github.com/confluentinc/ccloud-sdk-go-v2/provider-integration v0.1.0
49+
github.com/confluentinc/ccloud-sdk-go-v2/provider-integration v0.2.0
5050
github.com/confluentinc/ccloud-sdk-go-v2/service-quota v0.2.0
5151
github.com/confluentinc/ccloud-sdk-go-v2/srcm v0.7.3
5252
github.com/confluentinc/ccloud-sdk-go-v2/sso v0.0.1
53-
github.com/confluentinc/ccloud-sdk-go-v2/tableflow v0.4.0
53+
github.com/confluentinc/ccloud-sdk-go-v2/tableflow v0.5.0
5454
github.com/confluentinc/ccloud-sdk-go-v2/usm v0.1.0
55-
github.com/confluentinc/cmf-sdk-go v0.0.4
56-
github.com/confluentinc/confluent-kafka-go/v2 v2.8.0
55+
github.com/confluentinc/cmf-sdk-go v0.0.5
56+
github.com/confluentinc/confluent-kafka-go/v2 v2.12.0
5757
github.com/confluentinc/go-editor v0.11.0
5858
github.com/confluentinc/go-prompt v0.2.40
5959
github.com/confluentinc/go-ps1 v1.0.2
6060
github.com/confluentinc/kafka-rest-sdk-go/kafkarestv3 v0.3.18
6161
github.com/confluentinc/mds-sdk-go-public/mdsv1 v0.0.0-20240923163156-b922b35891f9
6262
github.com/confluentinc/mds-sdk-go-public/mdsv2alpha1 v0.0.0-20240923163156-b922b35891f9
6363
github.com/confluentinc/properties v0.0.0-20190814194548-42c10394a787
64-
github.com/confluentinc/schema-registry-sdk-go v0.1.0
64+
github.com/confluentinc/schema-registry-sdk-go v0.1.1-0.20251021214222-018e0cd35bf9
6565
github.com/davecgh/go-spew v1.1.1
6666
github.com/dghubble/sling v1.4.2
6767
github.com/docker/docker v28.0.0+incompatible
@@ -109,11 +109,11 @@ require (
109109
github.com/tidwall/pretty v1.2.1
110110
github.com/tidwall/sjson v1.2.5
111111
go.uber.org/mock v0.4.0
112-
golang.org/x/crypto v0.36.0
112+
golang.org/x/crypto v0.45.0
113113
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
114114
golang.org/x/oauth2 v0.27.0
115-
golang.org/x/term v0.30.0
116-
golang.org/x/text v0.23.0
115+
golang.org/x/term v0.37.0
116+
golang.org/x/text v0.31.0
117117
google.golang.org/protobuf v1.34.2
118118
gopkg.in/launchdarkly/go-sdk-common.v2 v2.5.1
119119
gopkg.in/yaml.v3 v3.0.1
@@ -202,6 +202,7 @@ require (
202202
github.com/hashicorp/go-sockaddr v1.0.6 // indirect
203203
github.com/hashicorp/hcl v1.0.0 // indirect
204204
github.com/hashicorp/vault/api v1.15.0 // indirect
205+
github.com/hashicorp/vault/api/auth/approle v0.8.0 // indirect
205206
github.com/inconshreveable/mousetrap v1.1.0 // indirect
206207
github.com/invopop/jsonschema v0.12.0 // indirect
207208
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
@@ -262,12 +263,12 @@ require (
262263
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 // indirect
263264
go.opentelemetry.io/otel/metric v1.37.0 // indirect
264265
go.opentelemetry.io/otel/trace v1.37.0 // indirect
265-
golang.org/x/mod v0.19.0 // indirect
266-
golang.org/x/net v0.38.0 // indirect
267-
golang.org/x/sync v0.12.0 // indirect
268-
golang.org/x/sys v0.31.0 // indirect
266+
golang.org/x/mod v0.29.0 // indirect
267+
golang.org/x/net v0.47.0 // indirect
268+
golang.org/x/sync v0.18.0 // indirect
269+
golang.org/x/sys v0.38.0 // indirect
269270
golang.org/x/time v0.6.0 // indirect
270-
golang.org/x/tools v0.23.0 // indirect
271+
golang.org/x/tools v0.38.0 // indirect
271272
google.golang.org/api v0.191.0 // indirect
272273
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
273274
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect

0 commit comments

Comments
 (0)