Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c0133a59
Commit
c0133a59
authored
Oct 10, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '30035-update-knative-to-0-7' into 'master'
Update Knative to 0.7 See merge request gitlab-org/gitlab!17367
parents
38ed02eb
0db43091
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
9 deletions
+37
-9
app/models/clusters/applications/knative.rb
app/models/clusters/applications/knative.rb
+1
-1
app/serializers/projects/serverless/service_entity.rb
app/serializers/projects/serverless/service_entity.rb
+1
-1
changelogs/unreleased/knative-0-7.yml
changelogs/unreleased/knative-0-7.yml
+5
-0
config/knative/api_resources.yml
config/knative/api_resources.yml
+7
-1
config/prometheus/common_metrics.yml
config/prometheus/common_metrics.yml
+1
-1
db/post_migrate/20190819231552_update_knative_prometheus_query_for_invocation_count.rb
...2_update_knative_prometheus_query_for_invocation_count.rb
+13
-0
spec/models/clusters/applications/knative_spec.rb
spec/models/clusters/applications/knative_spec.rb
+1
-1
spec/support/helpers/kubernetes_helpers.rb
spec/support/helpers/kubernetes_helpers.rb
+8
-4
No files found.
app/models/clusters/applications/knative.rb
View file @
c0133a59
...
...
@@ -3,7 +3,7 @@
module
Clusters
module
Applications
class
Knative
<
ApplicationRecord
VERSION
=
'0.
6
.0'
VERSION
=
'0.
7
.0'
REPOSITORY
=
'https://storage.googleapis.com/triggermesh-charts'
METRICS_CONFIG
=
'https://storage.googleapis.com/triggermesh-charts/istio-metrics.yaml'
FETCH_IP_ADDRESS_DELAY
=
30
.
seconds
...
...
app/serializers/projects/serverless/service_entity.rb
View file @
c0133a59
...
...
@@ -44,7 +44,7 @@ module Projects
end
expose
:url
do
|
service
|
"http://
#{
service
.
dig
(
'status'
,
'domain'
)
}
"
service
.
dig
(
'status'
,
'url'
)
end
expose
:description
do
|
service
|
...
...
changelogs/unreleased/knative-0-7.yml
0 → 100644
View file @
c0133a59
---
title
:
Knative version bump 0.6 ->
0.7
merge_request
:
17367
author
:
Chris Baumbauer
type
:
changed
config/knative/api_resources.yml
View file @
c0133a59
...
...
@@ -62,3 +62,9 @@
-
rbacconfigs.rbac.istio.io
-
servicerolebindings.rbac.istio.io
-
serviceroles.rbac.istio.io
-
cloudwatches.config.istio.io
-
clusterrbacconfigs.rbac.istio.io
-
dogstatsds.config.istio.io
-
ingresses.networking.internal.knative.dev
-
sidecars.networking.istio.io
-
zipkins.config.istio.io
config/prometheus/common_metrics.yml
View file @
c0133a59
...
...
@@ -209,6 +209,6 @@ panel_groups:
weight
:
1
metrics
:
-
id
:
system_metrics_knative_function_invocation_count
query_range
:
'
floor(sum(rate(istio_revision_request_count{destination_configuration="%{function_name}",
destination_namespace="%{kube_namespace}"}[1m])/3
))'
query_range
:
'
sum(ceil(rate(istio_requests_total{destination_service_namespace="%{kube_namespace}",
destination_app=~"%{function_name}.*"}[1m])*60
))'
label
:
invocations / minute
unit
:
requests
db/post_migrate/20190819231552_update_knative_prometheus_query_for_invocation_count.rb
0 → 100644
View file @
c0133a59
# frozen_string_literal: true
class
UpdateKnativePrometheusQueryForInvocationCount
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
up
::
Gitlab
::
DatabaseImporters
::
CommonMetrics
::
Importer
.
new
.
execute
end
def
down
# no-op
end
end
spec/models/clusters/applications/knative_spec.rb
View file @
c0133a59
...
...
@@ -119,7 +119,7 @@ describe Clusters::Applications::Knative do
subject
{
knative
.
install_command
}
it
'is initialized with latest version'
do
expect
(
subject
.
version
).
to
eq
(
'0.
6
.0'
)
expect
(
subject
.
version
).
to
eq
(
'0.
7
.0'
)
end
it_behaves_like
'a command'
...
...
spec/support/helpers/kubernetes_helpers.rb
View file @
c0133a59
...
...
@@ -410,8 +410,10 @@ module KubernetesHelpers
"generation"
=>
2
},
"status"
=>
{
"domain"
=>
"
#{
name
}
.
#{
namespace
}
.
#{
domain
}
"
,
"domainInternal"
=>
"
#{
name
}
.
#{
namespace
}
.svc.cluster.local"
,
"url"
=>
"http://
#{
name
}
.
#{
namespace
}
.
#{
domain
}
"
,
"address"
=>
{
"url"
=>
"
#{
name
}
.
#{
namespace
}
.svc.cluster.local"
},
"latestCreatedRevisionName"
=>
"
#{
name
}
-00002"
,
"latestReadyRevisionName"
=>
"
#{
name
}
-00002"
,
"observedGeneration"
=>
2
...
...
@@ -437,8 +439,10 @@ module KubernetesHelpers
}
},
"status"
=>
{
"domain"
=>
"
#{
name
}
.
#{
namespace
}
.
#{
domain
}
"
,
"domainInternal"
=>
"
#{
name
}
.
#{
namespace
}
.svc.cluster.local"
,
"url"
=>
"http://
#{
name
}
.
#{
namespace
}
.
#{
domain
}
"
,
"address"
=>
{
"url"
=>
"
#{
name
}
.
#{
namespace
}
.svc.cluster.local"
},
"latestCreatedRevisionName"
=>
"
#{
name
}
-00002"
,
"latestReadyRevisionName"
=>
"
#{
name
}
-00002"
,
"observedGeneration"
=>
2
...
...
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