Skip to content

Commit

Permalink
doc: add type documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yasminvalim committed Aug 29, 2023
1 parent 586a029 commit 5ed3d39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 6 additions & 7 deletions config/fcos/v1_6_exp/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ type Config struct {
base.Config `yaml:",inline"`
BootDevice BootDevice `yaml:"boot_device"`
Grub Grub `yaml:"grub"`
Selinux Selinux `yaml:"selinux"`
}

type BootDevice struct {
Layout *string `yaml:"layout"`
Luks BootDeviceLuks `yaml:"luks"`
Mirror BootDeviceMirror `yaml:"mirror"`
Selinux Selinux `yaml:"selinux"`
Layout *string `yaml:"layout"`
Luks BootDeviceLuks `yaml:"luks"`
Mirror BootDeviceMirror `yaml:"mirror"`
}

type BootDeviceLuks struct {
Expand All @@ -52,7 +52,6 @@ type GrubUser struct {
}

type Selinux struct {
State *string `yaml:"state"`
Mode *string `yaml:"mode"`
Path *string `yaml:"path"`
State *bool `yaml:"state"`
Mode *bool `yaml:"mode"`
}
3 changes: 3 additions & 0 deletions docs/config-fcos-v1_6-exp.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,6 @@ The Fedora CoreOS configuration is a YAML document conforming to the following s
* **_users_** (list of objects): the list of GRUB superusers.
* **name** (string): the user name.
* **password_hash** (string): the PBKDF2 password hash, generated with `grub2-mkpasswd-pbkdf2`.
* **_selinux_** (object): describes the desired GRUB bootloader configuration.
* **state** (boolean): SELinux defines the security state by being `enabled` or `disabled`. When enabled, SElinux operates in two modes.
* **mode** (boolean): The two modes available are `enforcing`, which enforces security policies and `permissive`, which only logs policy violations.

0 comments on commit 5ed3d39

Please sign in to comment.