class ChaosHostIdentityProvider extends PropertyDefinerBase {

    String getKubernetesIdentifier () {
        String namespace = getKubernetesNamespace();
        if (namespace == null) return null;
        String hostname = getHostName();
        if (hostname == null) return "k8s:" + namespace;
        return "k8s:" + hostname + "." + namespace;
    }

}