trust-manager icon indicating copy to clipboard operation
trust-manager copied to clipboard

WIP: Bundles with a sidecar container

Open SgtCoDFish opened this issue 3 years ago • 3 comments

WIP: This is a proof of concept and is not ready for prime-time. In any case it's blocked behind #47

This is an proof-of-concept demo of the design in #43 and an alternative implementation of #36 which had been discussed in a biweekly meeting.

There's a bunch of stuff here which is obviously just for the demo; this is intended as a POC. Importantly the rootcerts dependency should be in its own go.mod - it's in the main go.mod here to make it easier to develop with pkg/sidecar

(The first two commits might want to be separated into their own PR, but they were helpful as part of making this PR)

Example file which uses the bundle:

apiVersion: trust.cert-manager.io/v1alpha1
kind: Bundle
metadata:
  name: trust-bundle
  namespace: default
spec:
  sources:
  - packagedBundle: "cert-manager"
  target:
    configMap:
      key: trust.pem

SgtCoDFish avatar Aug 02 '22 16:08 SgtCoDFish

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

jetstack-bot avatar Aug 02 '22 16:08 jetstack-bot

(tests are broken by this but that doesn't really matter because I've not written any new ones! obviously an actual implementation would be more careful and would include a bunch of new tests)

SgtCoDFish avatar Aug 02 '22 17:08 SgtCoDFish

@SgtCoDFish: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cert-manager-trust-verify fb23c724a9b92fb42a986ba71973db66fe7995f4 link true /test pull-cert-manager-trust-verify
pull-cert-manager-trust-smoke fb23c724a9b92fb42a986ba71973db66fe7995f4 link true /test pull-cert-manager-trust-smoke

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

jetstack-bot avatar Aug 03 '22 16:08 jetstack-bot

@SgtCoDFish: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

jetstack-bot avatar Nov 02 '22 02:11 jetstack-bot

Tasks:

  • [x] rename field in CRD to reflect above discussion
  • [x] nit

Tests will fail until I sort out the automation again for pushing package images, which was blocked behind the now-merged #80

SgtCoDFish avatar Dec 19 '22 19:12 SgtCoDFish

/test pull-trust-manager-smoke

SgtCoDFish avatar Jan 04 '23 16:01 SgtCoDFish

/retest

inteon avatar Jan 05 '23 09:01 inteon

/test pull-trust-manager-verify

SgtCoDFish avatar Jan 05 '23 10:01 SgtCoDFish

/test pull-trust-manager-smoke

SgtCoDFish avatar Jan 05 '23 14:01 SgtCoDFish

After discussing with @inteon this morning, we agreed to remove the Type field from fspkg, which I'll do now

SgtCoDFish avatar Jan 06 '23 14:01 SgtCoDFish

@SgtCoDFish Thank you for the change, this small new feature will bring a lot of value to our trust-manager users. It is a very minimal solution that should cover most use cases. /lgtm /approve

inteon avatar Jan 06 '23 16:01 inteon

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon, SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

jetstack-bot avatar Jan 06 '23 16:01 jetstack-bot

Thank you so much @inteon and others for the reviews!

NB: We shouldn't release a new version of trust-manager until I've made a few more changes. I want to ensure that trust-package containers we release are tested more carefully, and I want to remove the type field from https://quay.io/repository/jetstack/cert-manager-package-debian?tab=tags&tag=latest before anyone starts using it!

SgtCoDFish avatar Jan 06 '23 16:01 SgtCoDFish