Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

The client is using resource type 'gateways' with unstable version 'v1alpha3' #80

Open
qhrking opened this issue Dec 6, 2019 · 2 comments

Comments

@qhrking
Copy link

qhrking commented Dec 6, 2019

io.fabric8 kubernates-client 4.6.3 kubernetes-model 4.6.3 istio-client 1.1.1

i.f.k.c.i.VersionUsageUtils - The client is using resource type 'gateways' with unstable version 'v1alpha3'

@metacosm
Copy link
Member

@qhrking could you please provide more details on what you're trying to accomplish?

@AndreaNicola
Copy link

AndreaNicola commented Dec 3, 2020

It's a default warning from fabric8 kubernetes client. You can see the logging code in io.fabric8.kubernetes.client.internal.VersionUsageUtils

public static void log(String type, String version) {
    if (type == null || version == null) {
      return;
    }

    if (isUnstable(version)) {
      if (LOG_EACH_USAGE || UNSTABLE_TYPES.putIfAbsent(type + "-" + version, true) == null) {
        alert(type, version);
      }
    }
  }

  private static boolean isUnstable(String version) {
    String lowerCaseVersion = version.toLowerCase(Locale.ROOT);
    return lowerCaseVersion.contains("beta") || lowerCaseVersion.contains("alpha");
  }

  private static void alert(String type, String version) {
    String message = "The client is using resource type '{}' with unstable version '{}'";
    if (type.equals("customresourcedefinitions") && version.equals("v1beta1")) {
      LOG.debug(message, type, version);
    } else {
      LOG.warn(message, type, version);
    }
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants