Skip to content

Commit

Permalink
Fixes: ci, sshuttle, versions bump (#51)
Browse files Browse the repository at this point in the history
* feat: bump version to 24.5.0

* feat: whoami deployment

* fix(ci): versions

* fix(ci): versions

* fix(ci): move Sonar to the build job

* fix: remove test host from whoami

* feat(docs): ii diagram

* feat: update general version

* fix: spaces

* feat: bump k8s version to 1.30
  • Loading branch information
VladyslavKurmaz authored Jul 8, 2024
1 parent 1f2d52d commit cda26c9
Show file tree
Hide file tree
Showing 15 changed files with 116 additions and 98 deletions.
6 changes: 3 additions & 3 deletions .tln.conf
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,20 @@ sshuttle --dns${daemon} -vr ${script.env.TLN_CLOUDS_BASTION} 0/0 --ssh-cmd 'ssh$
}
},
{ id: 'connect', builder: async (tln, script) => {
script.set([
script.set([
`tln sshuttle -- --conn-opts ${script.env.TLN_CLOUDS_CONN_OPTS} --bastion $(tln get-bastion -- --conn-opts ${script.env.TLN_CLOUDS_CONN_OPTS})`
]);
}
},
{ id: 'whoami', builder: async (tln, script) => {
const op = script.env.TLN_CLOUDS_DELETE ? 'delete' : 'apply';
script.set([
script.set([
`kubectl ${op} -f ${path.join(__dirname, 'whoami.yaml')}`
]);
}
},
{ id: 'disconnect', builder: async (tln, script) => {
script.set([
script.set([
`pkill -f sshuttle`
]);
}
Expand Down
2 changes: 1 addition & 1 deletion aws/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=eu-central-1

TF_VAR_aws_k8s_version=1.29
TF_VAR_aws_k8s_version=1.30
TF_VAR_aws_k8s_nodes_min=1
TF_VAR_aws_k8s_nodes_desired=2
TF_VAR_aws_k8s_nodes_max=3
Expand Down
2 changes: 1 addition & 1 deletion aws/.tln.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
},
dotenvs: async (tln) => { if (fs.existsSync('.env')) return ['.env']; else return [] },
inherits: async (tln) => [],
depends: async (tln) => ['kubectl-1.29.0', 'helm-3.14.0', 'terraform-1.7.5', 'aws-cli-2.15.15'],
depends: async (tln) => ['kubectl-1.30.2', 'helm-3.15.2', 'terraform-1.9.1', 'aws-cli-2.17.9'],
steps: async (tln) => [
{ id: 'ls-ec2', builder: async (tln, script) => {
script.set(['aws ec2 describe-instances --output yaml --query "Reservations[*].Instances[*].{Instance:InstanceId}"']);
Expand Down
2 changes: 1 addition & 1 deletion aws/app/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion aws/group/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion aws/managed/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion aws/network/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion aws/provider/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion aws/tenant/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.1"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion azure/.tln.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
dotenvs: async (tln) => ['.env'],
inherits: async (tln) => [],
depends: async (tln) => ['kubectl-1.23.10', 'helm-3.10.2', 'terraform-1.3.5', 'azure-cli'],
depends: async (tln) => ['kubectl-1.30.2', 'helm-3.15.2', 'terraform-1.9.1', 'azure-cli'],
steps: async (tln) => [],
components: async (tln) => []
}
2 changes: 1 addition & 1 deletion do/.tln.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
},
dotenvs: async (tln) => { if (fs.existsSync('.env')) return ['.env']; else return [] },
inherits: async (tln) => [],
depends: async (tln) => ['kubectl-1.29.0', 'helm-3.14.0', 'terraform-1.7.1', 'doctl-1.104.0'],
depends: async (tln) => ['kubectl-1.30.2', 'helm-3.15.2', 'terraform-1.9.1', 'doctl-1.108.0'],
steps: async (tln) => [
{ id: 'login', builder: async (tln, script) => {
script.set([`
Expand Down
2 changes: 1 addition & 1 deletion gcp/.tln.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
dotenvs: async (tln) => ['.env'],
inherits: async (tln) => [],
depends: async (tln) => ['kubectl-1.23.10', 'helm-3.10.2', 'terraform-1.3.5', 'gcloud-410.0.0'],
depends: async (tln) => ['kubectl-1.30.2', 'helm-3.15.2', 'terraform-1.9.1', 'gcloud-483.0.0'],
steps: async (tln) => [],
components: async (tln) => []
}
184 changes: 101 additions & 83 deletions ii.drawio

Large diffs are not rendered by default.

Binary file modified ii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.6.0-dev
24.7.0-dev

0 comments on commit cda26c9

Please sign in to comment.