Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

fix pluralization for resources ending in 's', and 'y' #88

Merged
merged 2 commits into from
May 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ var apiGroups = []APIGroup{
Versions: map[string][]Resource{
"v1beta1": []Resource{
{"PodDisruptionBudget", "", 0},
{"PodSecurityPolicy", "", NotNamespaced},
{"PodSecurityPolicy", "podsecuritypolicies", NotNamespaced},
},
},
},
Expand Down Expand Up @@ -265,7 +265,7 @@ var apiGroups = []APIGroup{
Group: "scheduling.k8s.io",
Versions: map[string][]Resource{
"v1alpha1": []Resource{
{"PriorityClass", "", NotNamespaced},
{"PriorityClass", "priorityclasses", NotNamespaced},
},
},
},
Expand All @@ -283,10 +283,10 @@ var apiGroups = []APIGroup{
Group: "storage.k8s.io",
Versions: map[string][]Resource{
"v1": []Resource{
{"StorageClass", "", NotNamespaced},
{"StorageClass", "storageclasses", NotNamespaced},
},
"v1beta1": []Resource{
{"StorageClass", "", NotNamespaced},
{"StorageClass", "storageclasses", NotNamespaced},
},
"v1alpha1": []Resource{
{"VolumeAttachment", "", NotNamespaced},
Expand Down