public class OciUtils extends Object
| Constructor and Description |
|---|
OciUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustImageConfigForTopo(Map<String,Object> conf,
Map<String,Object> topoConf,
String topoId)
Adjust the image config for the topology.
|
static void |
validateImageInDaemonConf(Map<String,Object> conf)
Validates the image setting in the daemon conf.
|
public static void adjustImageConfigForTopo(Map<String,Object> conf, Map<String,Object> topoConf, String topoId) throws InvalidTopologyException
Adjust the image config for the topology. If OCI container is not supported, remove the oci image setting from the topoConf; otherwise, set it to the default image if it’s null.
conf - the daemon conftopoConf - the topology conftopoId - the topology IdInvalidTopologyException - if image config is invalidpublic static void validateImageInDaemonConf(Map<String,Object> conf)
Validates the image setting in the daemon conf. This will be skipped if DaemonConfig.STORM_OCI_ALLOWED_IMAGES not configured.
conf - the daemon confCopyright © 2021 The Apache Software Foundation. All rights reserved.