Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b135444
Fix to use HasPrefix() if token doesn't have "Bearer " prefix. (#11098)
yangminzhu Jan 22, 2019
818e95a
Use kube.CreateClientset (#11074)
clyang82 Jan 22, 2019
94ecf10
Add Galley custom sources for known k8s types (#10995)
Jan 23, 2019
08be200
Update codecov (#11169)
hklai Jan 23, 2019
2809bd0
Wait for traffic to complete in test script (#11095)
ostromart Jan 23, 2019
3f05706
Location based Load Balancing (#10720)
hzxuzhonghu Jan 23, 2019
09aa7c3
Fix DestinationRule selection issue (#11153)
rshriram Jan 23, 2019
4fe8f49
refer to gateway using ns/name syntax in virtual service (#11127)
rshriram Jan 23, 2019
15736e4
fix rds push when pilot restart (#11176)
hzxuzhonghu Jan 23, 2019
55628f4
Fix compilation issue caused by bad merge (#11193)
rshriram Jan 23, 2019
d72c345
Fix unbound variable (#11194)
ostromart Jan 23, 2019
27c6ecc
Add init container to prometheus (#10714)
bianpengyuan Jan 23, 2019
f749512
update value for one namespace. (#11148)
Jan 23, 2019
af4250c
Fix typo (#11171)
wattli Jan 23, 2019
2be98a5
remove cached secret immediately after stream close (#11160)
quanjielin Jan 23, 2019
851be39
fix some minor issues: (#11100)
YaoZengzeng Jan 23, 2019
66153da
App prober config is passed as json string to pilot agent command fla…
Jan 23, 2019
7aa139c
Update statsd host address in template (#11138)
tak2siva Jan 23, 2019
4df6a55
deprecate service attributes (#11047)
kyessenov Jan 23, 2019
0179045
Update Jaeger to 1.9 (#11149)
objectiser Jan 23, 2019
de20b49
Add debug output (#11204)
ostromart Jan 23, 2019
5ea7962
Change new metrics config to match Task config and update tests to ma…
douglas-reid Jan 23, 2019
fc03e9f
Fix check for local test (#11215)
ostromart Jan 24, 2019
c7eb603
An option to allow upgrade script to test other cloud + fix helm issu…
linsun Jan 24, 2019
f2be1b9
Galley: Refactor runtime to support multiple processing paths (#11162)
Jan 24, 2019
29059c4
fix goroutine leak in mcp server (#11167)
ayj Jan 24, 2019
68bbc1b
Revert PR https://github.com/istio/istio/pull/10617 as it breaks k8s …
gargnupur Jan 24, 2019
ac78a55
Quick fixes for interception and debugging (#11065)
costinm Jan 24, 2019
a515477
Add output for failure cases (#11237)
ostromart Jan 24, 2019
82e5848
Update Envoy go-control-plane, Proxy and CNI (#11249)
venilnoronha Jan 25, 2019
1bdb96b
allow requestHeaderOperations and responseHeaderOperations to in a ru…
theganyo Jan 25, 2019
b77ceed
Set VALID_TOKEN to address SDS disconnection problem (#11242)
lei-tang Jan 25, 2019
efef2f1
Add forward/reverse MCP stack (#11040)
ayj Jan 25, 2019
f1eab0a
Fix shell redirect, cleanup (#11253)
ostromart Jan 25, 2019
8ed028f
Guard weighted TCP routed with proxy version check (#11252)
venilnoronha Jan 25, 2019
1c0ee7f
Allow short name in ServiceEntry. (#11243)
yangminzhu Jan 25, 2019
ac95ff3
Fix sidecars not retrieving updated mesh networks configuration (#11222)
ymesika Jan 25, 2019
f16f12d
fix WorkloadsByID concurrent read/write (#11224)
hzxuzhonghu Jan 25, 2019
f845f45
Fix a test flake. (#11086)
geeknoid Jan 25, 2019
9392d2c
Update envoyproxy/go-control-plane SHA to eb553e72 (#11274)
venilnoronha Jan 25, 2019
f8a1dbb
fix helm test on prometheus subchart. (#11264)
Jan 25, 2019
e0a8c49
set VALID_TOKEN for nodeagent->citadel (#11283)
quanjielin Jan 25, 2019
6f7a319
Add integration with Envoy's MySQL Proxy filter (#11279)
venilnoronha Jan 25, 2019
031b108
mixer: implement direct error response (#11197)
kyessenov Jan 26, 2019
a9aac59
Incremental EDS only need updated service names (#11117)
hzxuzhonghu Jan 28, 2019
2e4d19c
Configure envoy_bootstrap_v2.json to use the configured admin port (#…
joeyb Jan 28, 2019
63cbdbb
Allow ipv6 local traffic. (#10738)
arcimboldo Jan 28, 2019
91d8a80
Allow specifying multiple egress host entries with same namespace (#1…
rshriram Jan 28, 2019
1b4db6a
Galley: Include full Pod resource (#11323)
Jan 28, 2019
83c6bba
Delete the obsolete service control adapter. (#11275)
geeknoid Jan 28, 2019
9324b62
[DO NOT MERGE] Rollout Status timeout during e2e tests (#10996)
mbanikazemi Jan 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions Gopkg.lock

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

6 changes: 1 addition & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ignored = [

[[constraint]]
name = "github.com/envoyproxy/go-control-plane"
version = "^0.6.3"
version = "^0.6.7"

[[constraint]]
name = "github.com/fluent/fluent-logger-golang"
Expand Down Expand Up @@ -209,10 +209,6 @@ ignored = [
name = "github.com/opentracing/opentracing-go"
version = "1.0.2"

[[constraint]]
name = "github.com/pborman/uuid"
version = "1.1.0"

[[constraint]]
name = "github.com/pmezard/go-difflib"
version = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ ${ISTIO_BIN}/have_go_$(GO_VERSION_REQUIRED):
# Ensure expected GOPATH setup
.PHONY: check-tree
check-tree:
@if [ "$(ISTIO_GO)" != "$(GO_TOP)/src/istio.io/istio" ]; then \
echo Not building in expected path \'GOPATH/src/istio.io/istio\'. Make sure to clone Istio into that path. Istio root=$(ISTIO_GO), GO_TOP=$(GO_TOP) ; \
@if [ ! "$(ISTIO_GO)" -ef "$(GO_TOP)/src/istio.io/istio" ]; then \
echo Not building in expected path \'GOPATH/src/istio.io/istio\'. Make sure to clone Istio into that path. Istio root="$(ISTIO_GO)", GO_TOP="$(GO_TOP)" ; \
exit 1; fi

# Downloads envoy, based on the SHA defined in the base pilot Dockerfile
Expand Down
1 change: 1 addition & 0 deletions bin/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function cleanup() {
trap cleanup EXIT

# Setup environment needed by some tests.
make sync
make localTestEnv

# coverage test needs to run one package per command.
Expand Down
2 changes: 2 additions & 0 deletions bin/codecov_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if [[ -n "${CIRCLE_PR_NUMBER:-}" ]]; then

go get -u istio.io/test-infra/toolbox/githubctl
BASE_SHA=$("${GOPATH}"/bin/githubctl --token_file="${TMP_GITHUB_TOKEN}" --op=getBaseSHA --repo=istio --pr_num="${CIRCLE_PR_NUMBER}")
git reset HEAD --hard
git clean -f -d
git checkout "${BASE_SHA}"

Expand All @@ -56,6 +57,7 @@ if [[ -n "${CIRCLE_PR_NUMBER:-}" ]]; then
OUT_DIR="${BASELINE_PATH}" MAXPROCS="${MAXPROCS:-}" CODECOV_SKIP="${CODECOV_SKIP:-}" ./bin/codecov.sh

# Get back to the PR head
git reset HEAD --hard
git clean -f -d
git checkout "${CIRCLE_SHA1}"

Expand Down
9 changes: 6 additions & 3 deletions codecov.threshold
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ istio.io/istio/pilot/pkg/config/memory/monitor.go=30
istio.io/istio/pilot/pkg/proxy/envoy/v2=10
istio.io/istio/pilot/pkg/serviceregistry/consul/monitor.go=20
istio.io/istio/pkg/mcp/creds/watcher.go=100
istio.io/istio/pkg/test=100
istio.io/istio/security/proto=100
istio.io/istio/pkg/mcp/source/source.go=90
istio.io/istio/security/pkg/nodeagent=15
# Disable codecov check for testing and proto packages
istio.io/istio/galley/pkg/testing=100
istio.io/istio/pkg/test=100
istio.io/istio/security/proto=100
istio.io/istio/tests=100
istio.io/istio/mixer/pkg/adapter/test=100

# Temporary until integ tests are restored
istio.io/istio/pilot/pkg/networking/plugin=50
istio.io/istio/galley/pkg/runtime=30
istio.io/istio/galley/pkg/kube/converter/legacy/legacymixer.pb.go=10
istio.io/istio/galley/pkg/meshconfig/cache.go=100
istio.io/istio/pkg/mcp/server/monitoring.go=50
istio.io/istio/pilot/pkg/model/authentication.go=20
2 changes: 2 additions & 0 deletions galley/cmd/galley/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func GetRootCmd(args []string) *cobra.Command {
"DNS domain suffix")
rootCmd.PersistentFlags().BoolVar(&serverArgs.DisableResourceReadyCheck, "disableResourceReadyCheck", serverArgs.DisableResourceReadyCheck,
"Disable resource readiness checks. This allows Galley to start if not all resource types are supported")
rootCmd.PersistentFlags().StringSliceVar(&serverArgs.ExcludedResourceKinds, "excludedResourceKinds",
serverArgs.ExcludedResourceKinds, "Comma-separated list of resource kinds that should not generate source events")

serverArgs.IntrospectionOptions.AttachCobraFlags(rootCmd)

Expand Down
2 changes: 1 addition & 1 deletion galley/docker/Dockerfile.galley
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM scratch
FROM istionightly/base_debug
ADD galley /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/galley"]
33 changes: 11 additions & 22 deletions galley/pkg/metadata/kube/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,28 +336,6 @@ func init() {
Converter: converter.Get("identity"),
})

b.Add(schema.ResourceSpec{
Kind: "servicecontrolreport",
ListKind: "servicecontrolreportList",
Singular: "servicecontrolreport",
Plural: "servicecontrolreports",
Version: "v1alpha2",
Group: "config.istio.io",
Target: metadata.Types.Get("istio/config/v1alpha2/legacy/servicecontrolreports"),
Converter: converter.Get("identity"),
})

b.Add(schema.ResourceSpec{
Kind: "servicecontrol",
ListKind: "servicecontrolList",
Singular: "servicecontrol",
Plural: "servicecontrols",
Version: "v1alpha2",
Group: "config.istio.io",
Target: metadata.Types.Get("istio/config/v1alpha2/legacy/servicecontrols"),
Converter: converter.Get("identity"),
})

b.Add(schema.ResourceSpec{
Kind: "signalfx",
ListKind: "signalfxList",
Expand Down Expand Up @@ -611,6 +589,17 @@ func init() {
Converter: converter.Get("identity"),
})

b.Add(schema.ResourceSpec{
Kind: "Endpoints",
ListKind: "EndpointsList",
Singular: "endpoints",
Plural: "endpoints",
Version: "v1",
Group: "",
Target: metadata.Types.Get("k8s/core/v1/endpoints"),
Converter: converter.Get("identity"),
})

b.Add(schema.ResourceSpec{
Kind: "Node",
ListKind: "NodeList",
Expand Down
20 changes: 7 additions & 13 deletions galley/pkg/metadata/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ var (
// Reportnothing metadata
Reportnothing resource.Info

// Servicecontrolreport metadata
Servicecontrolreport resource.Info

// Servicecontrol metadata
Servicecontrol resource.Info

// Signalfx metadata
Signalfx resource.Info

Expand Down Expand Up @@ -202,6 +196,9 @@ var (
// ServiceRole metadata
ServiceRole resource.Info

// Endpoints metadata
Endpoints resource.Info

// Node metadata
Node resource.Info

Expand Down Expand Up @@ -305,12 +302,6 @@ func init() {
Reportnothing = b.Register(
"istio/config/v1alpha2/legacy/reportnothings",
"type.googleapis.com/type.googleapis.com/google.protobuf.Struct")
Servicecontrolreport = b.Register(
"istio/config/v1alpha2/legacy/servicecontrolreports",
"type.googleapis.com/type.googleapis.com/google.protobuf.Struct")
Servicecontrol = b.Register(
"istio/config/v1alpha2/legacy/servicecontrols",
"type.googleapis.com/type.googleapis.com/google.protobuf.Struct")
Signalfx = b.Register(
"istio/config/v1alpha2/legacy/signalfxs",
"type.googleapis.com/type.googleapis.com/google.protobuf.Struct")
Expand Down Expand Up @@ -380,12 +371,15 @@ func init() {
ServiceRole = b.Register(
"istio/rbac/v1alpha1/serviceroles",
"type.googleapis.com/istio.rbac.v1alpha1.ServiceRole")
Endpoints = b.Register(
"k8s/core/v1/endpoints",
"type.googleapis.com/k8s.io.api.core.v1.Endpoints")
Node = b.Register(
"k8s/core/v1/nodes",
"type.googleapis.com/k8s.io.api.core.v1.NodeSpec")
Pod = b.Register(
"k8s/core/v1/pods",
"type.googleapis.com/k8s.io.api.core.v1.PodSpec")
"type.googleapis.com/k8s.io.api.core.v1.Pod")
Service = b.Register(
"k8s/core/v1/services",
"type.googleapis.com/k8s.io.api.core.v1.ServiceSpec")
Expand Down
70 changes: 70 additions & 0 deletions galley/pkg/runtime/processing/dispatcher.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// Copyright 2019 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain accumulator copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package processing

import (
"istio.io/istio/galley/pkg/runtime/resource"
"istio.io/istio/pkg/log"
)

var scope = log.RegisterScope("processing", "Galley data processing", 0)

// Dispatcher is a Handler that can dispatch events to other Handlers, based on Collection.
type Dispatcher struct {
handlers map[resource.Collection][]Handler
}

var _ Handler = &Dispatcher{}

// Handle implements Handler
func (d *Dispatcher) Handle(e resource.Event) {
handlers, found := d.handlers[e.Entry.ID.Collection]
if !found {
scope.Warnf("Unhandled resource event: %v", e)
return
}

for _, h := range handlers {
h.Handle(e)
}
}

// DispatcherBuilder builds Dispatchers
type DispatcherBuilder struct {
handlers map[resource.Collection][]Handler
}

// NewDispatcherBuilder returns a new dispatcher dispatcher
func NewDispatcherBuilder() *DispatcherBuilder {
return &DispatcherBuilder{
handlers: make(map[resource.Collection][]Handler),
}
}

// Add a new handler for the given Collection
func (d *DispatcherBuilder) Add(t resource.Collection, h Handler) {
handlers := d.handlers[t]
handlers = append(handlers, h)
d.handlers[t] = handlers
}

// Build a Dispatcher
func (d *DispatcherBuilder) Build() *Dispatcher {
r := &Dispatcher{
handlers: d.handlers,
}
d.handlers = nil
return r
}
Loading