Skip to content

Commit bfa8ce6

Browse files
committed
Add image-based installer config type
Signed-off-by: Michail Resvanis <[email protected]>
1 parent ca59986 commit bfa8ce6

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

pkg/types/imagebased/imagebased_config_types.go

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,26 @@ import (
77
"github.com/openshift/installer/pkg/types"
88
)
99

10-
// ImageBasedConfigVersion is the version supported by this package.
11-
const ImageBasedConfigVersion = "v1beta1"
10+
const (
11+
// ImageBasedConfigVersion is the version supported by this package.
12+
ImageBasedConfigVersion = "v1beta1"
13+
)
14+
15+
// Config is the API for specifying configuration for the image-based configuration ISO.
16+
type Config struct {
17+
metav1.TypeMeta `json:",inline"`
18+
metav1.ObjectMeta `json:"metadata,omitempty"`
19+
20+
// Hostname is the desired hostname of the SNO node.
21+
Hostname string `json:"hostname,omitempty"`
22+
23+
// NetworkConfig is a YAML manifest that can be processed by nmstate, using custom
24+
// marshaling/unmarshaling that will allow to populate nmstate config as plain yaml.
25+
NetworkConfig aiv1beta1.NetConfig `json:"networkConfig,omitempty"`
26+
27+
// ReleaseRegistry is the container registry used to host the release image of the seed cluster.
28+
ReleaseRegistry string `json:"releaseRegistry,omitempty"`
29+
}
1230

1331
// InstallationConfig is the API for specifying configuration for the
1432
// image-based installation ISO.

0 commit comments

Comments
 (0)