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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
81d2c7b6
Commit
81d2c7b6
authored
Apr 17, 2019
by
Chris Baumbauer
Committed by
Douglas Barbosa Alexandre
Apr 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump version of knative from 0.3 -> 0.5
parent
dd7cb7bc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
4 deletions
+29
-4
app/models/clusters/applications/knative.rb
app/models/clusters/applications/knative.rb
+1
-1
changelogs/unreleased/knative-0-5.yml
changelogs/unreleased/knative-0-5.yml
+5
-0
config/prometheus/common_metrics.yml
config/prometheus/common_metrics.yml
+1
-1
db/migrate/20190408163745_prometheus_knative05_fix.rb
db/migrate/20190408163745_prometheus_knative05_fix.rb
+20
-0
db/schema.rb
db/schema.rb
+1
-1
spec/models/clusters/applications/knative_spec.rb
spec/models/clusters/applications/knative_spec.rb
+1
-1
No files found.
app/models/clusters/applications/knative.rb
View file @
81d2c7b6
...
...
@@ -3,7 +3,7 @@
module
Clusters
module
Applications
class
Knative
<
ApplicationRecord
VERSION
=
'0.
3
.0'
.
freeze
VERSION
=
'0.
5
.0'
.
freeze
REPOSITORY
=
'https://storage.googleapis.com/triggermesh-charts'
.
freeze
METRICS_CONFIG
=
'https://storage.googleapis.com/triggermesh-charts/istio-metrics.yaml'
.
freeze
FETCH_IP_ADDRESS_DELAY
=
30
.
seconds
...
...
changelogs/unreleased/knative-0-5.yml
0 → 100644
View file @
81d2c7b6
---
title
:
Knative version bump 0.3 ->
0.5
merge_request
:
author
:
Chris Baumbauer <cab@cabnetworks.net>
type
:
changed
config/prometheus/common_metrics.yml
View file @
81d2c7b6
...
...
@@ -266,6 +266,6 @@
weight
:
1
queries
:
-
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])
*30
))'
query_range
:
'
floor(sum(rate(istio_revision_request_count{destination_configuration="%{function_name}",
destination_namespace="%{kube_namespace}"}[1m])
/3
))'
label
:
invocations / minute
unit
:
requests
db/migrate/20190408163745_prometheus_knative05_fix.rb
0 → 100644
View file @
81d2c7b6
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
PrometheusKnative05Fix
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
require
Rails
.
root
.
join
(
'db/importers/common_metrics_importer.rb'
)
DOWNTIME
=
false
def
up
Importers
::
CommonMetricsImporter
.
new
.
execute
end
def
down
# no-op
end
end
db/schema.rb
View file @
81d2c7b6
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20190
3261640
45
)
do
ActiveRecord
::
Schema
.
define
(
version:
20190
4081637
45
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
spec/models/clusters/applications/knative_spec.rb
View file @
81d2c7b6
...
...
@@ -109,7 +109,7 @@ describe Clusters::Applications::Knative do
subject
{
knative
.
install_command
}
it
'is initialized with latest version'
do
expect
(
subject
.
version
).
to
eq
(
'0.
3
.0'
)
expect
(
subject
.
version
).
to
eq
(
'0.
5
.0'
)
end
it_behaves_like
'a command'
...
...
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