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
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
Erhan Cagirici
c62c0d527c
angryjet: generate xpv2 interface methods
...
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-08 11:16:06 +03: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
Duologic
6e507c9507
fix(angryjet): rename helpers to convert
...
Signed-off-by: Duologic <jeroen@simplistic.be>
2025-04-23 11:32:36 +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
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
Christian Artin
b29e71200e
Replace gopkg.in/alecthomas/kingpin.v2 by github.com/alecthomas/kingpin/v2
...
Signed-off-by: Christian Artin <gravufo@gmail.com>
2024-04-19 16:33:11 -04: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
350d1d88b4
Generate get/set management policy
...
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-02-23 13:04:59 +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
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
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
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
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
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
4ca8c576ff
Allow ProviderConfigs to have conditions
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 03:06:32 -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
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
Muvaffak Onus
2c5cc52b33
Add Get/Set methods for ProviderConfigReference
...
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2020-08-24 16:24:03 +03:00
Nic Cope
da38fc6e95
Generate deletion policy getters and setters for managed resources.
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-08-11 18:42:59 -07:00
hasheddan
1fbc3bb506
Update Provider reference methods to use runtime Reference
...
This updates the generated provider reference methods to use the
non-pointer Reference type instead of a core.ObjectReference pointer.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-06-29 08:54:39 -05:00
Nic Cope
b2cd5941d9
Generate a GetItems method for list types
...
This allows us to define interfaces that represent a list of managed resources,
list of resource claims, etc.
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-04-12 01:58:56 -07:00
Muvaffak Onus
45cefccb87
Managed resources should implement ProviderReferencer interface
...
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2020-03-02 17:33:56 +03:00
hasheddan
a229350c95
Update go mod and refs with crossplane org name
...
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-02-18 17:28:36 -06:00
Muvaffak Onus
212d1ec090
add Provider interface generation
...
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2019-12-20 23:18:38 +03:00
Nic Cope
61fa1eff2a
Merge pull request #7 from negz/notsoclassy
...
Support simple resource class selection
2019-10-23 14:57:26 -07:00
soorena776
0167f47dec
adding `GetCondition` method to Managed resource types
...
Signed-off-by: soorena776 <javad@upbound.io>
2019-10-22 11:47:48 -07:00
Nic Cope
2b71a22e7f
Revert "Adding `GetCondition` method to the managed resource methodsets"
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-18 15:58:23 -07:00
soorena776
92e0f14dce
adding `GetCondition` method to Managed resource types
...
Signed-off-by: soorena776 <javad@upbound.io>
2019-10-18 14:05:03 -07:00
Nic Cope
b4b9ced5eb
Support simple resource class selection
...
https://github.com/crossplaneio/crossplane/pull/926
https://github.com/crossplaneio/crossplane/pull/927
https://github.com/crossplaneio/crossplane-runtime/pull/48
Updates angryjet to reflect the above changes.
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-17 15:50:10 -07:00
Nic Cope
53ff22ad7b
Support Go modules
...
Write the generated files alongside the first Go file of the module, rather than
to its presumed path under GOPATH. This change assumes:
* Packages always have at least one Go source file.
* The Go files of a package are always within a single directory.
I believe the above are always true.
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-07 12:25:23 -07:00
Nic Cope
f23cf34602
Bikeshed the angryjet API a little
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-03 19:32:49 -07:00
Nic Cope
20a2b98c2a
Migrate angryjet to crossplane-tools
...
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-03 19:19:14 -07:00
Nic Cope
1fd2cd399e
Fix non-portable class methodset
2019-09-29 23:20:57 -07:00
Nic Cope
9d5fb56acf
Generate all Crossplane method sets
2019-09-29 22:51:50 -07:00
Nic Cope
b256836ae0
Clean things up a little
2019-09-22 01:36:12 -07:00
Nic Cope
9efbd2ff4b
Add an initial partial implementation
2019-09-21 19:01:24 -07:00