-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: add ecr-credential-provider and crictl config (#17)
- Loading branch information
1 parent
1217398
commit 910af4c
Showing
8 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${replace(yamlencode(content),"\"", "")} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
output "files" { | ||
value = [ | ||
data.ignition_file.containerd_config.rendered | ||
data.ignition_file.containerd_config.rendered, | ||
data.ignition_file.crictl_config.rendered, | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
modules/ecr-credential-provider/ecr-credential-provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
data "ignition_file" "ecr_credential_provider" { | ||
filesystem = "root" | ||
path = "/opt/bin/ecr-credential-provider/ecr-credential-provider" | ||
mode = 493 | ||
|
||
source { | ||
source = var.binary.source | ||
verification = var.binary.checksum | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "systemd_units" { | ||
value = [] | ||
} | ||
|
||
output "files" { | ||
value = [ | ||
data.ignition_file.ecr_credential_provider.rendered, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
variable "binary" { | ||
description = "Desired binary file url and checksum(sha512)." | ||
type = object({ | ||
source = string | ||
checksum = string | ||
}) | ||
default = { | ||
source = "https://artifacts.k8s.io/binaries/cloud-provider-aws/v1.27.1/linux/amd64/ecr-credential-provider-linux-amd64" | ||
checksum = "sha512-b132e19a8b1330ae6b363e5332405f1781c71b73f36ca691c1f7add5a6573e39ce352e332062bf474489fb730906f172be024c7da3bc7aacbb49e6592832223c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
terraform { | ||
required_providers { | ||
ignition = { | ||
source = "terraform-providers/ignition" | ||
} | ||
local = { | ||
source = "hashicorp/local" | ||
} | ||
template = { | ||
source = "hashicorp/template" | ||
} | ||
} | ||
required_version = ">= 0.13" | ||
} |