Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

allow disabling of Google Container Registry credential checks #43

Merged
merged 4 commits into from
Jul 10, 2017

Conversation

mattnworb
Copy link
Member

This is a continuation of #35; I added a commit addressing my own feedback to be able to merge and release this quicker.

}
} catch (IOException ex) {
getLog().info("ignoring exception while loading Google credentials", ex);
if (googleContainerRegistryEnabled){
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing space in front of { ;)

getLog().info("ignoring exception while loading Google credentials", ex);
}
} else {
getLog().info("Google Container Registry support is disabled");
Copy link
Contributor

Choose a reason for hiding this comment

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

.debug()?

Copy link
Member Author

Choose a reason for hiding this comment

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

there is an info line already in googleContainerRegistryAuthSupplier when credentials are successfully loaded, so i wanted to have some parity

* can be explicitly disabled with this property if needed.
*/
@Parameter(defaultValue = "true", property = "dockerfile.googleContainerRegistryEnabled")
private boolean googleContainerRegistryEnabled = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to have both defaultValue = ... and assign a default value

suppliers.add(0, googleSupplier);
}
} catch (IOException ex) {
getLog().info("ignoring exception while loading Google credentials", ex);
Copy link
Contributor

Choose a reason for hiding this comment

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

Uppercase i in ignoring

@mattnworb mattnworb merged commit 8913a2b into master Jul 10, 2017
@mattnworb mattnworb deleted the mattbrown/disable-gcr branch July 10, 2017 15:14
@mattnworb
Copy link
Member Author

I released version 1.3.3 of the plugin a few minutes ago with this change in it.

kilianpg added a commit to Arquisoft/Agents_e3b that referenced this pull request Apr 15, 2018
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