Documentation
¶
Index ¶
- func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func ApplyRegistrationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func GetBatchJobStatusByJobApiCondition(conditionType v1.RadixBatchConditionType) models.ScheduledBatchJobStatus
- func GetBatchJobStatusByJobApiStatus(status v1.RadixBatchJobApiStatus) models.ScheduledBatchJobStatus
- func GetComponentEnvironmentConfig(ra *radixv1.RadixApplication, envName, componentName string) radixv1.RadixCommonEnvironmentConfig
- func IsBefore(j, i Job) bool
- type Job
- type KubeUtil
- type RadixMiddleware
- type RestClientConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyApplicationWithSync ¶
func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, commonTestUtils *commontest.Utils, applicationBuilder operatorutils.ApplicationBuilder) error
ApplyApplicationWithSync syncs based on application builder, and default builder for registration.
func ApplyDeploymentWithSync ¶
func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, dynamicClient dynamicclient.Client, commonTestUtils *commontest.Utils, secretproviderclient secretsstorevclient.Interface, certClient *certfake.Clientset, deploymentBuilder operatorutils.DeploymentBuilder) error
ApplyDeploymentWithSync syncs based on deployment builder, and default builders for application and registration.
func ApplyRegistrationWithSync ¶
func ApplyRegistrationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, commonTestUtils *commontest.Utils, registrationBuilder operatorutils.RegistrationBuilder) error
ApplyRegistrationWithSync syncs based on registration builder
func GetBatchJobStatusByJobApiCondition ¶
func GetBatchJobStatusByJobApiCondition(conditionType v1.RadixBatchConditionType) models.ScheduledBatchJobStatus
GetBatchJobStatusByJobApiCondition Get batch job status by job api condition
func GetBatchJobStatusByJobApiStatus ¶
func GetBatchJobStatusByJobApiStatus(status v1.RadixBatchJobApiStatus) models.ScheduledBatchJobStatus
GetBatchJobStatusByJobApiStatus Get batch job status by job api status
func GetComponentEnvironmentConfig ¶
func GetComponentEnvironmentConfig(ra *radixv1.RadixApplication, envName, componentName string) radixv1.RadixCommonEnvironmentConfig
GetComponentEnvironmentConfig Gets environment config of component
Types ¶
type KubeUtil ¶
type KubeUtil interface {
GetUserKubernetesClient(string, radixmodels.Impersonation, ...RestClientConfigOption) (kubernetes.Interface, radixclient.Interface, kedav2.Interface, secretproviderclient.Interface, tektonclient.Interface, certclient.Interface)
GetServerKubernetesClient(...RestClientConfigOption) (kubernetes.Interface, radixclient.Interface, kedav2.Interface, secretproviderclient.Interface, tektonclient.Interface, certclient.Interface)
}
KubeUtil Interface to be mocked in tests
type RadixMiddleware ¶
type RadixMiddleware struct {
// contains filtered or unexported fields
}
RadixMiddleware The middleware between router and radix handler functions
func NewRadixMiddleware ¶
func NewRadixMiddleware(kubeUtil KubeUtil, path, method string, allowUnauthenticatedUsers bool, kubeApiQPS float32, kubeApiBurst int, next models.RadixHandlerFunc) *RadixMiddleware
NewRadixMiddleware Constructor for radix middleware
func (*RadixMiddleware) ServeHTTP ¶
func (handler *RadixMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Handle Wraps radix handler methods
type RestClientConfigOption ¶
type RestClientConfigOption func(*restclient.Config)
func WithBurst ¶
func WithBurst(burst int) RestClientConfigOption
func WithQPS ¶
func WithQPS(qps float32) RestClientConfigOption