Skip to content

Instantly share code, notes, and snippets.

@hamzy
Created February 25, 2024 13:46
Show Gist options
  • Save hamzy/b53a0064709fa4ab81f95bf1e25721cb to your computer and use it in GitHub Desktop.
Save hamzy/b53a0064709fa4ab81f95bf1e25721cb to your computer and use it in GitHub Desktop.
./pkg/asset/targets/targets.go
package targets
import (
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/cluster"
"github.com/openshift/installer/pkg/asset/cluster/tfvars"
"github.com/openshift/installer/pkg/asset/ignition/bootstrap"
"github.com/openshift/installer/pkg/asset/ignition/machine"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/kubeconfig"
"github.com/openshift/installer/pkg/asset/machines"
"github.com/openshift/installer/pkg/asset/manifests"
"github.com/openshift/installer/pkg/asset/manifests/clusterapi"
"github.com/openshift/installer/pkg/asset/password"
"github.com/openshift/installer/pkg/asset/templates/content/bootkube"
"github.com/openshift/installer/pkg/asset/templates/content/openshift"
"github.com/openshift/installer/pkg/asset/tls"
)
var (
// InstallConfig are the install-config targeted assets.
InstallConfig = []asset.WritableAsset{
&installconfig.InstallConfig{},
}
// Manifests are the manifests targeted assets.
Manifests = []asset.WritableAsset{
&machines.Master{},
&machines.Worker{},
&clusterapi.Cluster{},
&manifests.Manifests{},
&manifests.Openshift{},
}
// ManifestTemplates are the manifest-templates targeted assets.
ManifestTemplates = []asset.WritableAsset{
&bootkube.KubeCloudConfig{},
&bootkube.MachineConfigServerTLSSecret{},
&bootkube.CVOOverrides{},
&bootkube.KubeSystemConfigmapRootCA{},
&bootkube.OpenshiftConfigSecretPullSecret{},
&openshift.CloudCredsSecret{},
&openshift.KubeadminPasswordSecret{},
&openshift.RoleCloudCredsSecretReader{},
&openshift.AzureCloudProviderSecret{},
}
// IgnitionConfigs are the ignition-configs targeted assets.
IgnitionConfigs = []asset.WritableAsset{
&kubeconfig.AdminClient{},
&password.KubeadminPassword{},
&machine.Master{},
&machine.Worker{},
&bootstrap.Bootstrap{},
&cluster.Metadata{},
}
// SingleNodeIgnitionConfig is the bootstrap-in-place ignition-config targeted assets.
SingleNodeIgnitionConfig = []asset.WritableAsset{
&kubeconfig.AdminClient{},
&password.KubeadminPassword{},
&machine.Worker{},
&bootstrap.SingleNodeBootstrapInPlace{},
&cluster.Metadata{},
}
// Cluster are the cluster targeted assets.
Cluster = []asset.WritableAsset{
&cluster.Metadata{},
&machine.MasterIgnitionCustomizations{},
&machine.WorkerIgnitionCustomizations{},
&tfvars.TerraformVariables{},
&kubeconfig.AdminClient{},
&password.KubeadminPassword{},
&tls.JournalCertKey{},
&cluster.Cluster{},
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment