-
Notifications
You must be signed in to change notification settings - Fork 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
feat:An ability to override Kibana image URL in DA #345
base: main
Are you sure you want to change the base?
Changes from all commits
e0afd6d
f7020fd
52680ff
c1b72fa
2cafdb4
22e9715
8a33912
3d19ed9
b01dee5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -351,12 +351,18 @@ variable "existing_code_engine_project_id" { | |||
|
||||
variable "enable_kibana_dashboard" { | ||||
type = bool | ||||
description = "Set it true to deploy Kibana in code engine. NOTE: Kibana image is coming direcly from the official registry (https://www.docker.elastic.co/) and not certified by the IBM." | ||||
description = "Set to true to deploy Kibana in Code Engine. NOTE: By default, the Kibana image will be pulled from the official Elastic registry (docker.elastic.co) and is not certified by IBM, however this can be overridden using the `kibana_image_reference` input." | ||||
default = false | ||||
} | ||||
|
||||
variable "elasticsearch_full_version" { | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really am not a fan of this variable name. It should be consistent with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you end it with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can use
Here is a reference which says-
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Ak-sky But kibana don't release image tags with Also its actually a better practise to lock into a digest instead of a tag version (as they may not be static), so we need to support that too. So if we breakdown what an image reference looks like with correct terminology, it looks like this:
With all this in mind, I think we should have 2 variables:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is better and even if the user is going to use private registery, they can replace But from security review aspect we will ask the user to input the registry url as you suggested? then no need to set the default values? |
||||
description = "(Optional) Full version of the Elasticsearch instance in the format `x.x.x` to deploy Kibana dashboard. If no value is passed, data lookup will fetch the full version using the Elasticsearch API, see https://github.com/elastic/kibana?tab=readme-ov-file#version-compatibility-with-elasticsearch" | ||||
description = "Full version of the Elasticsearch instance in the format `x.x.x` to deploy Kibana dashboard. Value is only used if `enable_kibana_dashboard` is true and if no value is passed for `kibana_image_reference`. If no value is passed, data lookup will fetch the full version using the Elasticsearch API, see https://github.com/elastic/kibana?tab=readme-ov-file#version-compatibility-with-elasticsearch" | ||||
type = string | ||||
default = null | ||||
} | ||||
|
||||
aatreyee2506 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
variable "kibana_image_reference" { | ||||
description = "The docker image reference to use for Kibana if `enable_kibana_dashboard` is set to true. If no value is set, it will pull the image from the official Elastic registry (https://www.docker.elastic.co). Ensure to use a version that is compatible with the Elasticsearch version being used." | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how about we give this a default value of |
||||
type = string | ||||
default = null | ||||
} | ||||
|
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 actually added these in my PR which just got merged. You should rebase your branch with main and you will only need to add
kibana_image_reference
here