-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for Namespace custom resource
Signed-off-by: Stefan Prodan <[email protected]>
- Loading branch information
1 parent
84c446a
commit 819eeb9
Showing
2 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: namespaces.servicebus.azure.com | ||
spec: | ||
group: servicebus.azure.com | ||
names: | ||
kind: Namespace | ||
listKind: NamespaceList | ||
plural: namespaces | ||
singular: namespace | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.type | ||
name: TYPE | ||
type: string | ||
name: v1beta20210101preview | ||
schema: | ||
openAPIV3Schema: | ||
description: Test is the Schema for the testing API | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: TestSpec defines the desired state of a test run | ||
properties: | ||
type: | ||
description: Type of test | ||
type: string | ||
enum: | ||
- unit | ||
- integration | ||
valuesFrom: | ||
description: config reference | ||
type: string | ||
type: object | ||
status: | ||
default: | ||
observedGeneration: -1 | ||
properties: | ||
observedGeneration: | ||
description: ObservedGeneration is the last observed generation. | ||
format: int64 | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
--- | ||
apiVersion: servicebus.azure.com/v1beta20210101preview | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
serviceoperator.azure.com/reconcile-policy: detach-on-delete | ||
name: sptribs-servicebus-preview | ||
namespace: sptribs | ||
spec: | ||
type: integration | ||
valuesFrom: test-config | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
slackChannel: special-tribunals-builds | ||
name: sptribs | ||
|