Skip to content

Commit 0ab5b3a

Browse files
committed
Adjust function names to canonicalized kind names
1 parent e0462fe commit 0ab5b3a

9 files changed

+15
-15
lines changed

library/Kubernetes/Common/Links.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
abstract class Links
3030
{
31-
public static function configMap(ConfigMap $configMap): Url
31+
public static function configmap(ConfigMap $configMap): Url
3232
{
3333
return Url::fromPath('kubernetes/configmap', ['id' => (string) Uuid::fromBytes($configMap->uuid)]);
3434
}
@@ -38,12 +38,12 @@ public static function container(Container $container): Url
3838
return Url::fromPath('kubernetes/container', ['id' => (string) Uuid::fromBytes($container->uuid)]);
3939
}
4040

41-
public static function cronJob(CronJob $cronjob): Url
41+
public static function cronjob(CronJob $cronjob): Url
4242
{
4343
return Url::fromPath('kubernetes/cronjob', ['id' => (string) Uuid::fromBytes($cronjob->uuid)]);
4444
}
4545

46-
public static function daemonSet(DaemonSet $daemonSet): Url
46+
public static function daemonset(DaemonSet $daemonSet): Url
4747
{
4848
return Url::fromPath('kubernetes/daemonset', ['id' => (string) Uuid::fromBytes($daemonSet->uuid)]);
4949
}
@@ -83,7 +83,7 @@ public static function node(Node $node): Url
8383
return Url::fromPath('kubernetes/node', ['id' => (string) Uuid::fromBytes($node->uuid)]);
8484
}
8585

86-
public static function persistentVolume(PersistentVolume $persistentVolume): Url
86+
public static function persistentvolume(PersistentVolume $persistentVolume): Url
8787
{
8888
return Url::fromPath(
8989
'kubernetes/persistentvolume',
@@ -96,15 +96,15 @@ public static function pod(Pod $pod): Url
9696
return Url::fromPath('kubernetes/pod', ['id' => (string) Uuid::fromBytes($pod->uuid)]);
9797
}
9898

99-
public static function pvc(PersistentVolumeClaim $persistentVolumeClaim): Url
99+
public static function persistentvolumeclaim(PersistentVolumeClaim $persistentVolumeClaim): Url
100100
{
101101
return Url::fromPath(
102102
'kubernetes/persistentvolumeclaim',
103103
['id' => (string) Uuid::fromBytes($persistentVolumeClaim->uuid)]
104104
);
105105
}
106106

107-
public static function replicaSet(ReplicaSet $replicaSet): Url
107+
public static function replicaset(ReplicaSet $replicaSet): Url
108108
{
109109
return Url::fromPath('kubernetes/replicaset', ['id' => (string) Uuid::fromBytes($replicaSet->uuid)]);
110110
}
@@ -127,7 +127,7 @@ public static function sidecarContainer(SidecarContainer $sidecarContainer): Url
127127
);
128128
}
129129

130-
public static function statefulSet(StatefulSet $statefulSet): Url
130+
public static function statefulset(StatefulSet $statefulSet): Url
131131
{
132132
return Url::fromPath('kubernetes/statefulset', ['id' => (string) Uuid::fromBytes($statefulSet->uuid)]);
133133
}

library/Kubernetes/Web/ConfigMapListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
4343
new HtmlElement('i', new Attributes(['class' => 'icon kicon-config-map'])),
4444
new Text($this->item->name)
4545
),
46-
Links::configMap($this->item),
46+
Links::configmap($this->item),
4747
new Attributes(['class' => 'subject'])
4848
)
4949
);

library/Kubernetes/Web/ContainerMountTable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function assemble(): void
7272
if ($column === 'source') {
7373
$content = new Link(
7474
$podPvc->claim_name,
75-
Links::pvc($pvc),
75+
Links::persistentvolumeclaim($pvc),
7676
['class' => 'subject']
7777
);
7878
} else {

library/Kubernetes/Web/CronJobListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
102102
new HtmlElement('i', new Attributes(['class' => 'icon kicon-cronjob'])),
103103
new Text($this->item->name)
104104
),
105-
Links::cronJob($this->item),
105+
Links::cronjob($this->item),
106106
new Attributes(['class' => 'subject'])
107107
)
108108
);

library/Kubernetes/Web/DaemonSetListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
116116
new HtmlElement('i', new Attributes(['class' => 'icon kicon-daemon-set'])),
117117
new Text($this->item->name)
118118
),
119-
Links::daemonSet($this->item),
119+
Links::daemonset($this->item),
120120
new Attributes(['class' => 'subject'])
121121
)
122122
],

library/Kubernetes/Web/PersistentVolumeClaimListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
121121
new HtmlElement('i', new Attributes(['class' => 'icon kicon-pvc'])),
122122
new Text($this->item->name)
123123
),
124-
Links::pvc($this->item),
124+
Links::persistentvolumeclaim($this->item),
125125
new Attributes(['class' => 'subject'])
126126
)
127127
],

library/Kubernetes/Web/PersistentVolumeListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
111111
new HtmlElement('i', new Attributes(['class' => 'icon kicon-persistent-volume'])),
112112
new Text($this->item->name)
113113
),
114-
Links::persistentVolume($this->item),
114+
Links::persistentvolume($this->item),
115115
new Attributes(['class' => 'subject'])
116116
),
117117
new HtmlElement(

library/Kubernetes/Web/ReplicaSetListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
111111
new HtmlElement('i', new Attributes(['class' => 'icon kicon-replica-set'])),
112112
new Text($this->item->name)
113113
),
114-
Links::replicaSet($this->item),
114+
Links::replicaset($this->item),
115115
new Attributes(['class' => 'subject'])
116116
)
117117
],

library/Kubernetes/Web/StatefulSetListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
137137
new HtmlElement('i', new Attributes(['class' => 'icon kicon-stateful-set'])),
138138
new Text($this->item->name)
139139
),
140-
Links::statefulSet($this->item),
140+
Links::statefulset($this->item),
141141
new Attributes(['class' => 'subject'])
142142
)
143143
],

0 commit comments

Comments
 (0)