From 73077216ad57aec0bf220b6cc8e2477cc5625bf7 Mon Sep 17 00:00:00 2001 From: Arnaud Meukam Date: Wed, 19 Apr 2023 10:28:43 +0200 Subject: [PATCH] AWS: Add a DNS zone for kops tests Ref: https://github.com/kubernetes/k8s.io/issues/5127 Add a Route53 public zone used by kops tests. Signed-off-by: Arnaud Meukam --- .../workloads/kops/infra-services/main.tf | 27 +++++++++++++++++++ .../workloads/kops/infra-services/provider.tf | 23 ++++++++++++++++ .../workloads/kops/infra-services/versions.tf | 19 +++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 infra/aws/terraform/workloads/kops/infra-services/main.tf create mode 100644 infra/aws/terraform/workloads/kops/infra-services/provider.tf create mode 100644 infra/aws/terraform/workloads/kops/infra-services/versions.tf diff --git a/infra/aws/terraform/workloads/kops/infra-services/main.tf b/infra/aws/terraform/workloads/kops/infra-services/main.tf new file mode 100644 index 00000000000..d8e5fc4c37d --- /dev/null +++ b/infra/aws/terraform/workloads/kops/infra-services/main.tf @@ -0,0 +1,27 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* This file contains services used by kOps */ + + +resource "aws_route53_zone" "kops_tests" { + name = "tests-kops-aws.k8s.io" + + tags = { + environment = "staging" + group = "sig-cluster-lifecycle" + } +} diff --git a/infra/aws/terraform/workloads/kops/infra-services/provider.tf b/infra/aws/terraform/workloads/kops/infra-services/provider.tf new file mode 100644 index 00000000000..8b977154027 --- /dev/null +++ b/infra/aws/terraform/workloads/kops/infra-services/provider.tf @@ -0,0 +1,23 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +terraform { + required_providers { + aws = { + version = "4.61.0" + } + } +} \ No newline at end of file diff --git a/infra/aws/terraform/workloads/kops/infra-services/versions.tf b/infra/aws/terraform/workloads/kops/infra-services/versions.tf new file mode 100644 index 00000000000..8a312c46a32 --- /dev/null +++ b/infra/aws/terraform/workloads/kops/infra-services/versions.tf @@ -0,0 +1,19 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +terraform { + required_version = "~> 1.3.0" +} \ No newline at end of file