Skip to content

Commit a64bb63

Browse files
committed
Add imagebased installer OWNERS and {,sub}commands
Signed-off-by: Michail Resvanis <[email protected]>
1 parent 5b289b7 commit a64bb63

File tree

7 files changed

+121
-0
lines changed

7 files changed

+121
-0
lines changed

OWNERS_ALIASES

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,13 @@ aliases:
161161
- pawanpinjarkar
162162
- rwsu
163163
- zaneb
164+
imagebased-reviewers:
165+
- eranco74
166+
- javipolo
167+
- mresvanis
168+
- tsorya
169+
imagebased-approvers:
170+
- eranco74
171+
- patrickdillon
172+
- tsorya
173+
- zaneb
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
package main
2+
3+
import (
4+
"context"
5+
6+
"github.com/sirupsen/logrus"
7+
"github.com/spf13/cobra"
8+
)
9+
10+
func newImageBasedCmd(ctx context.Context) *cobra.Command {
11+
imagebasedCmd := &cobra.Command{
12+
Use: "image-based",
13+
Short: "Commands for supporting cluster installation using the Image-based installer",
14+
RunE: func(cmd *cobra.Command, args []string) error {
15+
return cmd.Help()
16+
},
17+
}
18+
19+
imagebasedCmd.AddCommand(newImageBasedCreateCmd(ctx))
20+
return imagebasedCmd
21+
}
22+
23+
func newImageBasedCreateCmd(ctx context.Context) *cobra.Command {
24+
cmd := &cobra.Command{
25+
Use: "create",
26+
Short: "Commands for generating image-based installer artifacts",
27+
RunE: func(cmd *cobra.Command, args []string) error {
28+
return cmd.Help()
29+
},
30+
}
31+
32+
cmd.AddCommand(createImageConfigTemplateCmd())
33+
cmd.AddCommand(createImageCmd())
34+
cmd.AddCommand(createConfigTemplateCmd())
35+
cmd.AddCommand(createConfigImageCmd())
36+
37+
return cmd
38+
}
39+
40+
func createImageConfigTemplateCmd() *cobra.Command {
41+
return &cobra.Command{
42+
Use: "image-config-template",
43+
Short: "Generates a template of the Image-based Installation ISO config manifest used by the Image-based installer",
44+
Args: cobra.ExactArgs(0),
45+
Run: func(_ *cobra.Command, _ []string) {
46+
logrus.Info("Create image config template command")
47+
},
48+
}
49+
}
50+
51+
func createImageCmd() *cobra.Command {
52+
return &cobra.Command{
53+
Use: "image",
54+
Short: "Generates a bootable ISO image containing all the information needed to deploy a cluster",
55+
Args: cobra.ExactArgs(0),
56+
Run: func(_ *cobra.Command, _ []string) {
57+
logrus.Info("Create image command")
58+
},
59+
}
60+
}
61+
62+
func createConfigTemplateCmd() *cobra.Command {
63+
return &cobra.Command{
64+
Use: "config-template",
65+
Short: "Generates a template of the Image-based Config ISO config manifest used by the Image-based installer",
66+
Args: cobra.ExactArgs(0),
67+
Run: func(_ *cobra.Command, _ []string) {
68+
logrus.Info("Create config template command")
69+
},
70+
}
71+
}
72+
73+
func createConfigImageCmd() *cobra.Command {
74+
return &cobra.Command{
75+
Use: "config-image",
76+
Short: "Generates an ISO containing configuration files only",
77+
Args: cobra.ExactArgs(0),
78+
Run: func(_ *cobra.Command, _ []string) {
79+
logrus.Info("Create config image command")
80+
},
81+
}
82+
}

cmd/openshift-install/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func installerMain() {
5959
newExplainCmd(),
6060
newAgentCmd(ctx),
6161
newListFeaturesCmd(),
62+
newImageBasedCmd(ctx),
6263
} {
6364
rootCmd.AddCommand(subCmd)
6465
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
2+
# This file just uses aliases defined in OWNERS_ALIASES.
3+
4+
approvers:
5+
- imagebased-approvers
6+
reviewers:
7+
- imagebased-reviewers

data/data/imagebased/OWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file just uses aliases defined in OWNERS_ALIASES.
2+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
3+
4+
approvers:
5+
- imagebased-approvers
6+
reviewers:
7+
- imagebased-reviewers

pkg/asset/imagebased/OWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file just uses aliases defined in OWNERS_ALIASES.
2+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
3+
4+
approvers:
5+
- imagebased-approvers
6+
reviewers:
7+
- imagebased-reviewers

pkg/types/imagebased/OWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file just uses aliases defined in OWNERS_ALIASES.
2+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
3+
4+
approvers:
5+
- imagebased-approvers
6+
reviewers:
7+
- imagebased-reviewers

0 commit comments

Comments
 (0)