Skip to content

Commit

Permalink
Add samples config to install manifests if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Jan 15, 2025
1 parent 7f4fcda commit 967e823
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/cluster/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package cluster
import (
"context"
"fmt"
"maps"
"time"

"github.com/coreos/go-semver/semver"
Expand Down Expand Up @@ -314,12 +315,17 @@ func (m *manager) runHiveInstaller(ctx context.Context) error {
return err
}

var customManifests map[string]kruntime.Object
customManifests := map[string]kruntime.Object{}
if m.doc.OpenShiftCluster.UsesWorkloadIdentity() {
customManifests, err = m.generateWorkloadIdentityResources()
workloadIdentityManifests, err := m.generateWorkloadIdentityResources()
if err != nil {
return err
}
maps.Copy(customManifests, workloadIdentityManifests)
}

if m.shouldDisableSamples() {
customManifests["cluster-config-samples.yaml"] = bootstrapDisabledSamplesConfig()
}

// Run installer. For M5/M6 we will persist the graph inside the installer
Expand Down

0 comments on commit 967e823

Please sign in to comment.