Erhan Cagirici
958906855b
replace crossplane-runtime import path references with v2
...
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-31 20:44:58 +03:00
Sergen Yalçın
1a2083a12e
Merge pull request #114 from crossplane/crossplane-v2
...
angryjet: generate Crossplane V2 interface methods
2025-07-29 12:12:38 +03:00
Erhan Cagirici
ad96b640a6
angryjet: refactor function names to distinguish xp legacy vs modern
...
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-21 17:04:57 +03:00
Alex Price
35a4f7fb61
fix(angryjet): support pointers to structs
...
fixes #112
Signed-off-by: Alex Price <aprice@atlassian.com>
2025-07-19 11:52:20 +10:00
Erhan Cagirici
a45b0eb409
angryjet: add tests for xpv2 interface methods
...
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-18 14:01:26 +03:00
Erhan Cagirici
c62c0d527c
angryjet: generate xpv2 interface methods
...
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-08 11:16:06 +03:00
Jared Watts
e4fc8d29e0
feat: enable namespaced references in generated resolvers
...
Signed-off-by: Jared Watts <jbw976@gmail.com>
2025-06-06 09:48:23 +02:00
Sergen Yalçın
3c38a1e875
Change the multi resolvers
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2025-05-09 18:37:10 +03:00
Sergen Yalçın
1106a260c0
Reuse the crossplane-runtime helpers
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2025-05-09 18:19:21 +03:00
Sergen Yalçın
5da36d8390
Add new case to unit-tests for *float64 type reference generation
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2025-05-05 12:30:39 +03:00
Sergen Yalçın
4383b0a8c7
Fix the *float64 reference generation
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2025-05-05 12:05:45 +03:00
Sergen Yalçın
e9a9112fd2
Add a nil check for reference resolvers
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2025-05-05 11:33:52 +03:00
Duologic
d4a4d509d0
fix(angryjet): rename more helpers to convert
...
Signed-off-by: Duologic <jeroen@simplistic.be>
2025-04-24 14:56:17 +02:00
Nic Cope
41b296a74b
Address all linter warnings
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-04-21 13:04:08 -07:00
Nic Cope
68a85d1f05
Run golangci-lint run --fix
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-04-21 12:02:31 -07:00
L. Dalorion Johnson
6507791903
add helper functions; add k8s.io/utils/ptr dependency to helper functions
...
Signed-off-by: L. Dalorion Johnson <ldalorion@users.noreply.github.com>
2025-03-25 16:03:56 -05:00
Fatih Türken
7b14e707f8
Remove providerRef generation
...
Signed-off-by: Fatih Türken <turkenf@gmail.com>
2023-09-25 16:04:13 +03:00
lsviben
f65dadcb91
Changed ManagementPolicy to ManagementPolicies
...
Signed-off-by: lsviben <sviben.lovro@gmail.com>
2023-07-12 22:14:34 +02:00
Hasan Turken
4236bf732a
Merge pull request #49 from eljohnson92/support_float_references
...
add support for float pointer values for references
2023-03-27 12:17:44 +03:00
Evan Johnson
6f309452ba
add support for float pointer values for references
...
Signed-off-by: Evan Johnson <eljohn1014@gmail.com>
2023-03-03 12:23:13 -05:00
Hasan Turken
350d1d88b4
Generate get/set management policy
...
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-02-23 13:04:59 +03:00
Alper Rifat Ulucinar
2a99ce6564
Update Go version to 1.18
...
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
2022-08-26 16:17:43 +03:00
Alper Rifat Ulucinar
392c8cd4c9
Update build submodule to 87ea77a17f7174767629d514096c0ebe23d96c9e
...
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
2022-08-26 15:11:23 +03:00
Alper Rifat Ulucinar
750cac54f2
Support reference extractor function calls containing arguments with dots
...
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
2022-08-07 23:33:11 +03:00
muvaffak onuş
1f43fc1279
Merge pull request #37 from sergenyalcin/fix-reference-cycle
...
Use NewFilePath instead of NewFile while creating the File object
2022-03-10 19:50:30 +03:00
Sergen Yalçın
84d9ff061e
Add code comment
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-03-10 19:38:17 +03:00
Sergen Yalçın
679c365288
Use NewFilePath instead of NewFile while creating the File object
...
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-03-09 16:58:38 +03:00
Hasan Turken
db216f2c59
Generate methods for PublishConnectionDetailsTo API
...
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-04 17:37:23 +03:00
Muvaffak Onus
4a69720cd8
cosmetic changes
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-16 15:38:56 +03:00
Muvaffak Onus
431779973a
resolvers: add code comments and fix linter errors
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-07 16:26:05 +03:00
Muvaffak Onus
fa70b84ed6
resolvers: change structure to have single traverser per package
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-07 15:41:26 +03:00
Muvaffak Onus
1fe7729f44
resolvers: add test for generated code
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-07 15:09:53 +03:00
Muvaffak Onus
971b9cb106
resolvers: use an array of strings for field path everywhere so that we do not have to do back and forth with string
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-07 15:09:43 +03:00
Muvaffak Onus
0412446bd7
types.traverser: rename TypeProcessor to NamedProcessor
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-05 13:25:21 +03:00
Muvaffak Onus
df0cbc93be
references: cover all possible cases such as pointer and arrays in field path so that we write the actual resolver call in nil guards and for loops
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-05 02:37:06 +03:00
Muvaffak Onus
0a19fea1f3
introduce traverser to go through all fields and types
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-09-05 02:34:57 +03:00
Muvaffak Onus
7d74f5a7fb
write reference resolver with typewriter
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-08-30 21:00:49 +03:00
Muvaffak Onus
c932cf41a9
Add support for overriding reference and selector field names for corner cases
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-08-30 15:51:34 +03:00
Muvaffak Onus
9c7a500a8a
Add support for resolving array references
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-08-29 18:45:10 +03:00
Muvaffak Onus
1a40cfa5de
* Add recursive search for reference markers.
...
* Print resolver functions. Only non-list ones for now.
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-08-29 18:20:37 +03:00
Muvaffak Onus
2fee56c588
Add NewResolveReferences in its most basic form
...
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2021-08-29 14:54:56 +03:00
Jan Willies
d8d4de6ec6
Revert "Remove deprecated ProviderReference methods"
...
This reverts commit 2ba47acab1 .
Signed-off-by: Jan Willies <jan.willies@accenture.com>
2021-03-20 17:14:30 +01:00
hasheddan
6c29f95295
Fix method test signatures
...
Updates a few incorrect method test signatures to match the actual
methods they are testing for generation.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-02 09:29:55 -06:00
hasheddan
2ba47acab1
Remove deprecated ProviderReference methods
...
Removes the deprecated ProviderReference in favor of only using
ProviderConfigReference.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-02 09:24:30 -06:00
hasheddan
2d16b82948
Import common/v1 crossplane-runtime apis
...
Update core/v1alpha1 api imports to common/v1 and aliases to xpv1, which
has been established as convention.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-11-30 20:27:33 -06:00
Nic Cope
80bef4534c
Don't generate credentials secret getters and setters
...
We don't expect these to be consistent across all providers. Currently _most_
providers require a credentials secret. The AWS provider does not, because it
supports using a different method (i.e. IRSA) that does not require a secret.
In practice we don't use these getters and setters anywhere where we couldn't
just type assert resource.ProviderConfig to the specific type we're dealing
with.
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-05 18:21:57 -07:00
Nic Cope
7e3c332522
Generate method sets for provider configs and usages
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 00:44:36 -07:00
Nic Cope
932d693565
Remove deprecated class-and-claim matchers and fields
...
These were missed in the below PR.
https://github.com/crossplane/crossplane-tools/pull/23
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 00:44:36 -07:00
Nic Cope
fcd934f2eb
Match crossplane/crossplane build and GitHub configuration
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-09-26 15:45:56 -07:00
Nic Cope
c3e0bb5c1a
Don't generate methods pertaining to classes and claims
...
See https://github.com/crossplane/crossplane/issues/1670 for context.
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-09-20 18:12:53 -07:00