Documentation
¶
Index ¶
- func NewAzureConfig(ctx context.Context, azureRuntimeConfigPath string, ...) (*azureconfig.AzureConfig, error)
- func NewBackendIdentityAzureClients(ctx context.Context, azureConfig *azureconfig.AzureConfig) (*azureclient.BackendIdentityAzureClients, error)
- func NewClustersServiceClient(ctx context.Context, clustersServiceURL string, ...) (ocm.ClusterServiceClientSpec, error)
- func NewCosmosDBClient(ctx context.Context, cosmosDBURL string, cosmosDBName string, ...) (database.DBClient, error)
- func NewFirstPartyApplicationClientBuilder(fpaTokenCredRetriever fpa.FirstPartyApplicationTokenCredentialRetriever, ...) (azureclient.FirstPartyApplicationClientBuilder, error)
- func NewFirstPartyApplicationManagedIdentitiesDataplaneClientBuilder(fpaTokenCredRetriever fpa.FirstPartyApplicationTokenCredentialRetriever, ...) (azureclient.FPAMIDataplaneClientBuilder, error)
- func NewFirstPartyApplicationTokenCredentialRetriever(ctx context.Context, fpaCertBundlePath string, fpaClientID string, ...) (fpa.FirstPartyApplicationTokenCredentialRetriever, error)
- func NewKubeconfig(kubeconfigPath string) (*rest.Config, error)
- func NewLeaderElectionLock(leaseHolderIdentity string, kubeconfig *rest.Config, k8sNamespace string) (resourcelock.Interface, error)
- func NewServiceManagedIdentityClientBuilder(fpaMIdataplaneClientBuilder azureclient.FPAMIDataplaneClientBuilder, ...) azureclient.ServiceManagedIdentityClientBuilder
- type Backend
- type BackendOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAzureConfig ¶
func NewAzureConfig(ctx context.Context, azureRuntimeConfigPath string, tracerProvider trace.TracerProvider) (*azureconfig.AzureConfig, error)
func NewBackendIdentityAzureClients ¶
func NewBackendIdentityAzureClients(ctx context.Context, azureConfig *azureconfig.AzureConfig) (*azureclient.BackendIdentityAzureClients, error)
NewBackendIdentityAzureClients creates a new BackendIdentityAzureClients instance that contains the Azure clients that are used to interact with the Azure platform as the backend identity. The backend identity is used to interact with Red Hat side Azure infrastructure.
func NewCosmosDBClient ¶
func NewFirstPartyApplicationClientBuilder ¶
func NewFirstPartyApplicationClientBuilder(fpaTokenCredRetriever fpa.FirstPartyApplicationTokenCredentialRetriever, azureConfig *azureconfig.AzureConfig) (azureclient.FirstPartyApplicationClientBuilder, error)
func NewFirstPartyApplicationManagedIdentitiesDataplaneClientBuilder ¶
func NewFirstPartyApplicationManagedIdentitiesDataplaneClientBuilder( fpaTokenCredRetriever fpa.FirstPartyApplicationTokenCredentialRetriever, azureMIMockCertBundlePath string, azureMIMockClientID string, azureMIMockPrincipalID string, azureMIMockTenantID string, azureConfig *azureconfig.AzureConfig, ) (azureclient.FPAMIDataplaneClientBuilder, error)
func NewFirstPartyApplicationTokenCredentialRetriever ¶
func NewFirstPartyApplicationTokenCredentialRetriever( ctx context.Context, fpaCertBundlePath string, fpaClientID string, azureConfig *azureconfig.AzureConfig, ) (fpa.FirstPartyApplicationTokenCredentialRetriever, error)
func NewKubeconfig ¶
NewKubeconfig creates a new Kubernetes configuration from a kubeconfig path. If kubeconfigPath is empty, it will attempt to load the kubeconfig following the default Kubernetes client-go cmd configuration loading rules.
func NewLeaderElectionLock ¶
func NewLeaderElectionLock(leaseHolderIdentity string, kubeconfig *rest.Config, k8sNamespace string) (resourcelock.Interface, error)
NewLeaderElectionLock creates a new K8s leases resource lock, intended to be used for leader election in a Kubernetes cluster. leaseHolderIdentity the unique identifier of the participant across all participants in the election.
func NewServiceManagedIdentityClientBuilder ¶
func NewServiceManagedIdentityClientBuilder(fpaMIdataplaneClientBuilder azureclient.FPAMIDataplaneClientBuilder, azureConfig *azureconfig.AzureConfig) azureclient.ServiceManagedIdentityClientBuilder
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend(options *BackendOptions) *Backend
type BackendOptions ¶
type BackendOptions struct {
AppShortDescriptionName string
AppVersion string
AzureLocation string
LeaderElectionLock resourcelock.Interface
CosmosDBClient database.DBClient
ClustersServiceClient ocm.ClusterServiceClientSpec
MetricsServerListenAddress string
HealthzServerListenAddress string
TracerProviderShutdownFunc func(context.Context) error
MaestroSourceEnvironmentIdentifier string
FPAClientBuilder azureclient.FirstPartyApplicationClientBuilder
BackendIdentityAzureClients *azureclient.BackendIdentityAzureClients
ExitOnPanic bool
FPAMIDataplaneClientBuilder azureclient.FPAMIDataplaneClientBuilder
SMIClientBuilder azureclient.ServiceManagedIdentityClientBuilder
CheckAccessV2ClientBuilder azureclient.CheckAccessV2ClientBuilder
}
func (*BackendOptions) RunBackend ¶
func (o *BackendOptions) RunBackend(ctx context.Context) error