Skip to content

Commit

Permalink
Merge pull request #267 from n3wscott/fix-examples
Browse files Browse the repository at this point in the history
Fix examples with old schema
  • Loading branch information
a-hilaly authored Feb 4, 2025
2 parents 3a229cf + cb4edb7 commit 87a9b1c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
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

0 comments on commit 87a9b1c

Please sign in to comment.