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

Itamaecheck #725

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Itamaecheck #725

wants to merge 4 commits into from

Conversation

davidsiaw
Copy link
Contributor

@davidsiaw davidsiaw commented May 24, 2022

Fail gracefully when the itamae plugin is installed but without a Recipe URL.

Without this, deploys start failing and all sorts of bad things happen.

@degicat degicat requested a review from essa June 1, 2022 08:40
@degicat
Copy link

degicat commented Jun 1, 2022

@essa can you help us review this PR, please?

Copy link
Contributor

@essa essa left a comment

Choose a reason for hiding this comment

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

on_network_stack_template is for bastion, you need same update here for container instances.

def on_container_instance_user_data(_instance, user_data)

def on_container_instance_user_data(_instance, user_data)
        return user_data unless attributes['recipe_url'] =~ URI::regexp

        install_itamae(user_data)
        apply_itamae_recipe(user_data, attributes['recipe_url'], 'barcelona_container')
        user_data
      end

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.

3 participants