INNER CODE UNIT · Go

checkIfDatabaseClientIsInitialize

istio-ecosystem/admiral · admiral/pkg/clusters/admiralDatabaseClient.go:72

func checkIfDatabaseClientIsInitialize(workloadDatabaseClient *WorkloadDatabaseClient) error {
	if workloadDatabaseClient == nil || workloadDatabaseClient.dynamoClient == nil {
		return fmt.Errorf("dynamoClient is not initialized")
	}

	if workloadDatabaseClient.database == nil {
		return fmt.Errorf("database is not initialized")
	}

	return nil
}

func (dynamicConfigDatabaseClient *DynamicConfigDatabaseClient) Update(data interface{}, logger *log.Entry) error {
	//TODO implement me
	//At point of release there is no plan to support push config to dyanmic config storage
	panic("implement me")
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…