datastax / kaap

KAAP, Kubernetes Autoscaling for Apache Pulsar
https://datastax.github.io/kaap/
Apache License 2.0
45 stars 15 forks source link

Migration tool: strip out runtime k8s annotations #131

Closed nicoloboschi closed 1 year ago

nicoloboschi commented 1 year ago

Fixes: https://github.com/datastax/kaap/issues/119

private static boolean keepAnnotation(Map.Entry<String, ?> e) {
        final String key = e.getKey();
        if (key.equals("checksum/config")) {
            return false;
        }
        if (key.startsWith("kubectl.")) {
            return false;
        }
        if (key.startsWith("meta.helm.sh/")) {
            return false;
        }
        if (key.startsWith("deployment.kubernetes.io")) {
            return false;
        }
        return true;
    }