Closed Tristan-WorkGH closed 3 weeks ago
maybe the duplicated label app:gridsuite can be removed ? not sure if it needs to be in a component to be applied after other resources have been added.
EDIT: we can't remove commonLabels from the components (otherwise it doesn't get applied to the downstream resources) but we can remove it from the resources
does this have any effect on downstream users that import from this repo ?
@jonenst commented on Oct 3, 2024, 8:36 PM GMT+2:
does this have any effect on downstream users that import from this repo ?
Haven't try for now. Will do that before merging.
@Tristan-WorkGH commented on Oct 3, 2024, 8:42 PM GMT+2:
@jonenst commented on Oct 3, 2024, 8:36 PM GMT+2:
does this have any effect on downstream users that import from this repo ?
Haven't try for now. Will do that before merging.
Tested and no problems found.
Informations
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/bases/
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patches/
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patchesjson6902/
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patchesstrategicmerge/
An explanation of the difference at https://stackoverflow.com/a/63605421
Update
CLI version used:
live/local
```shell user@pc:.../deployment/k8s$ cd live/local user@pc:.../deployment/k8s/live/local$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. ```live/azure-dev
```shell user@pc:.../deployment/k8s/live/local$ cd ../azure-dev user@pc:.../deployment/k8s/live/azure-dev$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. ```live/azure-integ
```shell user@pc:.../deployment/k8s/live/azure-dev$ cd ../azure-integ user@pc:.../deployment/k8s/live/azure-integ$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. ```components/gridsuite
```shell user@pc:.../deployment/k8s/live/azure-integ$ cd ../../components/gridsuite user@pc:.../deployment/k8s/components/gridsuite$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```components/azure
```shell user@pc:.../deployment/k8s/components/gridsuite$ cd ../azure user@pc:.../deployment/k8s/components/azure$ kustomize edit fix # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels Warning: 'Fixed' kustomization now produces the error when running `kustomize build`: no matches for Id Deployment.v1.apps/case-server.[noNs]; failed to find unique target for patch Deployment.v1.apps/case-server.[noNs] ```overlays/azure
```shell user@pc:.../deployment/k8s/components/azure$ cd ../../overlays/azure user@pc:.../deployment/k8s/overlays/azure$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. ```bases/admingridsuite
```shell user@pc:.../deployment/k8s/overlays/azure$ cd ../../bases/admingridsuite user@pc:.../deployment/k8s/bases/admingridsuite$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. ```bases/gridsuite
```shell user@pc:.../deployment/k8s/bases/admingridsuite$ cd ../gridsuite user@pc:.../deployment/k8s/bases/gridsuite$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```bases/gridstudy
```shell user@pc:.../deployment/k8s/bases/gridsuite$ cd ../gridstudy user@pc:.../deployment/k8s/bases/gridstudy$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```bases/griddyna
```shell user@pc:.../deployment/k8s/bases/gridstudy$ cd ../griddyna user@pc:.../deployment/k8s/bases/griddyna$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```bases/gridmerge
```shell user@pc:.../deployment/k8s/bases/griddyna$ cd ../gridmerge user@pc:.../deployment/k8s/bases/gridmerge$ kustomize edit fix # Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```resources/common
```shell user@pc:.../deployment/k8s/bases/gridmerge$ cd ../../resources/common user@pc:.../deployment/k8s/resources/common$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```
```shell user@pc:.../deployment/k8s/resources/common$ cd ../admin user@pc:.../deployment/k8s/resources/admin$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```resources/admin
```shell user@pc:.../deployment/k8s/resources/admin$ cd ../dynamic-mapping user@pc:.../deployment/k8s/resources/dynamic-mapping$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```resources/dynamic-mapping
```shell user@pc:.../deployment/k8s/resources/dynamic-mapping$ cd ../merging user@pc:.../deployment/k8s/resources/merging$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```resources/merging
```shell user@pc:.../deployment/k8s/resources/merging$ cd ../study user@pc:.../deployment/k8s/resources/study$ kustomize edit fix Fixed fields: patchesJson6902 -> patches patchesStrategicMerge -> patches commonLabels -> labels ```resources/studyCheck no regression