Skip to content

Commit

Permalink
Merge branch '2.8' into 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleasa committed Mar 24, 2021
2 parents b070cb4 + b094caf commit d0612d5
Show file tree
Hide file tree
Showing 35 changed files with 82 additions and 58 deletions.
2 changes: 1 addition & 1 deletion acceptancetests/jujupy/k8s_provider/microk8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def enable_microk8s_addons(self, addons=None):
addons.append('rbac')
else:
addons = [addon for addon in addons if addon != 'rbac']
logger.info('disabling rbac -> ', self.sh('microk8s.disable', 'rbac'))
logger.info('disabling rbac -> %s', self.sh('microk8s.disable', 'rbac'))

def wait_until_ready(timeout, checker):
for _ in until_timeout(timeout):
Expand Down
17 changes: 12 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require (
github.com/gorilla/websocket v1.4.2
github.com/gosuri/uitable v0.0.1
github.com/hashicorp/go-msgpack v0.5.5
github.com/hashicorp/go-uuid v1.0.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/raft v2.0.0-20200420012049-88ad3b3f0a54+incompatible
github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea
Expand All @@ -46,7 +47,7 @@ require (
github.com/juju/featureflag v0.0.0-20200423045028-e2f9e1cb1611
github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d
github.com/juju/gojsonschema v0.0.0-20150312170016-e1ad140384f2
github.com/juju/gomaasapi v0.0.0-20190826212825-0ab1eb636aba
github.com/juju/gomaasapi/v2 v2.0.0-20210323144809-92beddd020fe
github.com/juju/http v0.0.0-20201019013536-69ae1d429836
github.com/juju/idmclient/v2 v2.0.0-20210309081103-6b4a5212f851
github.com/juju/jsonschema v0.0.0-20161102181919-a0ef8b74ebcf
Expand Down Expand Up @@ -74,30 +75,36 @@ require (
github.com/juju/txn v0.0.0-20210302043154-251cea9e140a
github.com/juju/utils v0.0.0-20200604140309-9d78121a29e0
github.com/juju/utils/v2 v2.0.0-20200923005554-4646bfea2ef1
github.com/juju/version v0.0.0-20191219164919-81c1be00b9a6
github.com/juju/version v0.0.0-20210303051006-2015802527a8
github.com/juju/version/v2 v2.0.0-20210319015800-dcfac8f4f057
github.com/juju/webbrowser v1.0.0
github.com/juju/worker/v2 v2.0.0-20200916234526-d6e694f1c54a
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/kr/pretty v0.2.1
github.com/lxc/lxd v0.0.0-20201127143816-0245f4a840c6
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12
github.com/mitchellh/go-linereader v0.0.0-20190213213312-1b945b3263eb
github.com/onsi/ginkgo v1.14.2 // indirect
github.com/onsi/gomega v1.10.4 // indirect
github.com/oracle/oci-go-sdk v5.7.0+incompatible
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.7.1
github.com/prometheus/client_model v0.2.0
github.com/rogpeppe/fastuuid v1.2.0 // indirect
github.com/satori/go.uuid v1.2.0
github.com/stretchr/testify v1.7.0 // indirect
github.com/vishvananda/netlink v1.1.0
github.com/vmware/govmomi v0.21.1-0.20191008161538-40aebf13ba45
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/mod v0.4.0 // indirect
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
golang.org/x/sys v0.0.0-20210223212115-eede4237b368
golang.org/x/text v0.3.4 // indirect
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
golang.org/x/tools v0.0.0-20200725200936-102e7d357031
golang.org/x/tools v0.0.0-20210105210202-9ed45478a130
google.golang.org/api v0.29.0
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20200726014623-da3ae01ef02d // indirect
Expand All @@ -106,7 +113,7 @@ require (
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
gopkg.in/goose.v2 v2.0.1
gopkg.in/httprequest.v1 v1.2.1
gopkg.in/ini.v1 v1.10.1
gopkg.in/ini.v1 v1.51.0
gopkg.in/juju/environschema.v1 v1.0.1-0.20201027142642-c89a4490670a
gopkg.in/macaroon.v2 v2.1.0
gopkg.in/natefinch/lumberjack.v2 v2.0.0
Expand Down
53 changes: 36 additions & 17 deletions go.sum

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions juju/testing/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/juju/charm/v8"
"github.com/juju/cmd/cmdtesting"
"github.com/juju/errors"
"github.com/juju/http"
"github.com/juju/loggo"
"github.com/juju/names/v4"
"github.com/juju/pubsub"
Expand Down Expand Up @@ -140,7 +139,6 @@ const AdminSecret = "dummy-secret"
func (s *JujuConnSuite) SetUpSuite(c *gc.C) {
s.MgoSuite.SetUpSuite(c)
s.FakeJujuXDGDataHomeSuite.SetUpSuite(c)
s.PatchValue(&http.OutgoingAccessAllowed, false)
s.PatchValue(&paths.Chown, func(name string, uid, gid int) error { return nil })
}

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package maas

import (
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/juju/collections/set"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"

"github.com/juju/juju/core/constraints"
"github.com/juju/juju/environs/context"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"

"github.com/juju/juju/core/instance"
corenetwork "github.com/juju/juju/core/network"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/environ.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"
"github.com/juju/utils/v2"
"github.com/juju/version/v2"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/environ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/environ_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/v2"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/environprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/jsonschema"
"github.com/juju/loggo"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/environprovider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"

"github.com/juju/collections/set"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package maas

import (
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"

"github.com/juju/juju/provider/common"
)
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"

"github.com/juju/juju/core/instance"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"encoding/json"
"fmt"

"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"

"github.com/juju/juju/core/instance"
corenetwork "github.com/juju/juju/core/network"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/interfaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package maas
import (
"fmt"

"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2_environ_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package maas
import (
"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"

"github.com/juju/juju/core/instance"
corenetwork "github.com/juju/juju/core/network"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/juju/core/instance"
"github.com/juju/juju/core/network"
"github.com/juju/juju/core/status"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/utils/v2"

"github.com/juju/juju/environs/storage"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas2storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io/ioutil"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/os/v2/series"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/v2"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"sync"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/utils/v2"

"github.com/juju/juju/environs/storage"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"

"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/utils"
"github.com/juju/utils/v2"
goyaml "gopkg.in/yaml.v2"

"github.com/juju/juju/cloudconfig/cloudinit"
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/dustin/go-humanize"
"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"
"github.com/juju/schema"

Expand Down
2 changes: 1 addition & 1 deletion provider/maas/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package maas

import (
"github.com/juju/gomaasapi"
"github.com/juju/gomaasapi/v2"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
3 changes: 0 additions & 3 deletions testing/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (

"github.com/juju/collections/set"
"github.com/juju/featureflag"
"github.com/juju/http"
"github.com/juju/loggo"
"github.com/juju/os/v2/series"
"github.com/juju/testing"
Expand Down Expand Up @@ -194,7 +193,6 @@ func (s *BaseSuite) SetUpSuite(c *gc.C) {
s.CleanupSuite.SetUpSuite(c)
s.LoggingSuite.SetUpSuite(c)
// JujuOSEnvSuite does not have a suite setup.
s.PatchValue(&http.OutgoingAccessAllowed, false)
// LTS-dependent requires new entry upon new LTS release.
s.oldLtsForTesting = series.SetLatestLtsForTesting("xenial")
}
Expand All @@ -210,7 +208,6 @@ func (s *BaseSuite) SetUpTest(c *gc.C) {
s.CleanupSuite.SetUpTest(c)
s.LoggingSuite.SetUpTest(c)
s.JujuOSEnvSuite.SetUpTest(c)
c.Assert(http.OutgoingAccessAllowed, gc.Equals, false)
if s.InitialLoggingConfig != "" {
_ = loggo.ConfigureLoggers(s.InitialLoggingConfig)
}
Expand Down
3 changes: 2 additions & 1 deletion worker/containerbroker/mocks/agent_mock.go

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

3 changes: 2 additions & 1 deletion worker/instancemutater/mocks/agent_mock.go

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

Loading

0 comments on commit d0612d5

Please sign in to comment.