Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkg/ubp/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions schema/blueprint-oas3-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@
"additionalProperties": false,
"description": "DNF package managers details. When using virtual provides as the\npackage name the version glob should be *. And be aware that you will be unable\nto freeze the blueprint. This is because the provides will expand into multiple\npackages with their own names and versions.\n",
"properties": {
"config": {
"$ref": "#/components/schemas/dnf_config"
},
"groups": {
"description": "Groups to install, must match exactly. Groups describes groups\nof packages to be installed into the image. Package groups are defined\nin the repository metadata. Each group has a descriptive name used primarily\nfor display in user interfaces and an ID more commonly used in kickstart\nfiles. Here, the ID is the expected way of listing a group. Groups have\nthree different ways of categorizing their packages: mandatory, default,\nand optional. For the purposes of blueprints, only mandatory and default\npackages will be installed. There is no mechanism for selecting optional\npackages.\n",
"items": {
Expand Down Expand Up @@ -373,6 +376,19 @@
"x-go-name": "DNF",
"x-omitempty": true
},
"dnf_config": {
"additionalProperties": false,
"properties": {
"set_releasever": {
"description": "Set the $releasever DNF variable to the distribution's release. On RHEL\nsystems, this ties a system to a specific release, preventing it from\nbeing updated to a later minor RHEL release through 'dnf upgrade', and is\nthe mechanism for keeping systems on extended support releases (EUS and\nE4S).\n",
"type": "boolean",
"x-go-name": "SetReleasever"
}
},
"type": "object",
"x-go-name": "DNFConfig",
"x-omitempty": true
},
"dnf_repository": {
"additionalProperties": false,
"properties": {
Expand Down
16 changes: 16 additions & 0 deletions schema/blueprint-oas3.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@
"additionalProperties": false,
"description": "DNF package managers details. When using virtual provides as the\npackage name the version glob should be *. And be aware that you will be unable\nto freeze the blueprint. This is because the provides will expand into multiple\npackages with their own names and versions.\n",
"properties": {
"config": {
"$ref": "#/components/schemas/dnf_config"
},
"groups": {
"description": "Groups to install, must match exactly. Groups describes groups\nof packages to be installed into the image. Package groups are defined\nin the repository metadata. Each group has a descriptive name used primarily\nfor display in user interfaces and an ID more commonly used in kickstart\nfiles. Here, the ID is the expected way of listing a group. Groups have\nthree different ways of categorizing their packages: mandatory, default,\nand optional. For the purposes of blueprints, only mandatory and default\npackages will be installed. There is no mechanism for selecting optional\npackages.\n",
"items": {
Expand Down Expand Up @@ -373,6 +376,19 @@
"x-go-name": "DNF",
"x-omitempty": true
},
"dnf_config": {
"additionalProperties": false,
"properties": {
"set_releasever": {
"description": "Set the $releasever DNF variable to the distribution's release. On RHEL\nsystems, this ties a system to a specific release, preventing it from\nbeing updated to a later minor RHEL release through 'dnf upgrade', and is\nthe mechanism for keeping systems on extended support releases (EUS and\nE4S).\n",
"type": "boolean",
"x-go-name": "SetReleasever"
}
},
"type": "object",
"x-go-name": "DNFConfig",
"x-omitempty": true
},
"dnf_repository": {
"additionalProperties": false,
"properties": {
Expand Down
17 changes: 17 additions & 0 deletions schema/blueprint-oas3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ components:
to freeze the blueprint. This is because the provides will expand into multiple
packages with their own names and versions.
properties:
config:
$ref: '#/components/schemas/dnf_config'
groups:
description: |
Groups to install, must match exactly. Groups describes groups
Expand Down Expand Up @@ -395,6 +397,21 @@ components:
type: object
x-go-name: DNF
x-omitempty: true
dnf_config:
additionalProperties: false
properties:
set_releasever:
description: |
Set the $releasever DNF variable to the distribution's release. On RHEL
systems, this ties a system to a specific release, preventing it from
being updated to a later minor RHEL release through 'dnf upgrade', and is
the mechanism for keeping systems on extended support releases (EUS and
E4S).
type: boolean
x-go-name: SetReleasever
type: object
x-go-name: DNFConfig
x-omitempty: true
dnf_repository:
additionalProperties: false
properties:
Expand Down
2 changes: 2 additions & 0 deletions schema/oas/components/dnf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ properties:
items:
"$ref": "dnf_repository.yaml"
x-omitempty: true
config:
"$ref": "dnf_config.yaml"
additionalProperties: false
15 changes: 15 additions & 0 deletions schema/oas/components/dnf_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
type: object
x-go-name: DNFConfig
x-omitempty: true
properties:
set_releasever:
description: |
Set the $releasever DNF variable to the distribution's release. On RHEL
systems, this ties a system to a specific release, preventing it from
being updated to a later minor RHEL release through 'dnf upgrade', and is
the mechanism for keeping systems on extended support releases (EUS and
E4S).
type: boolean
x-go-name: SetReleasever
additionalProperties: false
2 changes: 2 additions & 0 deletions testdata/all-fields.in.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ dnf:
usage:
install: false
configure: false
config:
set_releasever: true
containers:
- source: "quay.io/fedora/fedora:latest"
name: "fedora"
Expand Down
2 changes: 2 additions & 0 deletions testdata/valid-dnf.in.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ dnf:
usage:
install: true
configure: true
config:
set_releasever: true