Skip to content

Commit

Permalink
added sample test config files
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsterckx committed Jan 13, 2023
1 parent 153f3a4 commit 865e5a0
Show file tree
Hide file tree
Showing 10 changed files with 871 additions and 0 deletions.
Empty file added samples/RUNBOOK.md
Empty file.
135 changes: 135 additions & 0 deletions samples/eks/ecs-migration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs-1-initial
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: []
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs-2-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${external-cluster-instances.ids}
migrateToVersion: <UPGRADE-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [external-cluster-instances, external-cluster]
dependsOn: [aws-ecs-1-initial]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs-3-migrated
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: [aws-ecs-2-migrate]
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs-4-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${external-cluster-instances.ids}
migrateToVersion: <STARTING-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [external-cluster-instances, external-cluster]
dependsOn: [aws-ecs-3-migrated]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs-5-final
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: [aws-ecs-4-migrate]
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster
namespace: testsys
spec:
agent:
name: ecs-provider
image: <ECS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: external-cluster
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: onDeletion
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
clusterType: ecs
instanceCount: 2
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
instanceProfileArn: ${external-cluster.iamInstanceProfileArn}
subnetIds: ${external-cluster.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
dependsOn: [external-cluster]
destructionPolicy: onDeletion
57 changes: 57 additions & 0 deletions samples/eks/ecs-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-ecs
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: []
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster
namespace: testsys
spec:
agent:
name: ecs-provider
image: <ECS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: external-cluster
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: onDeletion
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
clusterType: ecs
instanceCount: 2
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
instanceProfileArn: ${external-cluster.iamInstanceProfileArn}
subnetIds: ${external-cluster.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
dependsOn: [external-cluster]
destructionPolicy: onDeletion
149 changes: 149 additions & 0 deletions samples/eks/sonobuoy-migration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-k8s-1-initial
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${external-cluster.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: []
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-k8s-2-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${external-cluster-instances.ids}
migrateToVersion: <UPGRADE-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [external-cluster-instances, external-cluster]
dependsOn: [aws-k8s-1-initial]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-k8s-3-migrated
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${external-cluster.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: [aws-k8s-2-migrate]
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-k8s-4-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${external-cluster-instances.ids}
migrateToVersion: <STARTING-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [external-cluster-instances, external-cluster]
dependsOn: [aws-k8s-3-migrated]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: aws-k8s-5-final
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
region: ${external-cluster.region}
subnets: ${external-cluster.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${external-cluster.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: [aws-k8s-4-migrate]
resources: [external-cluster-instances, external-cluster]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster
namespace: testsys
spec:
agent:
name: eks-provider
image: <EKS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
creationPolicy: ifNotExists
cluster_name: external-cluster
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: never
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: external-cluster-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${external-cluster.clusterName}
clusterType: eks
instanceCount: 2
instanceProfileArn: ${external-cluster.iamInstanceProfileArn}
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
subnetIds: ${external-cluster.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
endpoint: ${external-cluster.endpoint}
certificate: ${external-cluster.certificate}
clusterDnsIp: ${external-cluster.clusterDnsIp}
securityGroups: ${external-cluster.securityGroups}
dependsOn: [external-cluster]
destructionPolicy: onDeletion
Loading

0 comments on commit 865e5a0

Please sign in to comment.