Skip to content

Conversation

@wallrj
Copy link
Member

@wallrj wallrj commented Feb 10, 2021

Deploy the preflight agent alongside cert-manager and google-cas-issuer

Fixes: #8

@wallrj wallrj force-pushed the deploy-preflight-agent branch from 75f0022 to e23d444 Compare February 10, 2021 16:02
@wallrj wallrj requested a review from maelvls February 10, 2021 16:25
@wallrj
Copy link
Member Author

wallrj commented Feb 10, 2021

The cloudbuild succeeds but with the following expected errors reported:

...
Step #21 - "verify": === ERROR SUMMARY ===                
Step #21 - "verify":                                      
Step #21 - "verify": Error events found in namespace "apptest-3evkl6gk"                                              
Step #21 - "verify": LAST SEEN   TYPE      REASON        OBJECT                                            MESSAGE   
Step #21 - "verify": 35s         Warning   FailedMount   pod/apptest-3evkl6gk-preflight-68ffdc7886-ftqxd   MountVolume.SetUp failed for volume "credentials" : secret "agent-credentials" not found
Step #21 - "verify": 35s         Warning   FailedMount   pod/apptest-3evkl6gk-preflight-68ffdc7886-ftqxd   MountVolume.SetUp failed for volume "config" : configmap "agent-config" not found
Step #21 - "verify": =====================                
Step #21 - "verify":                                      
Step #21 - "verify": === VERIFICATION STATUS ===          
Step #21 - "verify": PASSED                               
Step #21 - "verify": ===========================          
Finished Step #21 - "verify"                              
Starting Step #22 - "publish" 
...

I'm surprised that verify succeeds, but perhaps that's going to get better with @maelvls 's smoke tests #5

@maelvls
Copy link
Member

maelvls commented Feb 10, 2021

Might be worth adding a line in the readme that explains why we went with the single-tag-approach, e.g,

This application re-tags the various images (cert-manager, cas-issuer, ubbagent, preflight-agent) using
a unified tag that we call "application version". Although it does not appear to be a requirement for
releasing to the Google Marketplace, we were not able to set "default" tags for each image and thus
resolved to just having a unified tag; this means that we will have to keep this difference in tags when
supporting [jetstack-secure-for-cert-manager][].

[jetstack-secure-for-cert-manager]: https://console.cloud.google.com/partner/editor/jetstack-public/jetstack-secure-for-cert-manager?project=jetstack-public

Comment on lines +13 to +21
- name: preflight
version: 0.1.0
appVersion: 0.1.27
repository: ./charts/preflight
Copy link
Member

@maelvls maelvls Feb 10, 2021

Choose a reason for hiding this comment

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

Might be worth adding a note at the top of Chart.yaml that says smth like

# The appVersion below are overridden by the `publishedVersion` that is set in
# `schema.yaml`. Changing the below version will not change the actual versions
# being pulled when the application is deployed from the Google Marketplace.
# Instead, you should update the image tags that are being re-tagged in
# `cloudbuild.yml`

@maelvls
Copy link
Member

maelvls commented Feb 10, 2021

Excellent!! Two tiny nits about documentation (see above) @wallrj

@maelvls maelvls added this to the initial-release milestone Feb 11, 2021
@wallrj wallrj force-pushed the deploy-preflight-agent branch from a092ba8 to bd1a738 Compare February 11, 2021 18:13
@wallrj
Copy link
Member Author

wallrj commented Feb 11, 2021

Hey @maelvls I added those explanatory comments and rebased.

gcloud build succeeds...FWIW

gcloud builds submit --timeout 1800s --config cloudbuild.yaml   --substitutions _CLUSTER_NAME=$GKE_CLUSTER_NAME,_CLUSTER_LOCATION=$GKE_CLUSTER_LOCATION
...
...
DONE
---------------------------------------------------------------------------------------------------------------------

ID                                    CREATE_TIME                DURATION  SOURCE                                                                                          IMAGES                                                                        STATUS
6d1afa28-f1e9-434d-88a0-0c8d741e755b  2021-02-11T18:14:15+00:00  10M27S    gs://jetstack-richard_cloudbuild/source/1613067253.982771-1dffe925ac54495c9c14739d16c3a8ff.tgz  gcr.io/jetstack-richard/cert-manager/cert-manager-controller:1.0.0 (+6 more)  SUCCESS

PTAL

@wallrj wallrj requested a review from maelvls February 11, 2021 18:28
@wallrj
Copy link
Member Author

wallrj commented Feb 11, 2021

/assign @maelvls

@maelvls
Copy link
Member

maelvls commented Feb 11, 2021

/lgtm

@jetstack-bot jetstack-bot merged commit 7e150d8 into main Feb 11, 2021
@wallrj wallrj deleted the deploy-preflight-agent branch February 11, 2021 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the preflight agent to the Helm chart

4 participants