app

package
v0.0.0-...-f09b850 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

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 NewClustersServiceClient

func NewClustersServiceClient(ctx context.Context, clustersServiceURL string, clustersServiceTLSInsecure bool) (ocm.ClusterServiceClientSpec, error)

func NewCosmosDBClient

func NewCosmosDBClient(ctx context.Context, cosmosDBURL string, cosmosDBName string, azCoreClientOptions azcore.ClientOptions) (database.DBClient, 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

func NewKubeconfig(kubeconfigPath string) (*rest.Config, error)

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

func (*Backend) Run

func (b *Backend) Run(ctx context.Context) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL