-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange examples and update documentation (#8)
* Rearrange examples and update documentation * Sort examples by context dir * Provide render target specific for each use case * Avoid test file duplication, share as much as possible Signed-off-by: Yury Tsarev <[email protected]> * Update syntax highlighting Signed-off-by: Yury Tsarev <[email protected]> --------- Signed-off-by: Yury Tsarev <[email protected]>
- Loading branch information
Showing
21 changed files
with
228 additions
and
57 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
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,3 @@ | ||
.PHONY: render | ||
render: | ||
crossplane render ../xr.yaml composition.yaml ../functions.yaml --function-credentials=../secrets/azure-creds.yaml -rc |
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
.PHONY: render | ||
render: | ||
crossplane render ../xr.yaml composition.yaml ./functions.yaml --function-credentials=../secrets/azure-creds.yaml --extra-resources=envconfig.yaml -rc |
File renamed without changes.
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,43 @@ | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xrs.example.crossplane.io | ||
spec: | ||
group: example.crossplane.io | ||
names: | ||
categories: | ||
- crossplane | ||
kind: XR | ||
plural: xrs | ||
versions: | ||
- name: v1 | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: XR is the Schema for the XR API. | ||
properties: | ||
spec: | ||
description: XRSpec defines the desired state of XR. | ||
type: object | ||
status: | ||
description: XRStatus defines the observed state of XR. | ||
type: object | ||
properties: | ||
azResourceGraphQueryResult: | ||
description: Freeform field containing query results from function-azresourcegraph | ||
type: array | ||
items: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
status: | ||
controllers: | ||
compositeResourceClaimType: | ||
apiVersion: "" | ||
kind: "" | ||
compositeResourceType: | ||
apiVersion: "" | ||
kind: "" |
File renamed without changes.
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,3 @@ | ||
.PHONY: render | ||
render: | ||
crossplane render ./xr.yaml composition.yaml ../functions.yaml --function-credentials=../secrets/azure-creds.yaml -rc |
File renamed without changes.
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,43 @@ | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xrs.example.crossplane.io | ||
spec: | ||
group: example.crossplane.io | ||
names: | ||
categories: | ||
- crossplane | ||
kind: XR | ||
plural: xrs | ||
versions: | ||
- name: v1 | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: XR is the Schema for the XR API. | ||
properties: | ||
spec: | ||
description: XRSpec defines the desired state of XR. | ||
type: object | ||
status: | ||
description: XRStatus defines the observed state of XR. | ||
type: object | ||
properties: | ||
azResourceGraphQueryResult: | ||
description: Freeform field containing query results from function-azresourcegraph | ||
type: array | ||
items: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
status: | ||
controllers: | ||
compositeResourceClaimType: | ||
apiVersion: "" | ||
kind: "" | ||
compositeResourceType: | ||
apiVersion: "" | ||
kind: "" |
File renamed without changes.
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,3 @@ | ||
.PHONY: render | ||
render: | ||
crossplane render ../xr.yaml composition.yaml ../functions.yaml --function-credentials=../secrets/azure-creds.yaml -rc |
File renamed without changes.
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,43 @@ | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xrs.example.crossplane.io | ||
spec: | ||
group: example.crossplane.io | ||
names: | ||
categories: | ||
- crossplane | ||
kind: XR | ||
plural: xrs | ||
versions: | ||
- name: v1 | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: XR is the Schema for the XR API. | ||
properties: | ||
spec: | ||
description: XRSpec defines the desired state of XR. | ||
type: object | ||
status: | ||
description: XRStatus defines the observed state of XR. | ||
type: object | ||
properties: | ||
azResourceGraphQueryResult: | ||
description: Freeform field containing query results from function-azresourcegraph | ||
type: array | ||
items: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
status: | ||
controllers: | ||
compositeResourceClaimType: | ||
apiVersion: "" | ||
kind: "" | ||
compositeResourceType: | ||
apiVersion: "" | ||
kind: "" |
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,3 @@ | ||
.PHONY: render | ||
render: | ||
crossplane render ../xr.yaml composition.yaml ../functions.yaml --function-credentials=../secrets/azure-creds.yaml -rc |
File renamed without changes.
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,43 @@ | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xrs.example.crossplane.io | ||
spec: | ||
group: example.crossplane.io | ||
names: | ||
categories: | ||
- crossplane | ||
kind: XR | ||
plural: xrs | ||
versions: | ||
- name: v1 | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: XR is the Schema for the XR API. | ||
properties: | ||
spec: | ||
description: XRSpec defines the desired state of XR. | ||
type: object | ||
status: | ||
description: XRStatus defines the observed state of XR. | ||
type: object | ||
properties: | ||
azResourceGraphQueryResult: | ||
description: Freeform field containing query results from function-azresourcegraph | ||
type: array | ||
items: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
status: | ||
controllers: | ||
compositeResourceClaimType: | ||
apiVersion: "" | ||
kind: "" | ||
compositeResourceType: | ||
apiVersion: "" | ||
kind: "" |