crossplane-contrib / provider-upjet-aws

Official AWS Provider for Crossplane by Upbound.
https://marketplace.upbound.io/providers/upbound/provider-aws
Apache License 2.0
143 stars 120 forks source link

[Bug]: How do I force redeployment of my ApiGateway #1100

Closed cci-nithin closed 1 month ago

cci-nithin commented 8 months ago

Is there an existing issue for this?

Affected Resource(s)

apigateway.aws.upbound.io

Resource MRs required to reproduce the bug

No response

Steps to Reproduce

Using.GitHub as our source of truth and ArgoCD to deploy Upbound manifest.

apiVersion: apigateway.aws.upbound.io/v1beta1 kind: RestAPI metadata: labels: apigateway.upbound.io/ext-name: exampleapi name: exampleapi spec: forProvider: description: This is my Example API for demonstration purposes name: exampleapi region: eu-west-1


apiVersion: apigateway.aws.upbound.io/v1beta1 kind: Resource metadata: labels: apigateway.upbound.io/ext-name: exampleapi name: exampleresource spec: forProvider: parentIdSelector: matchLabels: apigateway.upbound.io/ext-name: exampleapi pathPart: api region: eu-west-1 restApiIdSelector: matchLabels: apigateway.upbound.io/ext-name: exampleapi


apiVersion: apigateway.aws.upbound.io/v1beta1 kind: Deployment metadata: labels: apigateway.upbound.io/ext-name: exampleapi name: stage spec: forProvider: region: eu-west-1 restApiIdSelector: matchLabels: apigateway.upbound.io/ext-name: exampleapi


apiVersion: apigateway.aws.upbound.io/v1beta1 kind: Stage metadata: labels: apigateway.upbound.io/ext-name: exampleapi name: exampleapi spec: forProvider: deploymentIdSelector: matchLabels: apigateway.upbound.io/ext-name: exampleapi region: eu-west-1 restApiIdSelector: matchLabels: apigateway.upbound.io/ext-name: exampleapi stageName: testing

What happened?

Hi Team,

Created ApiGateway with Resources, Methods and deployed the stack which works great. However, if I update my stack (with a change in the Method or Resource), the API does not get deployed again. If I manually deploy the stack ArgoCD is reverting back to previous version.

Anyone now how I can automatically deploy the gateway when the stack is updated?

Relevant Error Output Snippet

No response

Crossplane Version

1.12.3-up.1

Provider Version

v0.38.0

Kubernetes Version

1.26

Kubernetes Distribution

EKS

Additional Info

No response

turkenf commented 8 months ago

Hi @cci-nithin,

From the information you provided, I cannot understand the exact situation you want or the error you are getting. First, try it in the latest provider version and if the situation is still valid, could you please share the clear replication steps and error message or expected situation with us?

cci-nithin commented 8 months ago

Hi @turkenf

We set up an API Gateway (RestAPI) using Argocd and the Upbound provider, configuring resources and methods. Following that, we defined a stage and deployed it using the Upbound manifest. In order to introduce new methods, it is required to redeploy the API Gateway (RestAPI). However, when attempting to redeploy the existing Upbound deployment manifest, a message indicates that it is already synchronized.

Is there a specific trigger or method to redeploy the existing manifest with a new version?

github-actions[bot] commented 1 month ago

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] commented 1 month ago

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!