@Override
    public void validate(Context context) {
        if (! context.deployState().isHosted()) return;
        if (context.model().getAdmin().getApplicationType() != ApplicationType.DEFAULT) return;

        for (ContainerCluster<?> cluster : context.model().getContainerClusters().values()) {
            if (cluster.getSecretStore().isPresent() && ! hasIdentityProvider(cluster))
                    context.illegal(String.format(
                            "Container cluster '%s' uses a secret store, so an Athenz domain and an Athenz service" +
                            " must be declared in deployment.xml.", cluster.getName()));
        }
    }
Validates the requirements for setting up a secret store.

@author gjoranv
config-model/src/main/java/com/yahoo/vespa/model/application/validation/SecretStoreValidator.java