Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cloud
Merge requests
!1021
Issue
#3284108
: Refactor to update K8s resources
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3284108
: Refactor to update K8s resources
issue/cloud-3284108:3284108-refactor-to-update-k8s-resources
into
5.x
Overview
1
Commits
3
Pipelines
0
Changes
49
All threads resolved!
Hide all comments
Merged
Yas Naoi
requested to merge
issue/cloud-3284108:3284108-refactor-to-update-k8s-resources
into
5.x
3 years ago
Overview
1
Commits
3
Pipelines
0
Changes
49
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
5.x
version 12
ab4a9272
2 years ago
version 11
ab4a9272
2 years ago
version 10
bc3282db
2 years ago
version 9
bc3282db
2 years ago
version 8
dd4d3700
2 years ago
version 7
1a1da46c
2 years ago
version 6
1a1da46c
2 years ago
version 5
a8999b4a
3 years ago
version 4
5bb57e73
3 years ago
version 3
e51ff3a4
3 years ago
version 2
3d162d0b
3 years ago
version 1
e9708a35
3 years ago
5.x (base)
and
latest version
latest version
ab4a9272
3 commits,
2 years ago
version 12
ab4a9272
3 commits,
2 years ago
version 11
ab4a9272
3 commits,
2 years ago
version 10
bc3282db
3 commits,
2 years ago
version 9
bc3282db
3 commits,
2 years ago
version 8
dd4d3700
3 commits,
2 years ago
version 7
1a1da46c
3 commits,
2 years ago
version 6
1a1da46c
3 commits,
2 years ago
version 5
a8999b4a
6 commits,
3 years ago
version 4
5bb57e73
5 commits,
3 years ago
version 3
e51ff3a4
4 commits,
3 years ago
version 2
3d162d0b
1 commit,
3 years ago
version 1
e9708a35
1 commit,
3 years ago
49 files
+
269
−
1073
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
49
Search (e.g. *.vue) (Ctrl+P)
modules/cloud_service_providers/k8s/src/Service/K8sClientExtension/Collections/
K8s
ApiServiceCollection.php
→
modules/cloud_service_providers/k8s/src/Service/K8sClientExtension/Collections/ApiServiceCollection.php
+
4
−
4
Options
@@ -2,13 +2,13 @@
namespace
Drupal\k8s\Service\K8sClientExtension\Collections
;
use
Drupal\k8s\Service\K8sClientExtension\Models\
K8s
ApiService
Model
;
use
Drupal\k8s\Service\K8sClientExtension\Models\ApiService
;
use
Maclof\Kubernetes\Collections\Collection
;
/**
* K8s api services collection.
*/
class
K8s
ApiServiceCollection
extends
Collection
{
class
ApiServiceCollection
extends
Collection
{
/**
* The constructor.
@@ -31,11 +31,11 @@ class K8sApiServiceCollection extends Collection {
*/
protected
function
getApiServices
(
array
$items
):
array
{
foreach
(
$items
?:
[]
as
&
$item
)
{
if
(
$item
instanceof
K8s
ApiService
Model
)
{
if
(
$item
instanceof
ApiService
)
{
continue
;
}
$item
=
new
K8s
ApiService
Model
(
$item
);
$item
=
new
ApiService
(
$item
);
}
return
$items
;
Loading