Skip to content

Commit

Permalink
feat(clusters) - Add disableCompression option in the cluster config
Browse files Browse the repository at this point in the history
Signed-off-by: OpenGuidou <[email protected]>
  • Loading branch information
OpenGuidou committed Oct 8, 2024
1 parent 1c6ec19 commit 7aa7cec
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 403 deletions.
5 changes: 3 additions & 2 deletions applicationset/utils/clusterUtils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Test_secretToCluster(t *testing.T) {
Data: map[string][]byte{
"name": []byte("test"),
"server": []byte("http://mycluster"),
"config": []byte("{\"username\":\"foo\"}"),
"config": []byte("{\"username\":\"foo\", \"disableCompression\":true}"),
},
}
cluster, err := secretToCluster(secret)
Expand All @@ -39,7 +39,8 @@ func Test_secretToCluster(t *testing.T) {
Name: "test",
Server: "http://mycluster",
Config: argoappv1.ClusterConfig{
Username: "foo",
Username: "foo",
DisableCompression: true,
},
}, *cluster)
}
Expand Down
4 changes: 4 additions & 0 deletions assets/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/operator-manual/declarative-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ tlsClientConfig:
# certificates against. If ServerName is empty, the hostname used to contact the
# server is used.
serverName: string
# Disable automatic compression for requests to the cluster
disableCompression: boolean
```

Note that if you specify a command to run under `execProviderConfig`, that command must be available in the Argo CD image. See [BYOI (Build Your Own Image)](custom_tools.md#byoi-build-your-own-image).
Expand Down
Loading

0 comments on commit 7aa7cec

Please sign in to comment.