|
@@ -24,6 +24,12 @@ type Features struct {
|
|
// Annotations contains implementation-specific annotation strings,
|
|
// Annotations contains implementation-specific annotation strings,
|
|
// such as the implementation version, and third-party extensions.
|
|
// such as the implementation version, and third-party extensions.
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
|
|
|
+
|
|
|
|
+ // PotentiallyUnsafeConfigAnnotations the list of the potential unsafe annotations
|
|
|
|
+ // that may appear in `config.json`.
|
|
|
|
+ //
|
|
|
|
+ // A value that ends with "." is interpreted as a prefix of annotations.
|
|
|
|
+ PotentiallyUnsafeConfigAnnotations []string `json:"potentiallyUnsafeConfigAnnotations,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
// Linux is specific to Linux.
|
|
// Linux is specific to Linux.
|
|
@@ -36,11 +42,12 @@ type Linux struct {
|
|
// Nil value means "unknown", not "no support for any capability".
|
|
// Nil value means "unknown", not "no support for any capability".
|
|
Capabilities []string `json:"capabilities,omitempty"`
|
|
Capabilities []string `json:"capabilities,omitempty"`
|
|
|
|
|
|
- Cgroup *Cgroup `json:"cgroup,omitempty"`
|
|
|
|
- Seccomp *Seccomp `json:"seccomp,omitempty"`
|
|
|
|
- Apparmor *Apparmor `json:"apparmor,omitempty"`
|
|
|
|
- Selinux *Selinux `json:"selinux,omitempty"`
|
|
|
|
- IntelRdt *IntelRdt `json:"intelRdt,omitempty"`
|
|
|
|
|
|
+ Cgroup *Cgroup `json:"cgroup,omitempty"`
|
|
|
|
+ Seccomp *Seccomp `json:"seccomp,omitempty"`
|
|
|
|
+ Apparmor *Apparmor `json:"apparmor,omitempty"`
|
|
|
|
+ Selinux *Selinux `json:"selinux,omitempty"`
|
|
|
|
+ IntelRdt *IntelRdt `json:"intelRdt,omitempty"`
|
|
|
|
+ MountExtensions *MountExtensions `json:"mountExtensions,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
// Cgroup represents the "cgroup" field.
|
|
// Cgroup represents the "cgroup" field.
|
|
@@ -123,3 +130,16 @@ type IntelRdt struct {
|
|
// Nil value means "unknown", not "false".
|
|
// Nil value means "unknown", not "false".
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// MountExtensions represents the "mountExtensions" field.
|
|
|
|
+type MountExtensions struct {
|
|
|
|
+ // IDMap represents the status of idmap mounts support.
|
|
|
|
+ IDMap *IDMap `json:"idmap,omitempty"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type IDMap struct {
|
|
|
|
+ // Enabled represents whether idmap mounts supports is compiled in.
|
|
|
|
+ // Unrelated to whether the host supports it or not.
|
|
|
|
+ // Nil value means "unknown", not "false".
|
|
|
|
+ Enabled *bool `json:"enabled,omitempty"`
|
|
|
|
+}
|