private void updateKerberosIdentities(AbstractKerberosDescriptorContainer descriptorContainer) {
    if (descriptorContainer.getIdentities() == null)
      return;
    descriptorContainer.getIdentities().stream()
            .filter(identityDescriptor -> identityDescriptor.getReference() != null && identityDescriptor.getReference().contains(AMBARI_INFRA_OLD_NAME))
            .forEach(identityDescriptor -> identityDescriptor.setReference(identityDescriptor.getReference().replace(AMBARI_INFRA_OLD_NAME, AMBARI_INFRA_NEW_NAME)));
    descriptorContainer.getIdentities().stream()
            .filter(identityDescriptor -> identityDescriptor.getWhen() != null).collect(Collectors.toList())
            .forEach(identityDescriptor -> {
              Map<String, Object> whenMap = identityDescriptor.getWhen().toMap();
              if (whenMap.containsKey("contains")) {
                List<String> serviceList = (List<String>) whenMap.get("contains");
                if (serviceList.contains(AMBARI_INFRA_OLD_NAME)) {
                  serviceList.remove(AMBARI_INFRA_OLD_NAME);
                  serviceList.add(AMBARI_INFRA_NEW_NAME);
                  identityDescriptor.setWhen(org.apache.ambari.server.collections.PredicateUtils.fromMap((Map<?, ?>) whenMap));
                }
              }
            });
  }
Updates Log Search configs.

@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java