Class SeccompProfile

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class SeccompProfile
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SeccompProfile.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      SeccompProfile()  
      SeccompProfile​(java.lang.String localhostProfile, @NonNull java.lang.String type)  
    • Constructor Detail

      • SeccompProfile

        public SeccompProfile​(java.lang.String localhostProfile,
                              @NonNull
                              @NonNull java.lang.String type)
      • SeccompProfile

        public SeccompProfile()
    • Method Detail

      • getLocalhostProfile

        public java.lang.String getLocalhostProfile()
        localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
      • getType

        @NonNull
        public @NonNull java.lang.String getType()
        type indicates which kind of seccomp profile will be applied. Valid options are:


        Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.

      • setLocalhostProfile

        public void setLocalhostProfile​(java.lang.String localhostProfile)
        localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
      • setType

        public void setType​(@NonNull
                            @NonNull java.lang.String type)
        type indicates which kind of seccomp profile will be applied. Valid options are:


        Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object