Commit c0133a59 authored by Grzegorz Bizon's avatar Grzegorz Bizon

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
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Clusters module Clusters
module Applications module Applications
class Knative < ApplicationRecord class Knative < ApplicationRecord
VERSION = '0.6.0' VERSION = '0.7.0'
REPOSITORY = 'https://storage.googleapis.com/triggermesh-charts' REPOSITORY = 'https://storage.googleapis.com/triggermesh-charts'
METRICS_CONFIG = 'https://storage.googleapis.com/triggermesh-charts/istio-metrics.yaml' METRICS_CONFIG = 'https://storage.googleapis.com/triggermesh-charts/istio-metrics.yaml'
FETCH_IP_ADDRESS_DELAY = 30.seconds FETCH_IP_ADDRESS_DELAY = 30.seconds
......
...@@ -44,7 +44,7 @@ module Projects ...@@ -44,7 +44,7 @@ module Projects
end end
expose :url do |service| expose :url do |service|
"http://#{service.dig('status', 'domain')}" service.dig('status', 'url')
end end
expose :description do |service| expose :description do |service|
......
---
title: Knative version bump 0.6 -> 0.7
merge_request: 17367
author: Chris Baumbauer
type: changed
...@@ -61,4 +61,10 @@ ...@@ -61,4 +61,10 @@
- virtualservices.networking.istio.io - virtualservices.networking.istio.io
- rbacconfigs.rbac.istio.io - rbacconfigs.rbac.istio.io
- servicerolebindings.rbac.istio.io - servicerolebindings.rbac.istio.io
- serviceroles.rbac.istio.io - serviceroles.rbac.istio.io
\ No newline at end of file - 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
...@@ -209,6 +209,6 @@ panel_groups: ...@@ -209,6 +209,6 @@ panel_groups:
weight: 1 weight: 1
metrics: metrics:
- id: system_metrics_knative_function_invocation_count - 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 label: invocations / minute
unit: requests unit: requests
# 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
...@@ -119,7 +119,7 @@ describe Clusters::Applications::Knative do ...@@ -119,7 +119,7 @@ describe Clusters::Applications::Knative do
subject { knative.install_command } subject { knative.install_command }
it 'is initialized with latest version' do it 'is initialized with latest version' do
expect(subject.version).to eq('0.6.0') expect(subject.version).to eq('0.7.0')
end end
it_behaves_like 'a command' it_behaves_like 'a command'
......
...@@ -410,8 +410,10 @@ module KubernetesHelpers ...@@ -410,8 +410,10 @@ module KubernetesHelpers
"generation" => 2 "generation" => 2
}, },
"status" => { "status" => {
"domain" => "#{name}.#{namespace}.#{domain}", "url" => "http://#{name}.#{namespace}.#{domain}",
"domainInternal" => "#{name}.#{namespace}.svc.cluster.local", "address" => {
"url" => "#{name}.#{namespace}.svc.cluster.local"
},
"latestCreatedRevisionName" => "#{name}-00002", "latestCreatedRevisionName" => "#{name}-00002",
"latestReadyRevisionName" => "#{name}-00002", "latestReadyRevisionName" => "#{name}-00002",
"observedGeneration" => 2 "observedGeneration" => 2
...@@ -437,8 +439,10 @@ module KubernetesHelpers ...@@ -437,8 +439,10 @@ module KubernetesHelpers
} }
}, },
"status" => { "status" => {
"domain" => "#{name}.#{namespace}.#{domain}", "url" => "http://#{name}.#{namespace}.#{domain}",
"domainInternal" => "#{name}.#{namespace}.svc.cluster.local", "address" => {
"url" => "#{name}.#{namespace}.svc.cluster.local"
},
"latestCreatedRevisionName" => "#{name}-00002", "latestCreatedRevisionName" => "#{name}-00002",
"latestReadyRevisionName" => "#{name}-00002", "latestReadyRevisionName" => "#{name}-00002",
"observedGeneration" => 2 "observedGeneration" => 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment