Class MachineOSContainerfile
- java.lang.Object
-
- io.fabric8.openshift.api.model.machineconfiguration.v1.MachineOSContainerfile
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachineOSContainerfileBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachineOSContainerfile extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachineOSContainerfileBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachineOSContainerfile contains all custom content the user wants built into the image- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachineOSContainerfile()No args constructor for use in serializationMachineOSContainerfile(String containerfileArch, String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineOSContainerfileBuilderedit()Map<String,Object>getAdditionalProperties()StringgetContainerfileArch()containerfileArch describes the architecture this containerfile is to be built for.StringgetContent()content is an embedded Containerfile/Dockerfile that defines the contents to be built into your image.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContainerfileArch(String containerfileArch)containerfileArch describes the architecture this containerfile is to be built for.voidsetContent(String content)content is an embedded Containerfile/Dockerfile that defines the contents to be built into your image.MachineOSContainerfileBuildertoBuilder()
-
-
-
Method Detail
-
getContainerfileArch
public String getContainerfileArch()
containerfileArch describes the architecture this containerfile is to be built for. This arch is optional. If the user does not specify an architecture, it is assumed that the content can be applied to all architectures, or in a single arch cluster: the only architecture.Possible enum values:
- `"AMD64"` describes the amd64 architecture
- `"ARM64"` describes the arm64 architecture
- `"NoArch"` describes a containerfile that can be applied to any arch
- `"PPC64LE"` describes the ppc64le architecture
- `"S390X"` describes the s390x architecture
-
setContainerfileArch
public void setContainerfileArch(String containerfileArch)
containerfileArch describes the architecture this containerfile is to be built for. This arch is optional. If the user does not specify an architecture, it is assumed that the content can be applied to all architectures, or in a single arch cluster: the only architecture.Possible enum values:
- `"AMD64"` describes the amd64 architecture
- `"ARM64"` describes the arm64 architecture
- `"NoArch"` describes a containerfile that can be applied to any arch
- `"PPC64LE"` describes the ppc64le architecture
- `"S390X"` describes the s390x architecture
-
getContent
public String getContent()
content is an embedded Containerfile/Dockerfile that defines the contents to be built into your image. See https://github.com/containers/common/blob/main/docs/Containerfile.5.md for the spec reference. for example, this would add the tree package to your hosts:FROM configs AS final
RUN rpm-ostree install tree && \
ostree container commit
This is a required field and can have a maximum length of **4096** characters.
-
setContent
public void setContent(String content)
content is an embedded Containerfile/Dockerfile that defines the contents to be built into your image. See https://github.com/containers/common/blob/main/docs/Containerfile.5.md for the spec reference. for example, this would add the tree package to your hosts:FROM configs AS final
RUN rpm-ostree install tree && \
ostree container commit
This is a required field and can have a maximum length of **4096** characters.
-
edit
public MachineOSContainerfileBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachineOSContainerfileBuilder>
-
toBuilder
public MachineOSContainerfileBuilder toBuilder()
-
-