Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

feat: scripts/image_list: support VALUES override #1290

Merged
merged 2 commits into from
Sep 4, 2020

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Sep 3, 2020

Description

This adds support for the VALUES override when building the image list. This is helpful when testing local changes to be able to customize the list of images that will be needed (so they can be traferred to the kubernetes cluster). This should not be used in CI builds.

Note that most of the changes are to make rubocop happy.

Motivation and Context

While working on #284 I needed to set an override for the image for a new thing that we are not publishing yet (to use my WIP image). That means I need to provide overrides, but that wasn't possible with the way we were doing the image list.

How Has This Been Tested?

Ran locally, and loaded all the resulting images into minikube.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code has security implications.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

This fixes all rubocop warnings (excluding Metrics/*).  No functional
change.
This adds support for the VALUES override when building the image list.
This is helpful when testing local changes to be able to customize the
list of images that will be needed (so they can be traferred to the
kubernetes cluster).  This should not be used in CI builds.
@mook-as mook-as added the pr-test-queue PRs with this label get tested label Sep 3, 2020
@github-actions github-actions bot removed the pr-test-queue PRs with this label get tested label Sep 3, 2020
@@ -53,23 +67,20 @@ def deep_populate_nil_values(hash)
}

# Process the non-BOSH releases.
values['releases'].keys.each do |release_name|
values.releases.keys.each do |release_name|
# Filter out the 'defaults' key as it's not a release.
next if release_name == 'defaults'
Copy link
Member

Choose a reason for hiding this comment

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

This should be $defaults now, for correctness. In practice it doesn't matter because the default entry will not have an image key, so will be skipped in the next condition.

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

LGTM; the defaultsdefault rename is technically outside the scope of this PR.

@cfcontainerizationbot cfcontainerizationbot added the pr-test-queue PRs with this label get tested label Sep 3, 2020
@github-actions github-actions bot removed the pr-test-queue PRs with this label get tested label Sep 3, 2020
@mook-as mook-as merged commit 4441684 into master Sep 4, 2020
@mook-as mook-as deleted the marky/image-list-values branch September 4, 2020 00:41
mook-as added a commit that referenced this pull request Sep 4, 2020
The default release name (since the stacks change) is now $defaults
rather than defaults.

Addresses
#1290 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants