Skip to content

Commit 9e211b3

Browse files
committed
fix(gitlab-18.0) gitlab_repository_file now requires attribute encoding
1 parent c9ce2fa commit 9e211b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ resource "gitlab_repository_file" "agent_config" {
5757
branch = data.gitlab_project.this.default_branch
5858
file_path = ".gitlab/agents/${gitlab_cluster_agent.this.name}/config.yaml"
5959
content = base64encode(yamlencode(var.agent_config))
60+
encoding = base64
6061

6162
author_email = var.author_email
6263
commit_message = "${var.commit_message} ${gitlab_cluster_agent.this.name}"

0 commit comments

Comments
 (0)