-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nextReconcile does not work as expected #42
Comments
Hey @hayone1, Thank you for reaching out. This isn’t a bug. When you set the |
Hi @arielsepton Thanks for clarifying. I'll test and close this soon. |
Hi There, Reopening the issue as It actually still does not seem to work. From the I'll paste the latest manifest: apiVersion: http.crossplane.io/v1alpha2
kind: DisposableRequest
metadata:
annotations:
crossplane.io/composition-resource-name: sso-admin-oauth
crossplane.io/external-create-pending: '2024-08-07T16:13:50Z'
crossplane.io/external-create-succeeded: '2024-08-07T16:13:51Z'
crossplane.io/external-name: sso-admin-oauth
creationTimestamp: '2024-08-07T16:13:50Z'
finalizers:
- finalizer.managedresource.crossplane.io
generateName: sso-admin-oauth-
generation: 7
labels:
crossplane.io/claim-name: ''
crossplane.io/claim-namespace: ''
crossplane.io/composite: sso-admin-oauth
name: sso-admin-oauth
name: sso-admin-oauth
ownerReferences:
- apiVersion: sso.dstack.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: ClusterWsoAuth
name: sso-admin-oauth
uid: c74378de-f384-46fe-be41-7afdfc33f741
resourceVersion: '156138222'
uid: 47670119-7ad4-4a42-a3cd-39d22c911eac
spec:
deletionPolicy: Orphan
forProvider:
body: >-
username={{ sso-admin-user:infra:username }}&password={{
sso-admin-user:infra:password }}&client_id={{
sso-admin-user:infra:client_id }}&client_secret={{
sso-admin-user:infra:client_secret }}&grant_type={{
sso-admin-user:infra:grant_type }}&scope={{ sso-admin-user:infra:scope }}
headers:
Content-Type:
- application/x-www-form-urlencoded
insecureSkipTLSVerify: false
method: POST
nextReconcile: 669s
rollbackRetriesLimit: 5
secretInjectionConfigs:
- responsePath: .body.access_token
secretKey: access_token
secretRef:
name: sso-admin
namespace: default
- responsePath: .body.refresh_token
secretKey: refresh_token
secretRef:
name: sso-admin
namespace: default
- responsePath: .body.id_token
secretKey: id_token
secretRef:
name: sso-admin
namespace: default
shouldLoopInfinitely: true
url: http://sso-wso2is.infra.svc.cluster.local:9763/oauth2/token
waitTimeout: 5m
managementPolicies:
- '*'
providerConfigRef:
name: default
status:
conditions:
- lastTransitionTime: '2024-08-07T16:13:51Z'
reason: Available
status: 'True'
type: Ready
- lastTransitionTime: '2024-08-07T16:13:51Z'
reason: ReconcileSuccess
status: 'True'
type: Synced
lastReconcileTime: '2024-08-07T16:13:51Z'
requestDetails:
body: >-
username={{ sso-admin-user:infra:username }}&password={{
sso-admin-user:infra:password }}&client_id={{
sso-admin-user:infra:client_id }}&client_secret={{
sso-admin-user:infra:client_secret }}&grant_type={{
sso-admin-user:infra:grant_type }}&scope={{ sso-admin-user:infra:scope }}
headers:
Content-Type:
- application/x-www-form-urlencoded
method: POST
url: http://sso-wso2is.infra.svc.cluster.local:9763/oauth2/token
response:
body: >-
{"access_token":"{{sso-admin-oauth:infra:access_token}}","refresh_token":"{{sso-admin-oauth:infra:refresh_token}}","scope":"openid","id_token":"{{sso-admin-oauth:infra:id_token}}","token_type":"Bearer","expires_in":669}
headers:
Cache-Control:
- no-store
Content-Type:
- application/json
Date:
- Wed, 07 Aug 2024 16:13:50 GMT
Pragma:
- no-cache
Server:
- WSO2 Carbon Server
Vary:
- accept-encoding
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
X-Xss-Protection:
- 1; mode=block
statusCode: 200
synced: true |
Hi @hayone1, Thank you for the update. I noticed that you have the Let me know if this helps! |
Apologies for the late response, I was away from this space for a while. Yes it does seem to work just fine after removing rollbackRetriesLimit. |
What happened?
After setting the following fields:
shouldLoopInfinitely: true
,nextReconcile: 300s
field, It's expected that the HTTP API endpoint is called in that interval repeatedly but it isn't'How can we reproduce it?
It's a wso2 API, but It should be reproducible with any API.
This is a sample to the disposable request created.
What environment did it happen in?
Crossplane version: 1.16.0
Additional details
kubectl version
): k8s v1.24.16uname -a
): 5.4.17-2136.332.5.2.el8uek.x86_64The text was updated successfully, but these errors were encountered: