-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
|
@@ -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)) |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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" 😄
There was a problem hiding this comment.
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. 😊
There was a problem hiding this 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.
There was a problem hiding this 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 👍
Convert to Deployment
Update fetch old tags script
image steam
based on deployment instead of DC.Removed the
creationTimestamp
from metadata in formcreationTimestamp:null
in metadata from formio objects as it is not followed in other configs in our application.