Skip to content

Conversation

@RosanaTSF
Copy link

Description

This PR adds the initial implementation of the tsuru_platform resource to address issue #7.

Changes

  • Added resource_tsuru_platform.go with complete resource structure
  • Registered tsuru_platform in provider ResourcesMap
  • Implemented schema with fields: name, dockerfile, dockerfile_content, disabled
  • Created CRUD function skeletons (Create, Read, Update, Delete)
  • Configured timeouts and importer
  • Compiles successfully without errors

Schema Fields

  • name (required, string): Platform name
  • dockerfile (optional, string): Platform dockerfile URL
  • dockerfile_content (optional, string): Platform dockerfile content
  • disabled (optional, bool): Platform disabled status

Next Steps

The CRUD functions contain TODO placeholders for API implementation. Looking for feedback on:

  • Schema field validation (are these the right fields?)
  • API endpoints to use for platform operations
  • Any missing required fields or constraints

Testing

  • Code compiles successfully (make build)
  • Resource is registered and recognized by Terraform
  • API implementation (pending feedback)

Closes #7


🎃 Hacktoberfest 2025 contribution

Rosana Francisco added 2 commits October 21, 2025 14:12
- Add comprehensive Getting Started section for macOS and Linux
- Include step-by-step installation instructions
- Add Development section with build and test commands
- Add Contributing section with guidelines for new contributors
- Add examples section with basic usage
- Add tips for beginners
- Improve overall documentation structure
- Add resource_tsuru_platform.go with schema and CRUD functions
- Register tsuru_platform in provider ResourcesMap
- Schema includes: name, dockerfile, dockerfile_content, disabled
- Functions have TODO placeholders for API implementation
- Compiles successfully without errors

Closes tsuru#7
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.

Support platform resource

1 participant