New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting first resource under META-INF/fabric8 , if we have multiple resources under META-INF/fabric8 #705

dipak-pawar opened this Issue May 22, 2017 · 0 comments


None yet
2 participants

dipak-pawar commented May 22, 2017

private static final String[] RESOURCE_NAMES =
        new String[] {"openshift", "META-INF/fabric8/openshift", "kubernetes", "META-INF/fabric8/kubernetes"};
    private static final String[] ALLOWED_SUFFIXES = {".json", ".yml", ".yaml"};

for (String suffix : getAllowedSuffixes()) {
            for (String resource : getResourceNames()) {
                URL candidate = getResource(resource + suffix);
                if (candidate != null) {
                    return candidate;

using this snippet we are finding resources, it's selecting META-INF/fabric8/openshift.json as first resource.
You can look ResourceLocator here.

Even if user is trying to access it using, cube couldn't find required resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment