Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
288dbd03
Commit
288dbd03
authored
Feb 27, 2018
by
Marek Siarkowicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fluentd-gcp addon] Fix passing location to event exporter
parent
a8178705
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
event-exporter.yaml
cluster/addons/fluentd-gcp/event-exporter.yaml
+1
-1
basic.go
test/e2e/instrumentation/logging/stackdrvier/basic.go
+2
-1
wait.go
test/e2e/instrumentation/logging/utils/wait.go
+13
-0
No files found.
cluster/addons/fluentd-gcp/event-exporter.yaml
View file @
288dbd03
...
@@ -50,7 +50,7 @@ spec:
...
@@ -50,7 +50,7 @@ spec:
image
:
k8s.gcr.io/event-exporter:v0.1.8
image
:
k8s.gcr.io/event-exporter:v0.1.8
command
:
command
:
-
/event-exporter
-
/event-exporter
-
-sink-opts=
"-location={{ event_exporter_zone }}"
-
-sink-opts=
-location={{ event_exporter_zone }}
# BEGIN_PROMETHEUS_TO_SD
# BEGIN_PROMETHEUS_TO_SD
-
name
:
prometheus-to-sd-exporter
-
name
:
prometheus-to-sd-exporter
image
:
k8s.gcr.io/prometheus-to-sd:v0.2.4
image
:
k8s.gcr.io/prometheus-to-sd:v0.2.4
...
...
test/e2e/instrumentation/logging/stackdrvier/basic.go
View file @
288dbd03
...
@@ -162,7 +162,8 @@ var _ = instrumentation.SIGDescribe("Cluster level logging implemented by Stackd
...
@@ -162,7 +162,8 @@ var _ = instrumentation.SIGDescribe("Cluster level logging implemented by Stackd
}()
}()
ginkgo
.
By
(
"Waiting for events to ingest"
)
ginkgo
.
By
(
"Waiting for events to ingest"
)
c
:=
utils
.
NewLogChecker
(
p
,
utils
.
UntilFirstEntry
,
utils
.
JustTimeout
,
""
)
zone
:=
framework
.
TestContext
.
CloudConfig
.
Zone
c
:=
utils
.
NewLogChecker
(
p
,
utils
.
UntilFirstEntryFromZone
(
zone
),
utils
.
JustTimeout
,
""
)
err
:=
utils
.
WaitForLogs
(
c
,
ingestionInterval
,
ingestionTimeout
)
err
:=
utils
.
WaitForLogs
(
c
,
ingestionInterval
,
ingestionTimeout
)
framework
.
ExpectNoError
(
err
)
framework
.
ExpectNoError
(
err
)
})
})
...
...
test/e2e/instrumentation/logging/utils/wait.go
View file @
288dbd03
...
@@ -55,6 +55,19 @@ func UntilFirstEntryFromLog(log string) IngestionPred {
...
@@ -55,6 +55,19 @@ func UntilFirstEntryFromLog(log string) IngestionPred {
}
}
}
}
// UntilFirstEntryFromZone is a IngestionPred that checks that at least one
// entry from the log with a given name was ingested.
func
UntilFirstEntryFromZone
(
zone
string
)
IngestionPred
{
return
func
(
_
string
,
entries
[]
LogEntry
)
(
bool
,
error
)
{
for
_
,
e
:=
range
entries
{
if
e
.
Location
==
zone
{
return
true
,
nil
}
}
return
false
,
nil
}
}
// TimeoutFun is a function that is called when the waiting times out.
// TimeoutFun is a function that is called when the waiting times out.
type
TimeoutFun
func
([]
string
,
[]
bool
)
error
type
TimeoutFun
func
([]
string
,
[]
bool
)
error
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment