-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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:Update kubeblocks version to 0.9 #2860
Conversation
WalkthroughThe recent updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Helm
participant Kubernetes
User->>Helm: Deploy Pika Component
Helm->>Kubernetes: Apply configurations
Kubernetes->>Kubernetes: Create resources based on templates
Kubernetes-->>User: Resources ready
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 25
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (22)
- tools/kubeblocks_helm/README.md (1 hunks)
- tools/kubeblocks_helm/pika-cluster/Chart.yaml (1 hunks)
- tools/kubeblocks_helm/pika-cluster/templates/cluster.yaml (11 hunks)
- tools/kubeblocks_helm/pika/.helmignore (1 hunks)
- tools/kubeblocks_helm/pika/Chart.yaml (1 hunks)
- tools/kubeblocks_helm/pika/script/admin.sh (2 hunks)
- tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-codis-dashboard.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-codis-fe.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-pika-exporter.yaml (5 hunks)
- tools/kubeblocks_helm/pika/templates/componentdefinition-pika-group.yaml (4 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-codis-dashboard.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-codis-fe.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-codis-proxy.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-pika-etcd.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-pika-exporter.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/componentversion-pika-group.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/configmap.yaml (1 hunks)
- tools/kubeblocks_helm/pika/templates/script.yaml (1 hunks)
- tools/kubeblocks_helm/pika/values.yaml (2 hunks)
Files skipped from review due to trivial changes (3)
- tools/kubeblocks_helm/README.md
- tools/kubeblocks_helm/pika/.helmignore
- tools/kubeblocks_helm/pika/values.yaml
Additional context used
yamllint
tools/kubeblocks_helm/pika/templates/componentversion-pika-etcd.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentversion-pika-group.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentversion-codis-fe.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentversion-codis-proxy.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentversion-pika-exporter.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentversion-codis-dashboard.yaml
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
[error] 11-11: trailing spaces
(trailing-spaces)
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
tools/kubeblocks_helm/pika/templates/componentdefinition-codis-fe.yaml
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-codis-dashboard.yaml
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-pika-group.yaml
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yaml
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yaml
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
Additional comments not posted (36)
tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml (1)
Line range hint
1-7
:
Consider verifying the new configuration setup.The removal of extensive configurations suggests a shift in strategy. Ensure that the new configuration setup is correctly integrated and documented elsewhere.
Verification successful
New Configuration Setup Verified
The new configuration setup for "pika" is well-integrated across multiple YAML files. These files provide comprehensive configuration details for various components and services, ensuring the setup is properly documented and implemented.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the integration of new configuration setup. # Test: Search for the new configuration files or sections that replaced the removed configurations. rg --type yaml 'pika' --files-with-matchesLength of output: 1638
Script:
#!/bin/bash # Extract and display the contents of the identified YAML files for review. # List of relevant YAML files to check for configuration setup. files=( "tools/pika_keys_analysis/cli/config.yaml" "tools/pika_exporter/grafana/prometheus.yml" "tools/kubeblocks_helm/pika-cluster/Chart.yaml" "tools/kubeblocks_helm/pika-cluster/values.yaml" "tools/kubeblocks_helm/pika/values.yaml" "tools/kubeblocks_helm/pika/Chart.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-pika-group.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-pika-exporter.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-pika-exporter.yaml" "tools/kubeblocks_helm/pika/templates/script.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-pika-etcd.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-codis-proxy.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-codis-fe.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-codis-dashboard.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-codis-fe.yaml" "tools/kubeblocks_helm/pika/templates/componentdefinition-codis-dashboard.yaml" "tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml" "tools/kubeblocks_helm/pika/templates/grafana/configmap-dashboards.yaml" "tools/kubeblocks_helm/pika/templates/configmap.yaml" "tools/kubeblocks_helm/pika/templates/componentversion-pika-group.yaml" ) # Display the contents of each file for review. for file in "${files[@]}"; do echo "Contents of $file:" cat "$file" echo -e "\n\n" doneLength of output: 31105
Tools
yamllint
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/script.yaml (1)
5-5
: Dynamic namespace configuration approved.The addition of
namespace: {{ .Release.Namespace }}
enhances the flexibility of theConfigMap
deployment.tools/kubeblocks_helm/pika-cluster/Chart.yaml (1)
7-7
: Version update approved, verify compatibility.The version update to
0.9.0
indicates significant changes. Ensure compatibility with existing deployments and dependencies.tools/kubeblocks_helm/pika/Chart.yaml (1)
7-7
: Version update approved.The version update from
0.7.1-beta.1
to0.9.0
aligns with the PR's objective to update the kubeblocks version. Ensure that all dependencies and references to this version are updated accordingly in the codebase.tools/kubeblocks_helm/pika/templates/configmap.yaml (1)
5-5
: Dynamic namespace addition approved.The addition of
namespace: {{ .Release.Namespace }}
improves deployment flexibility by ensuring the ConfigMap is associated with the correct namespace during the Helm release process.tools/kubeblocks_helm/pika/templates/componentdefinition-codis-fe.yaml (1)
5-12
: LGTM!The dynamic templating for
namespace
andserviceVersion
enhances flexibility and aligns with best practices.Tools
yamllint
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-pika-exporter.yaml (4)
5-5
: Dynamic namespace assignment looks good.Using
{{ .Release.Namespace }}
improves deployment flexibility.
24-24
: Dynamic namespace configuration approved.This change ensures consistency with the dynamic namespace approach.
38-40
: Dynamic environment variable setup is good.Setting
DASHBOARD_ADDR
dynamically improves initialization flexibility.
56-58
: Environment variable addition approved.The inclusion of
DASHBOARD_ADDR
ensures proper configuration for the main container.tools/kubeblocks_helm/pika/templates/componentdefinition-codis-dashboard.yaml (2)
5-5
: Dynamic namespace assignment looks good.Using
{{ .Release.Namespace }}
enhances deployment flexibility.
12-12
: Service version templating approved.Using
{{ .Chart.AppVersion }}
ensures consistency with the chart's versioning.tools/kubeblocks_helm/pika/templates/componentdefinition-pika-group.yaml (6)
5-5
: Dynamic namespace assignment looks good.Using
{{ .Release.Namespace }}
enhances deployment flexibility.
12-12
: Service version templating approved.Using
{{ .Chart.AppVersion }}
ensures consistency with the chart's versioning.
32-33
: Volume addition looks good.The
data
volume supports persistent storage, enhancing data management.
55-68
: Initialization container setup approved.The
init-config
container ensures configuration readiness, improving reliability.
85-85
: Configuration path update approved.Updating the path to
/data/pika.conf
aligns with the new volume strategy.
7-7
: Verify potential syntax error.A syntax error is reported by yamllint at line 7. Verify the YAML syntax to ensure correctness.
Tools
yamllint
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yaml (3)
5-5
: Dynamic namespace assignment.The
namespace
field now dynamically uses{{ .Release.Namespace }}
. This change enhances deployment flexibility across different namespaces.
12-12
: Dynamic service versioning.The
serviceVersion
field now references{{ .Chart.AppVersion }}
. This change ensures the service version aligns with the chart's application version, improving maintainability.
7-7
: Verify syntax error flagged by static analysis.Static analysis tools have flagged a syntax error on this line. Verify and correct if necessary.
Verification successful
No syntax error found in the Helm template directive.
The line
{{- include "pika.labels" . | nindent 4 }}
is a valid Helm template directive, and no syntax errors were detected using alternative methods. It is likely that the static analysis tool misinterpreted this directive.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify syntax error in line 7 of the YAML file. # Test: Use yamllint to check for syntax errors. Expect: No errors. yamllint tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yamlLength of output: 160
Script:
#!/bin/bash # Using ripgrep to search for common YAML syntax issues or patterns that might indicate an error. rg -n -A 2 ':$' tools/kubeblocks_helm/pika/templates/componentdefinition-codis-proxy.yamlLength of output: 1641
Tools
yamllint
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika/script/admin.sh (2)
84-85
: Revised conditional logic in server registration.The logic now creates a group when
POD_ID
is zero and waits for registration whenPOD_ID
is greater than zero. This change may affect the server registration sequence.
12-12
: Update in group ID derivation.The
GROUP_ID
is now derived fromKB_COMP_NAME
. Ensure that this change aligns with the intended component naming conventions.tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yaml (3)
5-5
: Dynamic namespace assignment.The
namespace
field now dynamically uses{{ .Release.Namespace }}
. This change enhances deployment flexibility across different namespaces.
12-12
: Dynamic service versioning.The
serviceVersion
field now references{{ .Chart.AppVersion }}
. This change ensures the service version aligns with the chart's application version, improving maintainability.
7-7
: Verify syntax error flagged by static analysis.Static analysis tools have flagged a syntax error on this line. Verify and correct if necessary.
Verification successful
No syntax error detected in the specified line.
The syntax for the Helm template functions
include
andnindent
appears correct, and no common YAML syntax issues were found. It is possible that the static analysis tool flagged a false positive. Please verify manually if further issues persist.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify syntax error in line 7 of the YAML file. # Test: Use yamllint to check for syntax errors. Expect: No errors. yamllint tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yamlLength of output: 158
Script:
#!/bin/bash # Description: Check for common YAML syntax issues and Helm template errors in the specified file. # Check for common YAML syntax issues using grep grep -E "^\s*{{-?\s*include\s+\"[^\"]+\"\s+\.\s*\|\s*nindent\s+[0-9]+\s*}}" tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yaml # Check for unclosed brackets or braces grep -E "[\{\[][^}\]]*$" tools/kubeblocks_helm/pika/templates/componentdefinition-pika-etcd.yamlLength of output: 292
Tools
yamllint
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
tools/kubeblocks_helm/pika-cluster/templates/cluster.yaml (10)
23-23
: Logging enhancement approved.The addition of the
enabledLogs
field enhances logging capabilities for the Pika group. Ensure the templating is correct.
24-24
: Service account control approved.The addition of the
serviceAccountName
field allows for more granular control over service account assignments.
53-53
: Component definition standardization approved.Changing
componentDefRef
tocomponentDef
aligns with the new configuration style and standardizes component definitions.
69-69
: Comment clarification approved.The updated comment clarifies the reference to
componentDefinition.containers.volumeMounts.name
.
100-100
: Comment clarification approved.The updated comment clarifies the reference to
componentDefinition.containers.volumeMounts.name
.
110-111
: Component definition standardization approved.Changing
componentDefRef
tocomponentDef
aligns with the new configuration style and standardizes component definitions.
122-123
: Component definition standardization approved.Changing
componentDefRef
tocomponentDef
aligns with the new configuration style and standardizes component definitions.
124-124
: Monitoring control approved.The addition of the
monitor
field allows for enabling or disabling monitoring for thepika-exporter
component.
126-127
: Component definition standardization approved.Changing
componentDefRef
tocomponentDef
aligns with the new configuration style and standardizes component definitions.
Line range hint
158-159
: Component definition standardization approved.Changing
componentDefRef
tocomponentDef
aligns with the new configuration style and standardizes component definitions.
compatibilityRules: | ||
- compDefs: | ||
- pika-etcd | ||
releases: |
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.
Remove trailing spaces.
Remove trailing spaces on line 11 to adhere to YAML formatting standards.
- releases:
+ releases:
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
releases: | |
releases: |
Tools
yamllint
[error] 11-11: trailing spaces
(trailing-spaces)
spec: | ||
compatibilityRules: | ||
- compDefs: | ||
- pika-etcd |
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.
Correct indentation.
The indentation on line 10 is incorrect. Expected indentation is 8 spaces.
- - pika-etcd
+ - pika-etcd
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
- pika-etcd | |
- pika-etcd |
Tools
yamllint
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
changes: | ||
serviceVersion: {{ .Chart.AppVersion }} | ||
images: | ||
codis-dashboard: {{ include "etcd.image" . }} |
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.
Add newline at end of file.
Ensure there is a newline character at the end of the file to adhere to POSIX standards.
- codis-dashboard: {{ include "etcd.image" . }}
+ codis-dashboard: {{ include "etcd.image" . }}
+
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
codis-dashboard: {{ include "etcd.image" . }} | |
codis-dashboard: {{ include "etcd.image" . }} | |
Tools
yamllint
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
metadata: | ||
name: pika-etcd | ||
labels: | ||
{{- include "pika.labels" . | nindent 4 }} |
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.
Fix syntax error.
There is a syntax error on line 6. Ensure that the YAML structure is correct. It seems like there is an issue with the template inclusion.
- {{- include "pika.labels" . | nindent 4 }}
+ {{ include "pika.labels" . | nindent 4 }}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
{{- include "pika.labels" . | nindent 4 }} | |
{{ include "pika.labels" . | nindent 4 }} |
Tools
yamllint
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
spec: | ||
compatibilityRules: | ||
- compDefs: | ||
- pika-exporter |
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.
Correct indentation for compDefs
.
The indentation for compDefs
is incorrect. It should be indented to align with the list item.
- - compDefs:
+ - compDefs:
Committable suggestion was skipped due to low confidence.
Tools
yamllint
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
@@ -2,16 +2,16 @@ apiVersion: apps.kubeblocks.io/v1alpha1 | |||
kind: ComponentDefinition | |||
metadata: | |||
name: pika-codis-fe | |||
namespace: {{ .Release.Namespace }} | |||
labels: | |||
{{- include "pika.labels" . | nindent 4 }} |
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.
Fix YAML syntax error.
The use of -
in the labels
section is causing a syntax error. Ensure that the indentation and syntax are correct.
- {{- include "pika.labels" . | nindent 4 }}
+ {{ include "pika.labels" . | nindent 4 }}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
{{- include "pika.labels" . | nindent 4 }} | |
{{ include "pika.labels" . | nindent 4 }} |
Tools
yamllint
[error] 7-7: syntax error: expected the node content, but found '-'
(syntax)
compatibilityRules: | ||
- compDefs: | ||
- pika-codis-proxy | ||
releases: |
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.
Remove trailing spaces.
Line 11 contains trailing spaces that should be removed.
- releases:
+ releases:
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
releases: | |
releases: |
Tools
yamllint
[error] 11-11: trailing spaces
(trailing-spaces)
spec: | ||
compatibilityRules: | ||
- compDefs: | ||
- pika-codis-proxy |
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.
Correct indentation level.
The indentation on line 10 is incorrect. It should be indented to match the level of its parent node.
- - pika-codis-proxy
+ - pika-codis-proxy
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
- pika-codis-proxy | |
- pika-codis-proxy |
Tools
yamllint
[warning] 10-10: wrong indentation: expected 8 but found 6
(indentation)
changes: | ||
serviceVersion: {{ .Chart.AppVersion }} | ||
images: | ||
codis-dashboard: {{ include "codis.image" . }} |
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.
Add newline at end of file.
Ensure the file ends with a newline character to comply with YAML standards.
- codis-dashboard: {{ include "codis.image" . }}
+ codis-dashboard: {{ include "codis.image" . }}
+
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
codis-dashboard: {{ include "codis.image" . }} | |
codis-dashboard: {{ include "codis.image" . }} | |
Tools
yamllint
[error] 18-18: no new line character at the end of file
(new-line-at-end-of-file)
metadata: | ||
name: pika-codis-proxy | ||
labels: | ||
{{- include "pika.labels" . | nindent 4 }} |
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.
Fix YAML syntax error.
The use of {{-
at the beginning of the line is incorrect in this context. Remove the dash to fix the syntax error.
- {{- include "pika.labels" . | nindent 4 }}
+ {{ include "pika.labels" . | nindent 4 }}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
{{- include "pika.labels" . | nindent 4 }} | |
{{ include "pika.labels" . | nindent 4 }} |
Tools
yamllint
[error] 6-6: syntax error: expected the node content, but found '-'
(syntax)
Change log
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores