summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHordur Freyr Yngvason <hfyngvason@gitlab.com>2019-07-10 11:29:59 +0200
committerHordur Freyr Yngvason <hfyngvason@gitlab.com>2019-07-10 11:29:59 +0200
commit685330181a33f5c9a933a9499c5354ad4be7fa0f (patch)
treea31d6a3a99ff9ab22823bd4a626529e92fd75408
parenta02d129400d62694bf4c030c6060fd4be06c2fc8 (diff)
downloadgitlab-ce-hfy/apply-knative-cluster-role-on-service-account-creation.tar.gz
-rw-r--r--lib/gitlab/kubernetes/role.rb1
-rw-r--r--spec/lib/gitlab/kubernetes/role_spec.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/kubernetes/role.rb b/lib/gitlab/kubernetes/role.rb
index c79b60c2833..096f60f0372 100644
--- a/lib/gitlab/kubernetes/role.rb
+++ b/lib/gitlab/kubernetes/role.rb
@@ -3,7 +3,6 @@
module Gitlab
module Kubernetes
class Role
-
def initialize(name:, namespace:, rules:)
@name = name
@namespace = namespace
diff --git a/spec/lib/gitlab/kubernetes/role_spec.rb b/spec/lib/gitlab/kubernetes/role_spec.rb
index 41d01bc6245..3a5cd3b6704 100644
--- a/spec/lib/gitlab/kubernetes/role_spec.rb
+++ b/spec/lib/gitlab/kubernetes/role_spec.rb
@@ -4,9 +4,9 @@ require 'spec_helper'
describe Gitlab::Kubernetes::Role do
let(:role) { described_class.new(name: name, namespace: namespace, rules: rules) }
-
let(:name) { 'example-name' }
let(:namespace) { 'example-namespace' }
+
let(:rules) do
[{
apiGroups: %w(hello.world),