crossplane-contrib / crossplane-contrib/provider-upjet-github

Invalid external-name on repository rulesets

Open
#176 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
56
Forks
46
Avg merge
6d 7h
Merged PRs (30d)
2

Description

The resouerce tries to observe to calculate mutations, however because the `external-name` is wrong it can never import the resource and it thus fails.

The upstream terraform confirms this suspicion that it should not be the name string but rather the ID.

```
[Attributes Reference](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_ruleset#attributes-reference)
The following additional attributes are exported:

[etag](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_ruleset#etag-1) (String)

[node_id](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_ruleset#node_id-1) (String) GraphQL global node id for use with v4 API.

[ruleset_id](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_ruleset#ruleset_id-1) (Number) GitHub ID for the ruleset.
```

Error:

```log
"message": "observe failed: failed to observe the resource: [{0 Unexpected ID format (\"REDACTED\"), expected numerical ID. strconv.ParseInt: parsing \"REDACTED\": invalid syntax []}]",
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.