Skip to content

Commit

Permalink
Fix implicit aliasing nested maps (#319)
Browse files Browse the repository at this point in the history
* Fix implicit aliasing issue in nested maps
  • Loading branch information
shyamradhakrishnan committed Aug 18, 2023
1 parent 84976e0 commit 2033e63
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ envsubst: $(ENVSUBST) ## Build a local copy of envsubst.
kubectl: $(KUBECTL) ## Build a local copy of kubectl.

$(CONTROLLER_GEN): ## Download controller-gen locally if necessary.
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.10.0
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.13.0

$(CONVERSION_GEN): ## Download controller-gen locally if necessary.
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) k8s.io/code-generator/cmd/conversion-gen $(CONVERSION_GEN_BIN) v0.23.1
Expand Down
10 changes: 6 additions & 4 deletions api/v1beta1/zz_generated.deepcopy.go

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

10 changes: 6 additions & 4 deletions api/v1beta2/zz_generated.deepcopy.go

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

7 changes: 3 additions & 4 deletions cloud/scope/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package scope

import (
"crypto/tls"
"crypto/x509"
"net/http"
"sync"
Expand Down Expand Up @@ -416,9 +415,9 @@ func (c *ClientProvider) setCerts(client *http.Client) error {
if tr.TLSClientConfig != nil {
tr.TLSClientConfig.RootCAs = c.certOverride
} else {
tr.TLSClientConfig = &tls.Config{
RootCAs: c.certOverride,
}
// If TLS client config is not set, we should error out. else the default values will
// be used which will be insecure
return errors.New("TLSClientConfig is not set on the client")
}
client.Transport = tr

Expand Down
1 change: 0 additions & 1 deletion exp/api/v1beta1/zz_generated.deepcopy.go

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

1 change: 0 additions & 1 deletion exp/api/v1beta2/zz_generated.deepcopy.go

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

0 comments on commit 2033e63

Please sign in to comment.