Comments (10)
@robertofpaf Hi, I haven't been working on this in on long while. You are correct that it would require a new version if you don't want to work off of master. My setup was to have both in my go path and develop from my local branches.
I'm not sure what the process of doing a release would be for the aiven client. @jelmersnoeck Would be the one to contact.
from terraform-provider-aiven.
@FranOis I'm working out of master, but the problem is that the changes required in the aiven client (MFA support and auth tokens for users) are in the master branch of your fork (https://github.com/motivateco/aiven) and not in the master branch of the original project (https://github.com/jelmersnoeck/aiven). And your fork is 11 commits behind, so I would believe the best thing to do would be to try and merge your fork back...
from terraform-provider-aiven.
Our master is out of date, but the NewMFAClient still exists in the original project as far as I can tell: https://github.com/jelmersnoeck/aiven/blob/master/client.go#L27
from terraform-provider-aiven.
Ok, I definitely don't understand how glide works as git was reporting that it was in the master branch, git pull didn't pull any change but the local client.go I had was very outdated. Now I've checked out directly the master branch of the aiven client and the MFA part passes. However I'm still getting errors about the access certificate and key:
go build -o terraform-provider-aiven .
# github.com/pafinfra/terraform-provider-aiven
./resource_service_user.go:79:27: user.AccessCert undefined (type *aiven.ServiceUser has no field or method AccessCert)
./resource_service_user.go:80:26: user.AccessKey undefined (type *aiven.ServiceUser has no field or method AccessKey)
./resource_service_user.go:102:29: user.AccessCert undefined (type *aiven.ServiceUser has no field or method AccessCert)
./resource_service_user.go:103:28: user.AccessKey undefined (type *aiven.ServiceUser has no field or method AccessKey)
Makefile:2: recipe for target 'plugin' failed
make: *** [plugin] Error 2
Those fields are not defined in user.go in the aiven client master branch: https://github.com/jelmersnoeck/aiven/blob/master/user.go
from terraform-provider-aiven.
Hey @robertofpaf. Thanks for highlighting this.
This is actually associated with the ServiceUser. It seems that https://github.com/jelmersnoeck/terraform-provider-aiven/issues/8 added a change here for the Aiven client, but this wasn't patched.
@FranOis could you do the appropriate patch for the Aiven Client as well?
I will look at setting up CI for this project soon.
from terraform-provider-aiven.
@FranOis What is the situation here?
@jelmersnoeck Should I just send a PR that undoes https://github.com/jelmersnoeck/terraform-provider-aiven/pull/9 to get the code compiling?
from terraform-provider-aiven.
Ok eventually submitted https://github.com/jelmersnoeck/aiven/pull/10, it brings back the 2 field that got deleted (I guess by mistake) in https://github.com/jelmersnoeck/aiven/pull/4 and the provider now compiles.
from terraform-provider-aiven.
@robertofpaf thanks for the PR, it's merged.
from terraform-provider-aiven.
@robertofpaf what's the status? can we close? seems like everything is compiling.
from terraform-provider-aiven.
Ah, I thought this was closed when the PR was merged already.
from terraform-provider-aiven.
Related Issues (20)
- Fail terraform plan that would result in the deletion of aiven_kafka_topic that has termination_protection enabled HOT 3
- [Opensearch] Index templates configuration in Aiven Terraform HOT 5
- Version attribute for aiven_kafka_schema isn't incremented on apply HOT 2
- panic: runtime error: index out of range [1] with length 1 HOT 1
- Rsyslog max_message_size being read as 0 instead of 8192 HOT 3
- All ip_filters deleted when applying HOT 18
- Change to aiven_mirrormaker_replication_flow resource affects unspecified optional fields HOT 9
- aiven_pg: Type error after upgrading to 4.x HOT 7
- ip_filter_objects reordering without change HOT 5
- enable consumer lag predictor using terraform HOT 1
- local_retention_ms VS retention_ms HOT 13
- PG Major upgrade exit when there's pending maintenance updates HOT 1
- Add a data source for aiven_organization_user_group, and provide group members as list input rather than separate resources HOT 4
- plugin crash on aiven_pg import HOT 5
- List org/group users HOT 2
- Persistent diff when removing the deprecated aiven_transit_gateway_vpc_attachment.peer_region field HOT 5
- Customize Database Ownership HOT 1
- Aiven authentication resource HOT 1
- Organization ID HOT 3
- Unable to check schema validity when importing existing schemas HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-aiven.