Skip to content
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

#3685 - Convert FormIO to deployment and update fetch old tags script #4256

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

dheepak-aot
Copy link
Collaborator

@dheepak-aot dheepak-aot commented Jan 16, 2025

Convert to Deployment

  • Convert FormIO DC to deployment

Update fetch old tags script

  • Updated fetch old tags script to get the deployed version of image steam based on deployment instead of DC.
    image

Removed the creationTimestamp from metadata in form

  • Removed creationTimestamp:null in metadata from formio objects as it is not followed in other configs in our application.

@dheepak-aot dheepak-aot self-assigned this Jan 16, 2025
@dheepak-aot dheepak-aot added the Devops Devops label Jan 16, 2025
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.52% ( 3864 / 17158 )
Methods: 10.33% ( 224 / 2169 )
Lines: 25.93% ( 3336 / 12865 )
Branches: 14.31% ( 304 / 2124 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.59% ( 589 / 898 )
Methods: 59.63% ( 65 / 109 )
Lines: 68.72% ( 468 / 681 )
Branches: 51.85% ( 56 / 108 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 86.14% ( 1249 / 1450 )
Methods: 82.42% ( 136 / 165 )
Lines: 88.51% ( 1032 / 1166 )
Branches: 68.07% ( 81 / 119 )

@dheepak-aot dheepak-aot marked this pull request as ready for review January 16, 2025 22:56
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.77% ( 5994 / 8844 )
Methods: 65.57% ( 739 / 1127 )
Lines: 71.63% ( 4696 / 6556 )
Branches: 48.15% ( 559 / 1161 )

@@ -511,7 +511,7 @@ deploy-forms:
-p TLS_KEY=$(TLS_KEY) \
-p TLS_CA_CERTIFICATE=$(TLS_CA_CERTIFICATE) \
| oc -n $(NAMESPACE) apply -f -
$(call rollout_and_wait,dc/$(FORMS_NAME))
$(call rollout_and_wait,deployment/$(FORMS_NAME))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -59,7 +59,8 @@ IS_NAMESPACE="${LICENSE_PLATE}-tools"
DC_NAME="${ENV}-${APP_NAME}"

# Lookup the dc to get the deployed container image tag
DC_IMAGE=$(oc get dc/$DC_NAME -n $DC_NAMESPACE -o json | jq -r '.spec.template.spec.containers[].image')
# TODO: Change the naming convention from DC to deployment if required in future.
DC_IMAGE=$(oc get deployment/$DC_NAME -n $DC_NAMESPACE -o json | jq -r '.spec.template.spec.containers[].image')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a problem: just notice that all the variables start with "DC" 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the reason behind adding the TODO comment. 😊

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, nice catch taking care of the prune scrip also. Looks good 👍

@dheepak-aot dheepak-aot added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit 0e46efe Jan 17, 2025
21 checks passed
@dheepak-aot dheepak-aot deleted the upgrade/#3685-formio-convert-deployment branch January 27, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devops Devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants