feat: 定义 v1alpha1 API 合同
This commit is contained in:
@@ -34,7 +34,7 @@ var _ = Describe("PostgreSQLTenant Controller", func() {
|
||||
Context("When reconciling a resource", func() {
|
||||
const (
|
||||
resourceName = "test-resource"
|
||||
resourceNamespace = "default"
|
||||
resourceNamespace = testNamespace
|
||||
)
|
||||
|
||||
ctx := context.Background()
|
||||
@@ -54,7 +54,9 @@ var _ = Describe("PostgreSQLTenant Controller", func() {
|
||||
Name: resourceName,
|
||||
Namespace: resourceNamespace,
|
||||
},
|
||||
// TODO(user): Specify other spec details if needed.
|
||||
Spec: databasev1alpha1.PostgreSQLTenantSpec{
|
||||
InstanceRef: testInstanceName,
|
||||
},
|
||||
}
|
||||
Expect(k8sClient.Create(ctx, resource)).To(Succeed())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user