Merge pull request #7107 from yanggangtony/update-configmaps

Fix docs: Use camel case for API objects: configmaps and secrets
This commit is contained in:
Daniel Jiang
2023-11-20 14:48:47 +08:00
committed by GitHub
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -541,7 +541,7 @@ High priorities:
- PVs go before PVCs because PVCs depend on them.
- PVCs go before pods or controllers so they can be mounted as volumes.
- Service accounts go before secrets so service account token secrets can be filled automatically.
- Secrets and config maps go before pods or controllers so they can be mounted
- Secrets and ConfigMaps go before pods or controllers so they can be mounted
as volumes.
- Limit ranges go before pods or controllers so pods can use them.
- Pods go before controllers so they can be explicitly restored and potentially
+1 -1
View File
@@ -46,7 +46,7 @@ func GetVolumesByPod(pod *corev1api.Pod, defaultVolumesToFsBackup bool) ([]strin
if pv.Secret != nil {
continue
}
// don't backup volumes mounting config maps. Config maps will be backed up separately.
// don't backup volumes mounting ConfigMaps. ConfigMaps will be backed up separately.
if pv.ConfigMap != nil {
continue
}
+1 -1
View File
@@ -222,7 +222,7 @@ func TestGetVolumesByPod(t *testing.T) {
},
},
{
name: "should exclude volumes mounting config maps",
name: "should exclude volumes mounting ConfigMaps",
defaultVolumesToFsBackup: true,
pod: &corev1api.Pod{
ObjectMeta: metav1.ObjectMeta{