Commit Graph

72 Commits

Author SHA1 Message Date
Erhan Cagirici 8ba120d73e make generate: refactored common api deepcopy methods
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-22 13:15:24 +03:00
Erhan Cagirici c056ae9de1 refactor shared api types to common package
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-22 13:12:01 +03:00
Erhan Cagirici f09b0a3b35 add v2 apis
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
2025-07-21 18:25:20 +03:00
Nic Cope 678177c524 Run golangci-lint run --fix
This commit is entirely generated by earthly +reviewable

Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-07-03 12:51:13 -07:00
Nic Cope aad05b013a Address false positive recvcheck linter warning
Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-07-03 12:49:57 -07:00
Nic Cope a592ede87e Address linter warnings about embedded structs
Specifically it wants them to appear first, before non-embedded things.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-07-03 11:34:05 -07:00
Scott Nichols 6beb360454 Update managed reconciler to store observedGeneration on conditions and also update that controllers unit tests
Signed-off-by: Scott Nichols <n3wscott@upbound.io>
2025-05-09 10:58:39 -07:00
Scott Nichols 8c883197a9 Introduce a condtions package with a light weight manager to help enable coordinated condition updates
Signed-off-by: Scott Nichols <n3wscott@upbound.io>
2025-05-02 11:46:16 -07:00
dalton hill 2d6e2aeecd Composite receiver functions for conditions.
Signed-off-by: Dalton Hill <dalton.hill.0@protonmail.com>
2024-06-26 10:36:39 -05:00
Predrag Knezevic d049fcc2e9 Address reviewer comments
Signed-off-by: Predrag Knezevic <predrag.knezevic@upbound.io>
2024-04-19 15:47:18 +02:00
Predrag Knezevic b5462b512d Add ability to expose resource reconciliation progress
* `status.observedGeneration` fields has been added to claim/composite/composed status,
  showing the latest metadata.generation which resulted in either a ready state,
  or stalled due to error it can not recover from without human intervention.
* `status.conditions[x].observedGeneration represents the .metadata.generation
  that the condition was set based upon

Signed-off-by: Predrag Knezevic <predrag.knezevic@upbound.io>
2024-04-09 11:04:31 +02:00
Nic Cope 0c7b1eb549 Bump golangci-lint, copy config from c/c
This copies the latest config from c/c and addresses all the linter
errors that config produces.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-02-20 03:45:27 -08:00
Nic Cope f0d05be088
Merge pull request #564 from phisco/conditions-schema-as-map
feat: add annotations to ConditionedStatus to make conditions a map
2023-09-28 09:47:20 -07:00
Philippe Scorsolini dbdff6e2ad
feat: add annotations to ConditionedStatus to make conditions a map
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-09-28 12:23:19 +02:00
lsviben 55a8c10930
gmp to beta
Signed-off-by: lsviben <sviben.lovro@gmail.com>
2023-09-20 11:46:19 +02:00
Christopher Haar fd85873073 feat(remove): remove deprecated providerRef
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
2023-08-23 15:46:55 +02:00
Philippe Scorsolini d92a78f1fb
chore: regenerate after upgrade
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-08-18 12:19:49 +02:00
Hasan Turken 4a83a570ec
Remove in-tree Vault implementation
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-08-14 09:34:01 +03:00
lsviben 73a675c82c
implement granular managementPolicies
Signed-off-by: lsviben <sviben.lovro@gmail.com>
2023-07-13 13:43:34 +02:00
Nic Cope 3de55a4a72 Update module github.com/imdario/mergo to v1
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-06-22 00:26:15 -07:00
ezgidemirel 30ed28af9f
Deprecate in-tree Vault
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-30 11:03:09 +03:00
Philippe Scorsolini 57dafafdaf
chore(linter): switching from goimports to gci enforcing imports sorting
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-03-29 09:23:07 +02:00
Hasan Turken 0dd35672f2
Pin design doc section for deprecation of deletion policy
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-03-27 12:08:35 +03:00
Hasan Turken 0023964825
Resolve Comments in Observe Only PR
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-03-27 12:05:07 +03:00
Hasan Turken 79cb4c8ac1
Add management policy to managed
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-03-27 12:05:06 +03:00
ezgidemirel 76fec039fb
simplified LoadMTLSConfig signature
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 17:18:33 +03:00
ezgidemirel b0785ed1ca
change store type, make tls config an option
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:06 +03:00
ezgidemirel fc63b94eb5
Remove certificate loading to make it on upper layers, add unit tests
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:06 +03:00
ezgidemirel bbb004932c
Implement gRPC client
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:05 +03:00
ezgidemirel 80e0b0c662
Extend secret store API with "External" type
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:05 +03:00
Philippe Scorsolini d8a21d394b
fix: add missing validation annotation
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-01-30 10:58:03 +01:00
Nic Cope bce61005a1
Merge pull request #355 from nokia/respect_finalizers
Support foreground cascading deletion
2022-10-11 18:39:34 -07:00
Bob Haddleton da77f4e104 Add blockOwnerDeletion: true and compositeDeletePolicy
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
2022-10-11 09:35:04 -05:00
Alper Rifat Ulucinar d5661c8fd6
Add support for a pause annotation which pauses reconciliations on managed resources
- If a managed resource has the "crossplane.io/paused" annotation with its value
  set to "true", then the managed reconciler emits an event indicating that
  further reconciliations on that resource are paused and returns early after
  setting a Synced status condition to false with the reason "ReconcilePaused".

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
2022-09-29 04:27:29 +03:00
Sergen Yalçın 23dad77b17
Add "IfNotPresent" to ResolvePolicy enum
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-06-16 13:48:01 +03:00
Sergen Yalçın afe248692b
Use kubebuilder enum for new policy fields
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-06-13 18:11:54 +03:00
Sergen Yalçın 38e79f4960
Preserve order of reference resolution
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-05-30 18:48:30 +03:00
Sergen Yalçın e2fb202fd5
Add policy api for Selector
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-05-12 16:11:37 +03:00
Sergen Yalçın 66e5e7ad0b
Re-design the Policy API
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-04-25 18:14:52 +03:00
Sergen Yalçın ec82fef853
Add a new policy about resolving references for every reconcile loop
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-04-16 16:03:18 +03:00
Sergen Yalçın ac7cf2045e
Support for having circular dependencies while using referencers
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
2022-04-14 14:56:17 +03:00
Hasan Turken 79ea2fe449
Add comment for linter and use types.UID for uid parameter
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-15 10:29:23 +03:00
Hasan Turken 80debfade8
Fix owner not being set for delete
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-11 22:34:48 +03:00
Hasan Turken ff57cdc7c4
Ensure secret owned by object before delete
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-11 10:29:34 +03:00
Hasan Turken 86fb15da2c
Extend Secret Store interface with more power
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-10 18:10:52 +03:00
Hasan Turken 867c9bb8e8
Track connection secret owner with label
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-10 09:56:04 +03:00
Hasan Turken 2f224692a9
Use store.KeyValue in connection.store package
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-09 14:46:59 +03:00
Hasan Turken c55240a2a2
Add PublishConnectionDetailsTo to Managed resource spec
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-09 12:43:52 +03:00
Hasan Turken d591b5e442
Vault ESS - resolve comments and add support for custom CA bundle
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-07 23:47:37 +03:00
Hasan Turken df72fd3089
Add unit tests for Vault KV client
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2022-03-02 21:00:04 +03:00