public class ContainerResource
extends Object
Helper class for K8S container Resource
.
- Since:
- 0.20
-
Field Summary
Fields
Key for the container image name.
Key for the container image tag.
Key for the container name.
Kubernetes resources key that represents a type of the resource.
-
Constructor Summary
Constructors
-
Method Summary
Returns a
Resource
that describes a container.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TYPE
public static final String TYPE
Kubernetes resources key that represents a type of the resource.
- Since:
- 0.20
- See Also:
-
-
NAME_KEY
public static final String NAME_KEY
Key for the container name.
- Since:
- 0.20
- See Also:
-
-
IMAGE_NAME_KEY
public static final String IMAGE_NAME_KEY
Key for the container image name.
- Since:
- 0.20
- See Also:
-
-
IMAGE_TAG_KEY
public static final String IMAGE_TAG_KEY
Key for the container image tag.
- Since:
- 0.20
- See Also:
-
-
Constructor Details
-
ContainerResource
private ContainerResource()
-
Method Details
-
create
Returns a
Resource
that describes a container.
- Parameters:
name
- the container name.
imageName
- the container image name.
imageTag
- the container image tag.
- Returns:
- a
Resource
that describes a k8s container.
- Since:
- 0.20
-