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

createOrReplace not working #133

Open
chestarss opened this issue Apr 12, 2021 · 2 comments
Open

createOrReplace not working #133

chestarss opened this issue Apr 12, 2021 · 2 comments

Comments

@chestarss
Copy link

DestinationRule destinationRule = objectMapper.readValue(yaml, DestinationRule.class);
Object o = istioClient.inAnyNamespace().v1alpha3DestinationRule().createOrReplace(destinationRule);

java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lio.fabric8.kubernetes.api.model.HasMetadata; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lio.fabric8.kubernetes.api.model.HasMetadata; is in unnamed module of loader 'app')

at io.fabric8.kubernetes.client.dsl.base.BaseOperation.createOrReplace(BaseOperation.java:79)
at so.dian.zerg.nydus.server.service.k8s.impl.K8sResourceServiceImpl.syncDR(K8sResourceServiceImpl.java:50)
@metacosm
Copy link
Member

metacosm commented Jun 4, 2021

Which version of the API are you using?

@chestarss
Copy link
Author

Which version of the API are you using?

1.7.7

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

2 participants