use of io.fabric8.kubernetes.client.dsl.CreateOrReplaceable in project jointware by isdream.
the class KubernetesModelGenerator method doCreateOrReplace.
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
protected Object doCreateOrReplace(Object client, String kind, Map<String, Map<String, Object>> params) throws Exception {
CreateOrReplaceable instance = (CreateOrReplaceable) getKindModel(client, kind);
Object param = generateParameters(params, kind);
return instance.createOrReplace(param);
}
use of io.fabric8.kubernetes.client.dsl.CreateOrReplaceable in project jointware by isdream.
the class KubernetesExecutor method doCreateOrReplace.
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
protected Object doCreateOrReplace(Object client, String kind, Map<String, Map<String, Object>> params) throws Exception {
CreateOrReplaceable instance = (CreateOrReplaceable) getKindModel(client, kind);
KubernetesModelGenerator generator = new KubernetesModelGenerator(getObjectRef());
Object param = generator.toObject(params, kind);
return instance.createOrReplace(param);
}
Aggregations