Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix examples with old schema #267

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/aws/serverless-microservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ kubectl describe resourcegraphdefinition.kro.run/microservice.kro.run

Expected result (resource definitions removed for brevity)

<!-- TODO: update this example output to the latest schema -->
```
Name: microservice.kro.run
Namespace: default
Expand Down
11 changes: 5 additions & 6 deletions website/docs/examples/aws/pod-rds-dbinstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ kind: ResourceGraphDefinition
metadata:
name: deploymentandawspostgres
spec:
apiVersion: v1alpha1
kind: DeploymentAndAWSPostgres

# CRD Definition
definition:
schema:
apiVersion: v1alpha1
kind: DeploymentAndAWSPostgres
spec:
applicationName: string
image: string
Expand All @@ -23,7 +22,7 @@ spec:
# Resources
resources:
- id: dbinstance
definition:
template:
apiVersion: rds.services.k8s.aws/v1alpha1
kind: DBInstance
metadata:
Expand All @@ -36,7 +35,7 @@ spec:
dbInstanceClass: db.t3.micro

- id: pod
definition:
template:
apiVersion: v1
kind: Pod
metadata:
Expand Down
8 changes: 4 additions & 4 deletions website/docs/examples/basic/noop.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ sidebar_position: 101
apiVersion: kro.run/v1alpha1
kind: ResourceGraphDefinition
metadata:
name: kro.run/v1alpha1
name: noop
spec:
apiVersion: v1alpha1
kind: NoOp
definition:
schema:
apiVersion: v1alpha1
kind: NoOp
spec:
name: string | required=true
resources: []
Expand Down
10 changes: 5 additions & 5 deletions website/docs/examples/basic/web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ kind: ResourceGraphDefinition
metadata:
name: deploymentservice
spec:
apiVersion: v1alpha1
kind: DeploymentService
definition:
schema:
apiVersion: v1alpha1
kind: DeploymentService
spec:
name: string
resources:
- id: deployment
definition:
template:
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -38,7 +38,7 @@ spec:
ports:
- containerPort: 80
- id: service
definition:
template:
apiVersion: v1
kind: Service
metadata:
Expand Down
Loading