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

Add Helm subchart for test app w/ Secrets Provider in standalone mode #373

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

diverdane
Copy link
Contributor

@diverdane diverdane commented Aug 12, 2021

What does this PR do?

This change adds a Helm subchart to the conjur-app-deploy main Helm chart that can be used to deploy:

  • A sample "Pet Store" application that uses a Kubernetes Secret to configure its backend database credentials
  • A "standalone" Secrets Provider Job that, upon startup, updates the Kubernetes Secret that is used by the "Pet Store" application with backend database credentials that the Secrets Provider has retrieved from Conjur.

The deployment of the "standalone" Secrets Provider is done by using the Secrets Provider Helm chart as a Helm chart dependency of the app-secrets-provider-standalone subchart.

This change also includes Helm unittest test cases and Helm schema validation tests for the new subchart.

NOTE: Adding this Helm subchart to the E2E workflow scripts will be done with PR #380.

What ticket does this PR close?

Resolves #273

Checklists

Change log

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR, and/or there is a follow-on issue to update docs, or
  • This PR does not require updating any documentation

Manual tests

If you are preparing for a release, have you run the following manual tests to verify existing functionality continues to function as expected?

@diverdane diverdane requested review from a team as code owners August 12, 2021 16:49
@diverdane diverdane self-assigned this Aug 12, 2021
@diverdane diverdane force-pushed the add-sp-standalone-helm branch 4 times, most recently from 4fa651a to c42aa87 Compare August 16, 2021 15:25
diverdane pushed a commit that referenced this pull request Aug 16, 2021
This change adds the deployment of an application that uses the Secrets
Provider in standalone mode to the E2E application deployment scripts.

This change depends upon PR #373 merging, since PR #373 adds a Helm
subchart for an application that uses Secrets Provider in standalone
mode. There is one line in the `start` script that will need to be
changed after PR #373 has merged in order to enable deployment of
this application.

Addresses Issue #292
@diverdane diverdane force-pushed the add-sp-standalone-helm branch from c42aa87 to 5d9083f Compare August 16, 2021 19:07
Copy link
Contributor

@john-odonnell john-odonnell left a comment

Choose a reason for hiding this comment

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

LGTM! One small bit I caught

@@ -0,0 +1,67 @@
suite: test test_app_secrets_provider_init
Copy link
Contributor

Choose a reason for hiding this comment

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

suite here points to test_app_secrets_provider_init - assume we'd like test_app_secrets_provider_standalone

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks! Will fix.

@diverdane diverdane force-pushed the add-sp-standalone-helm branch from 5d9083f to fcaa935 Compare August 16, 2021 19:57
Copy link
Contributor

@john-odonnell john-odonnell 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! 👍

@diverdane diverdane merged commit ccb993e into master Aug 16, 2021
@diverdane diverdane deleted the add-sp-standalone-helm branch August 16, 2021 21:06
diverdane pushed a commit that referenced this pull request Aug 16, 2021
This change adds the deployment of an application that uses the Secrets
Provider in standalone mode to the E2E application deployment scripts.

This change depends upon PR #373 merging, since PR #373 adds a Helm
subchart for an application that uses Secrets Provider in standalone
mode. There is one line in the `start` script that will need to be
changed after PR #373 has merged in order to enable deployment of
this application.

Addresses Issue #292
diverdane pushed a commit that referenced this pull request Aug 17, 2021
This change adds the deployment of an application that uses the Secrets
Provider in standalone mode to the E2E application deployment scripts.

This change depends upon PR #373 merging, since PR #373 adds a Helm
subchart for an application that uses Secrets Provider in standalone
mode. There is one line in the `start` script that will need to be
changed after PR #373 has merged in order to enable deployment of
this application.

Addresses Issue #292
diverdane pushed a commit that referenced this pull request Aug 17, 2021
This change adds the deployment of an application that uses the Secrets
Provider in standalone mode to the E2E application deployment scripts.

This change depends upon PR #373 merging, since PR #373 adds a Helm
subchart for an application that uses Secrets Provider in standalone
mode. There is one line in the `start` script that will need to be
changed after PR #373 has merged in order to enable deployment of
this application.

Addresses Issue #292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The app deploy Helm chart supports deployment of app + Secrets Provider standalone container
2 participants