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
d345b28d
Commit
d345b28d
authored
Sep 02, 2020
by
ap4y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add get_policy methods to the kube client
parent
b1070678
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lib/gitlab/kubernetes/kube_client.rb
lib/gitlab/kubernetes/kube_client.rb
+2
-0
spec/lib/gitlab/kubernetes/kube_client_spec.rb
spec/lib/gitlab/kubernetes/kube_client_spec.rb
+2
-0
No files found.
lib/gitlab/kubernetes/kube_client.rb
View file @
d345b28d
...
...
@@ -92,6 +92,7 @@ module Gitlab
# group client
delegate
:create_network_policy
,
:get_network_policies
,
:get_network_policy
,
:update_network_policy
,
:delete_network_policy
,
to: :networking_client
...
...
@@ -100,6 +101,7 @@ module Gitlab
# group client
delegate
:create_cilium_network_policy
,
:get_cilium_network_policies
,
:get_cilium_network_policy
,
:update_cilium_network_policy
,
:delete_cilium_network_policy
,
to: :cilium_networking_client
...
...
spec/lib/gitlab/kubernetes/kube_client_spec.rb
View file @
d345b28d
...
...
@@ -376,6 +376,7 @@ RSpec.describe Gitlab::Kubernetes::KubeClient do
[
:create_network_policy
,
:get_network_policies
,
:get_network_policy
,
:update_network_policy
,
:delete_network_policy
].
each
do
|
method
|
...
...
@@ -400,6 +401,7 @@ RSpec.describe Gitlab::Kubernetes::KubeClient do
[
:create_cilium_network_policy
,
:get_cilium_network_policies
,
:get_cilium_network_policy
,
:update_cilium_network_policy
,
:delete_cilium_network_policy
].
each
do
|
method
|
...
...
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