Created
March 19, 2024 19:26
-
-
Save hamzy/facbf69976a34df5e6c7d1c342cd666e to your computer and use it in GitHub Desktop.
20240319 ./pkg/asset/targets/targets.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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{}, | |
&machines.ClusterAPI{}, | |
&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