Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Possibility to ignore external updates. #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oerd
Copy link

@oerd oerd commented Nov 26, 2024

Some fields can be updated "outside of terraform" i.e. when pushing a docker image tag in a CICD pipeline. This backwards-compatible change allows to explicitly ignore external changes of certain fields (i.e. update_time)

fixes #47

Some fields can updated "outside of terraform" i.e. when pushing a docker
image tag in a CICD pipeline. This backwards-compatible change allows to
explicitly ignore external changes of certain fields (i.e. update_time)
@oerd oerd requested review from prabhu34 and a team as code owners November 26, 2024 15:58
Copy link

google-cla bot commented Nov 26, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@oerd
Copy link
Author

oerd commented Dec 15, 2024

Ping @prabhu34

@sagarrakshe
Copy link

Hey @prabhu34 can you prioritize reviewing and merging this PR? Thanks.

@apeabody apeabody closed this Dec 30, 2024
@apeabody apeabody reopened this Dec 30, 2024
@apeabody
Copy link
Contributor

(re-opened to re-trigger stuck lint)

@apeabody
Copy link
Contributor

/gcbrun

Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @oerd!

This is from the lint test:

terraform_validate .
╷
│ Error: Terraform encountered problems during initialisation, including problems
│ with the configuration, described below.
│ 
│ The Terraform configuration must be valid before initialization so that
│ Terraform can determine which modules and providers need to be installed.
│ 
│ 
╵
╷
│ Error: Invalid expression
│ 
│   on main.tf line 187, in resource "google_artifact_registry_repository" "repo":
│  187:     ignore_changes = var.ignore_changes
│ 
│ A static list expression is required.
╵
terraform_validate ./examples/gar_docker_repo
╷
│ Error: Invalid expression
│ 
│   on ../../main.tf line 187, in resource "google_artifact_registry_repository" "repo":
│  187:     ignore_changes = var.ignore_changes
│ 
│ A static list expression is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for Ignoring Changes to update_time in google_artifact_registry_repository resource
3 participants