Add artifactapi_local_alpine resource #16
Reference in New Issue
Block a user
Delete Branch "benvin/apk-local"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
ArtifactAPI supports local Alpine/apk repositories as real registries, but the Terraform provider had no resource to manage them. This adds
artifactapi_local_alpine, mirroring the existingartifactapi_local_deb/artifactapi_local_rpmlocals so Alpine package registries can be declared alongside the rest of the fleet. The provider only passes package/repo type strings through the shared API, so it compiles and tests independently of the parallel server-side Alpine work.How
internal/provider/resource_local_alpine.go—localAlpineResourcewith full CRUD + import passthrough and model<->API mappers settingPackageType: "alpine",RepoType: "local".NewLocalAlpineResourcein providerResources().provider_testresource count 20 -> 21 and addartifactapi_local_alpineto the expected type-name list.resource_local_alpine_test.go(ModelToAPI/APIToModel/RoundTrip/Metadata/Schema/constructor).examples/resources/artifactapi_local_alpine/main.tf.go build,go vet,go mod tidy,make test(-race), and pre-commit all pass.