Giter Site home page Giter Site logo

terraform-provider-securecn's Introduction

SecureCN Terraform Provider

Build and Test

Development

Building

go test ./...
go install

Update the docs after changing resources

go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
go generate

CI and testing

An acceptance test is running for all submitted PRs in the repository with GitHub Actions test.yml. It is compiling the provider, setting up a kind cluster and performs the registration of this cluster in a separate account of the staging environment, see the examples/main.tf file for all the resources that are getting created during this test. After a successful test the provider destroys these resources and cleans up the account.

If the CI test fails because of Escher authentication errors, just try restarting the build (this happens time to time). The root cause of this is that Escher auth is a time based authentication method and the time on the management server and on GitHub Actions can differ.

Releasing

The release process is fully automated by GitHub Actions and GoReleaser. To execute the process you only need to tag the repository at the target commit with a semantically versioned git commit like: v1.1.6 After the release is compiled GoReleaser will upload the binaries next to the GitHub release it creates and those are getting grabbed by the Terraform Registry automatically.

terraform-provider-securecn's People

Contributors

bonifaido avatar craigbryson avatar dependabot[bot] avatar rafaelseidelcisco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.