-
Notifications
You must be signed in to change notification settings - Fork 0
Downloading sealights agent from 'customAgentUrl' #1
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
base: main
Are you sure you want to change the base?
Conversation
49812b4 to
557d2aa
Compare
| build_session_id: | ||
| lab_id: | ||
| proxy: | ||
| auto_upgrade: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it break backward compatibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had defined 'auto_upgrade' parameter, but in buildpack code we checked if 'enable_upgrade' is set in app configuration. I removed 'auto_upgrade' parameter and added definition for 'enable_upgrade'.
It can affect present configurations in two ways:
- if it happened that customer has configured 'enable_upgrade': true in app configuration then this parameter will start working now
- if customer has configured 'auto_upgrade' in app configuration then he will start to see warning [ConfigurationUtils] WARN User config value for 'auto_upgrade' is not valid, existing property not present. The actual value of this parameter was ignored by our code anyway.
| download('custom', custom_download_uri, name) do |file| | ||
| with_timing "Expanding #{name} to #{target_directory.relative_path_from(@droplet.root)}" do | ||
| FileUtils.mkdir_p target_directory | ||
| shell "unzip -qq #{file.path} -d #{target_directory} 2>&1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there unzip command available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just used the fragment of code from download_zip from base_component.rb (I could not call it because this function was overwritten in versioned_dependency_component.rb)
557d2aa to
9fb55a7
Compare
d1dfd9d to
8c1d937
Compare
gregoryfuta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand the Ruby syntax corectly... :D
4a3692d to
3457554
Compare
Added support for the new parameter both from app configuration and sealights user-provided service
Searching for jar which name starts with 'sl-test-listener' in zip downloaded from customAgentUrl
Overwrite sl.enableUpgrade to false when agent is downloaded from customAgentUrl
'enable_upgrade' parameter name fix in config yml file ('auto_upgrade' was not used in sealights framework)
Modified adding system property sl.tag to contain buildpack version
3457554 to
1a3aa19
Compare
Added support for the new parameter both from app configuration and sealights user-provided service
Searching for jar which name starts with 'sl-test-listener' in zip downloaded from customAgentUrl
Overwrite sl.enableUpgrade to false when agent is downloaded from customAgentUrl
'enable_upgrade' parameter name fix in config yml file ('auto_upgrade' was not used in sealights framework)