Skip to content

Commit

Permalink
pkg/start/asset: Add support for post-pod-manifests
Browse files Browse the repository at this point in the history
So the installer can inject objects that require OpenShift custom
resources (e.g. machine(set)s).
  • Loading branch information
wking committed Jan 29, 2019
1 parent e0cc400 commit 180599b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/start/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const (
assetPathSecrets = "tls"
assetPathAdminKubeConfig = "auth/kubeconfig"
assetPathManifests = "manifests"
assetPathPostPodManifests = "post-pod-manifests"
assetPathBootstrapManifests = "bootstrap-manifests"
)

Expand Down
4 changes: 4 additions & 0 deletions pkg/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func (b *startCommand) Run() error {
return err
}

if err = createAssets(restConfig, filepath.Join(b.assetDir, assetPathPostPodManifests), bootstrapPodsRunningTimeout, b.strict); err != nil {
return err
}

// notify installer that we are ready to tear down the temporary bootstrap control plane
UserOutput("Sending bootstrap-success event.")
if _, err := client.CoreV1().Events("kube-system").Create(makeBootstrapSuccessEvent("kube-system", "bootstrap-success")); err != nil && !apierrors.IsAlreadyExists(err) {
Expand Down

0 comments on commit 180599b

Please sign in to comment.