diff options
author | Chris Baumbauer <cab@cabnetworks.net> | 2018-10-28 17:36:26 -0700 |
---|---|---|
committer | Chris Baumbauer <cab@cabnetworks.net> | 2018-10-28 17:36:26 -0700 |
commit | 623940bfa11b7b35613645bf3c4264605f0d33c0 (patch) | |
tree | 43f4a417e2782468c4f31c21738fd50e718e1fa9 /app/models/clusters | |
parent | 50a708f50715c01e8bcbb4b930813d26475d1049 (diff) | |
download | gitlab-ce-623940bfa11b7b35613645bf3c4264605f0d33c0.tar.gz |
Add knative model tests
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/applications/knative.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/app/models/clusters/applications/knative.rb b/app/models/clusters/applications/knative.rb index be196331be5..916dabdd0db 100644 --- a/app/models/clusters/applications/knative.rb +++ b/app/models/clusters/applications/knative.rb @@ -3,26 +3,23 @@ module Clusters module Applications class Knative < ActiveRecord::Base - VERSION = '0.1.2'.freeze + VERSION = '0.1.3'.freeze REPOSITORY = 'https://storage.googleapis.com/triggermesh-charts'.freeze + # This is required for helm version <= 2.10.x in order to support + # Setting up CRDs + ISTIO_CRDS = 'http://cabnetworks.net/triggermesh-charts/istio-crds.yaml'.freeze + self.table_name = 'clusters_applications_knative' include ::Clusters::Concerns::ApplicationCore include ::Clusters::Concerns::ApplicationStatus include ::Clusters::Concerns::ApplicationVersion include ::Clusters::Concerns::ApplicationData - include AfterCommitQueue default_value_for :version, VERSION default_value_for :domainname, '' - def set_initial_status - return unless not_installable? - - self.status = 'installable' if cluster&.platform_kubernetes_active? - end - def chart 'knative/knative' end |