Commit Graph

25 Commits

Author SHA1 Message Date
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
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
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
Hasan Turken db216f2c59
Generate methods for PublishConnectionDetailsTo API
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-04 17:37:23 +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
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 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
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 f23cf34602 Bikeshed the angryjet API a little
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-03 19:32:49 -07:00