GithubHelp home page GithubHelp logo

mnthomson / terraform-provider-dominos Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 4.0 170 KB

๐ŸŽฒ๐Ÿ• The Terraform plugin for the Dominos Pizza provider

Home Page: https://registry.terraform.io/providers/MNThomson/dominos

License: GNU General Public License v3.0

Makefile 2.34% Go 97.66%
golang terraform-provider dominos pizza terraform

terraform-provider-dominos's Introduction

Hey there, I'm Max! ๐Ÿ‘‹

I work on cloud infrastructure, system observability, & automation tooling

I build with this tech

Python, Typescript, Rust, Go, Neovim, AWS, Kubernetes, Docker

My stats

MNThomson's GitHub Stats MNThomson's GitHub Stats

terraform-provider-dominos's People

Contributors

davewongillies avatar deltamualpha avatar mnthomson avatar nat-henderson avatar uncaffeinated avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-provider-dominos's Issues

HTTP Client in provider

Is your feature request related to a problem? Please describe.

Throughout the codebase, there are a lot of &http.Client{} calls

Describe the solution you'd like

Create a client in the providerData struct

Validate provider config

Is your feature request related to a problem? Please describe.

If bad data is provided in yhr provider block, it will fail late at the ordering stage

Describe the solution you'd like

Validate the input data

Datasource Address isn't set to api return value

Describe the bug

The Dominos API returns the corrected address, this should be the address stored in state

To Reproduce
Steps to reproduce the behaviour:

  1. Run terraform apply
  2. Check state file
  3. Notice that the value is not set to the API returned value

Expected behaviour

The state file should display the returned canonicalized version

Additional context

Not sure if this would be counter to the whole "IaC" when the value is actually not what is shown/stored as. Might need some input

Format Imports

Is your feature request related to a problem? Please describe.

Having local + remote imports in the same list makes them hard to differentiate

Describe the solution you'd like

Run goimports in CI to ensure they are separated

Value conversion error: mismatch between struct and object when applying

Describe the bug
Terraform apply fails due to a value conversion error relating to "address_api_object" found in the resourceOrderData struct and the "api_object" variable used by the dominos_order resource.

Likely has to do with this line, but I'm not familiar with Go or how I would go about testing it myself.

To Reproduce
Steps to reproduce the behaviour:

  1. Run command terraform apply while there is a dominos_order resource in the plan.

Expected behaviour
Terraform apply succeeds.

Screenshots
image

Desktop Versions:

  • OS: Windows 10
  • Terraform Version: 1.5.7

Option for Delivery Instructions

Is your feature request related to a problem? Please describe.

I'd like to add a delivery instruction

Describe the solution you'd like

An optional field in the resource_order object

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.