Class AdditionalNetworkDefinition

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<AdditionalNetworkDefinitionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AdditionalNetworkDefinition
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AdditionalNetworkDefinitionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.
    See Also:
    Serialized Form
    • Constructor Detail

      • AdditionalNetworkDefinition

        public AdditionalNetworkDefinition()
        No args constructor for use in serialization
    • Method Detail

      • getName

        public String getName()
        name is the name of the network. This will be populated in the resulting CRD This must be unique.
      • setName

        public void setName​(String name)
        name is the name of the network. This will be populated in the resulting CRD This must be unique.
      • getNamespace

        public String getNamespace()
        namespace is the namespace of the network. This will be populated in the resulting CRD If not given the network will be created in the default namespace.
      • setNamespace

        public void setNamespace​(String namespace)
        namespace is the namespace of the network. This will be populated in the resulting CRD If not given the network will be created in the default namespace.
      • getRawCNIConfig

        public String getRawCNIConfig()
        rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRD
      • setRawCNIConfig

        public void setRawCNIConfig​(String rawCNIConfig)
        rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRD
      • getSimpleMacvlanConfig

        public SimpleMacvlanConfig getSimpleMacvlanConfig()
        AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.
      • setSimpleMacvlanConfig

        public void setSimpleMacvlanConfig​(SimpleMacvlanConfig simpleMacvlanConfig)
        AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.
      • getType

        public String getType()
        type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlan
      • setType

        public void setType​(String type)
        type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlan
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)