Skip to content

Commit 1710313

Browse files
authored
[master] Auto-update dependencies (#20)
Produced via: `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh` /assign tcnghia /cc tcnghia
1 parent 421cd31 commit 1710313

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ require (
1414
k8s.io/apimachinery v0.18.1
1515
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
1616
k8s.io/code-generator v0.18.0
17-
knative.dev/pkg v0.0.0-20200622135826-98f8a949a106
17+
knative.dev/pkg v0.0.0-20200623024526-fb0320d9287e
1818
knative.dev/sample-controller v0.0.0-20200510050845-bf7c19498b7e
19-
knative.dev/test-infra v0.0.0-20200619200026-0b0587234302
19+
knative.dev/test-infra v0.0.0-20200623005026-1f7e5f05c52b
2020
)
2121

2222
replace (

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,8 @@ knative.dev/pkg v0.0.0-20200603222317-b79e4a24ca50/go.mod h1:8IfPj/lpuKHHg82xZCl
13881388
knative.dev/pkg v0.0.0-20200611204322-2ddcfef739a2/go.mod h1:rA+FklsrVahwF4a+D63NyHJlzDoAFH81K4J5CYuE3bA=
13891389
knative.dev/pkg v0.0.0-20200619020725-7df8fc5d7743 h1:W1NKMizoXYYX5e2mkFXnn21T7X6ROKKwL8YetGu7xCQ=
13901390
knative.dev/pkg v0.0.0-20200619020725-7df8fc5d7743/go.mod h1:DquzK0hsLDcg2q63Sn+CngAyRwv4cKMpt5F19YzBfb0=
1391-
knative.dev/pkg v0.0.0-20200622135826-98f8a949a106 h1:ljnsa5o4ZRX/Qo3flVNnDf/0NeJ5usnqBMw1VNoOYME=
1392-
knative.dev/pkg v0.0.0-20200622135826-98f8a949a106/go.mod h1:DquzK0hsLDcg2q63Sn+CngAyRwv4cKMpt5F19YzBfb0=
1391+
knative.dev/pkg v0.0.0-20200623024526-fb0320d9287e h1:fmsw4i/We4S9yyaZadL2z8DKDIz7XzcY/v4yPGUmUA4=
1392+
knative.dev/pkg v0.0.0-20200623024526-fb0320d9287e/go.mod h1:DquzK0hsLDcg2q63Sn+CngAyRwv4cKMpt5F19YzBfb0=
13931393
knative.dev/sample-controller v0.0.0-20200510050845-bf7c19498b7e h1:I6nRhlOCuFMShAMRhbe9c0+pbfQHttUWZMqVVtRnNt0=
13941394
knative.dev/sample-controller v0.0.0-20200510050845-bf7c19498b7e/go.mod h1:D2ZDLrR9Dq9LiiVN7TatzI7WMcEPgk1MHbbhgBKE6W8=
13951395
knative.dev/test-infra v0.0.0-20200407185800-1b88cb3b45a5/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
@@ -1403,8 +1403,8 @@ knative.dev/test-infra v0.0.0-20200606045118-14ebc4a42974 h1:CrZmlbB+j3ZF/aTrfyy
14031403
knative.dev/test-infra v0.0.0-20200606045118-14ebc4a42974/go.mod h1://I6IZIF0QDgs5wotU243ZZ5cTpm6/GthayjUenBBc0=
14041404
knative.dev/test-infra v0.0.0-20200617235125-6382dba95484 h1:5D1Fm6aA1T1QQXLb1HkJ5t8gB9pTkhLYak1CCqIP+pE=
14051405
knative.dev/test-infra v0.0.0-20200617235125-6382dba95484/go.mod h1:+BfrTJpc++rH30gX/C0QY6NT2eYVzycll52uw6CrQnc=
1406-
knative.dev/test-infra v0.0.0-20200619200026-0b0587234302 h1:nGw173QprRCSZab6KT4uSj0GTp3WNRo0nfk9Lpo3F1I=
1407-
knative.dev/test-infra v0.0.0-20200619200026-0b0587234302/go.mod h1:H8QEB2Y35+vAuVtDbn7QBD+NQr9zQbbxNiovCLNH7F4=
1406+
knative.dev/test-infra v0.0.0-20200623005026-1f7e5f05c52b h1:qQTd9xCiV3/PVt2LsmELMVL2gT4eAScMaFrPqiQnt1I=
1407+
knative.dev/test-infra v0.0.0-20200623005026-1f7e5f05c52b/go.mod h1:H8QEB2Y35+vAuVtDbn7QBD+NQr9zQbbxNiovCLNH7F4=
14081408
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
14091409
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
14101410
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=

vendor/knative.dev/pkg/configmap/manual_watcher.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ import (
2626
type ManualWatcher struct {
2727
Namespace string
2828

29-
// Guards mutations to defaultImpl fields
30-
m sync.RWMutex
31-
29+
// Guards observers
30+
m sync.RWMutex
3231
observers map[string][]Observer
3332
}
3433

@@ -40,7 +39,7 @@ func (w *ManualWatcher) Watch(name string, o ...Observer) {
4039
defer w.m.Unlock()
4140

4241
if w.observers == nil {
43-
w.observers = make(map[string][]Observer, len(o))
42+
w.observers = make(map[string][]Observer, 1)
4443
}
4544
w.observers[name] = append(w.observers[name], o...)
4645
}
@@ -58,13 +57,8 @@ func (w *ManualWatcher) OnChange(configMap *corev1.ConfigMap) {
5857
// Within our namespace, take the lock and see if there are any registered observers.
5958
w.m.RLock()
6059
defer w.m.RUnlock()
61-
observers, ok := w.observers[configMap.Name]
62-
if !ok {
63-
return // No observers.
64-
}
65-
6660
// Iterate over the observers and invoke their callbacks.
67-
for _, o := range observers {
61+
for _, o := range w.observers[configMap.Name] {
6862
o(configMap)
6963
}
7064
}

vendor/knative.dev/pkg/webhook/conversion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func conversionHandler(rootLogger *zap.SugaredLogger, stats StatsReporter, c Con
5454

5555
ctx := logging.WithLogger(r.Context(), logger)
5656
response := apixv1.ConversionReview{
57+
// Use the same type meta as the request - this is required by the K8s API
58+
// note: v1beta1 & v1 ConversionReview shapes are identical so even though
59+
// we're using v1 types we still support v1beta1 conversion requests
60+
TypeMeta: review.TypeMeta,
5761
Response: c.Convert(ctx, review.Request),
5862
}
5963

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ k8s.io/utils/buffer
707707
k8s.io/utils/integer
708708
k8s.io/utils/pointer
709709
k8s.io/utils/trace
710-
# knative.dev/pkg v0.0.0-20200622135826-98f8a949a106
710+
# knative.dev/pkg v0.0.0-20200623024526-fb0320d9287e
711711
## explicit
712712
knative.dev/pkg/apis
713713
knative.dev/pkg/apis/duck
@@ -784,7 +784,7 @@ knative.dev/sample-controller/pkg/client/injection/informers/samples/v1alpha1/ad
784784
knative.dev/sample-controller/pkg/client/injection/reconciler/samples/v1alpha1/addressableservice
785785
knative.dev/sample-controller/pkg/client/listers/samples/v1alpha1
786786
knative.dev/sample-controller/pkg/reconciler/addressableservice
787-
# knative.dev/test-infra v0.0.0-20200619200026-0b0587234302
787+
# knative.dev/test-infra v0.0.0-20200623005026-1f7e5f05c52b
788788
## explicit
789789
knative.dev/test-infra/scripts
790790
# sigs.k8s.io/yaml v1.2.0

0 commit comments

Comments
 (0)