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

createOrReplace not working #133

@chestarss

Description

@chestarss

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions