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

harbor_interrogation_services ressource is not idempotent with custom cron #451

Closed
rafernandez opened this issue Jul 9, 2024 · 1 comment · Fixed by #457
Closed

harbor_interrogation_services ressource is not idempotent with custom cron #451

rafernandez opened this issue Jul 9, 2024 · 1 comment · Fixed by #457
Labels
bug Something isn't working

Comments

@rafernandez
Copy link

Describe the bug
When i configure harbor_interrogation_services with custom cron, terraform apply update in-place systematically

To Reproduce

  1. Apply this code :
# Scan the artifacts for vulnerabilies once a day at 2am
resource "harbor_interrogation_services" "main" {
  vulnerability_scan_policy = "0 2 * * * *"
}
  1. Re-apply the previous code :
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # harbor_interrogation_services.main will be updated in-place
  ~ resource "harbor_interrogation_services" "main" {
        id                        = "/system/scanAll/schedule"
      ~ vulnerability_scan_policy = "Custom" -> "0 2 * * * *"
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Expected behavior
No changes made by terraform

Additional context

  • Provider Version 3.10.12
  • Terraform Version v1.3.7
  • Harbor Version v2.9.2-5d27ccf7

thanks in advance

@flbla
Copy link
Contributor

flbla commented Jul 22, 2024

Hi @rafernandez,
thank you for the bug report.
It will be fixed with the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants