Skip to content

Commit

Permalink
fix(region): ignore empty certificate error for ssl sync (#19053)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito authored Dec 19, 2023
1 parent 1ad385f commit 3f10e5a
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 236 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ require (
k8s.io/client-go v0.19.3
k8s.io/cluster-bootstrap v0.19.3
moul.io/http2curl/v2 v2.3.0
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231218072105-9257091d5b31
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231219063422-30c5f1f76541
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32
yunion.io/x/jsonutils v1.0.1-0.20230613121553-0f3b41e2ef19
yunion.io/x/log v1.0.1-0.20230411060016-feb3f46ab361
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,8 @@ sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231218072105-9257091d5b31 h1:AdJrsaKEjnohmLNNr2WOUoFfG87GYRJ6JNXqnMuvTx8=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231218072105-9257091d5b31/go.mod h1:aj1gR9PPb6eqqKOwvANe26CoZFY8ydmXy0fuvgKYXH0=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231219063422-30c5f1f76541 h1:dmT7zzhP95ybI68F178+E41ve/M8JT9bC45DEZPXy4A=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231219063422-30c5f1f76541/go.mod h1:aj1gR9PPb6eqqKOwvANe26CoZFY8ydmXy0fuvgKYXH0=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32 h1:v7POYkQwo1XzOxBoIoRVr/k0V9Y5JyjpshlIFa9raug=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/jsonutils v0.0.0-20190625054549-a964e1e8a051/go.mod h1:4N0/RVzsYL3kH3WE/H1BjUQdFiWu50JGCFQuuy+Z634=
Expand Down
4 changes: 2 additions & 2 deletions pkg/compute/models/sslcertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ type SSSLCertificate struct {
Fingerprint string `width:"128" charset:"utf8" nullable:"false" list:"user" create:"required"`
City string `width:"2048" charset:"utf8" nullable:"false" list:"user" create:"required"`
OrgName string `width:"2048" charset:"utf8" nullable:"false" list:"user" create:"required"`
Certificate string `charset:"utf8" nullable:"false" list:"user" create:"required"`
PrivateKey string `charset:"utf8" nullable:"false" list:"user" create:"required"`
Certificate string `charset:"utf8" nullable:"true" list:"user" create:"required"`
PrivateKey string `charset:"utf8" nullable:"true" list:"user" create:"required"`
}

func (s SSSLCertificate) GetExternalId() string {
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
## explicit; go 1.12
sigs.k8s.io/yaml
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231218072105-9257091d5b31
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20231219063422-30c5f1f76541
## explicit; go 1.18
yunion.io/x/cloudmux/pkg/apis
yunion.io/x/cloudmux/pkg/apis/billing
Expand Down

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

This file was deleted.

This file was deleted.

20 changes: 4 additions & 16 deletions vendor/yunion.io/x/cloudmux/pkg/multicloud/huawei/huawei.go

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

61 changes: 38 additions & 23 deletions vendor/yunion.io/x/cloudmux/pkg/multicloud/huawei/keypair.go

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

80 changes: 0 additions & 80 deletions vendor/yunion.io/x/cloudmux/pkg/multicloud/huawei/quota.go

This file was deleted.

Loading

0 comments on commit 3f10e5a

Please sign in to comment.