diff --git a/go.mod b/go.mod index 4831f68..1b80e1f 100644 --- a/go.mod +++ b/go.mod @@ -12,9 +12,9 @@ require ( github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.4.2 - github.com/stretchr/testify v1.4.0 + github.com/stretchr/testify v1.5.1 github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5 - github.com/yahoo/athenz v1.8.40 + github.com/yahoo/athenz v1.9.30 gopkg.in/natefinch/lumberjack.v2 v2.0.0 k8s.io/api v0.19.0 k8s.io/apimachinery v0.19.0 diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index a91b7eb..df37bd5 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -294,7 +294,8 @@ func (c *Controller) sync(domain string) error { // zmsGetSignedDomains - make http request to zms API to fetch domain data func (c *Controller) zmsGetSignedDomains(domain string) (*zms.SignedDomains, bool, error) { d := zms.DomainName(domain) - signedDomain, _, err := c.zmsClient.GetSignedDomains(d, "", "", "") + master := false + signedDomain, _, err := c.zmsClient.GetSignedDomains(d, "", "", &master, "") if err != nil { return nil, false, err } diff --git a/pkg/controller/controller_test.go b/pkg/controller/controller_test.go index ceced41..f254666 100644 --- a/pkg/controller/controller_test.go +++ b/pkg/controller/controller_test.go @@ -112,6 +112,7 @@ func getFakeDomain() zms.SignedDomain { }, Services: []*zms.ServiceIdentity{}, Entities: []*zms.Entity{}, + Groups: []*zms.Group{}, }, KeyId: "colo-env-1.1", Signature: "signature", diff --git a/pkg/cron/cron.go b/pkg/cron/cron.go index 9770e0f..7da2a42 100644 --- a/pkg/cron/cron.go +++ b/pkg/cron/cron.go @@ -95,7 +95,8 @@ func notifyOnErr(err error, backoffDelay time.Duration) { // RequestCall - ZMS call for update crons func (c *Cron) requestCall() error { - domains, etag, err := c.zmsClient.GetSignedDomains("", "true", "", c.etag) + master := false + domains, etag, err := c.zmsClient.GetSignedDomains("", "true", "", &master, c.etag) if err != nil { return fmt.Errorf("Error getting latest updated domains from ZMS API. Error: %v", err) }