Do not apply version/managed-by labels via Kustomize commonLabels
Kustomize commonLabels will impact the selector, this will cause orphaning problems between versions.
@@ -28,7 +28,6 @@ COPY . /workspace/
RUN sed -i "s|IMG|${IMG%:*}|g" /workspace/chart/redskyops/values.yaml && \
sed -i "s|TAG|${IMG##*:}|g" /workspace/chart/redskyops/values.yaml && \
echo "appVersion: ${VERSION}" >> /workspace/chart/redskyops/Chart.yaml && \
- cd /workspace/install && kustomize edit add label "app.kubernetes.io/version:${VERSION},app.kubernetes.io/managed-by:redskyctl" && \
cd /workspace/manager && kustomize edit set image controller=${IMG} && \
if [ -n "${IMG##*/*}" ] ; then cd /workspace/default; kustomize edit add patch manager_image_pull_policy.yaml; fi && \
mkdir -p /workspace/base && touch /workspace/base/kustomization.yaml && \
