You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "vladwa (via GitHub)" <gi...@apache.org> on 2025/01/25 04:20:16 UTC

[PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

vladwa opened a new pull request, #153:
URL: https://github.com/apache/spark-kubernetes-operator/pull/153

   The image tag 0.1.0-SNAPSHOT does not exist in the apache/spark-kubernetes-operator repository, causing the spark-kubernetes-operator to enter a CrashLoopBackOff state.
   
   
   ### What changes were proposed in this pull request?
   Pod was resulting in :
   bash-3.2$ kubectl get pods
   NAME                                         READY   STATUS             RESTARTS         AGE
   spark-kubernetes-operator-778b9bbdc6-ft75q   0/1     CrashLoopBackOff   13 (4m40s ago)   38m
   -->
   
   
   ### Why are the changes needed?
   The changes are needed because the current image tag 0.1.0-SNAPSHOT doesn't exist in the apache/spark-kubernetes-operator repository. This missing image tag is causing the spark-kubernetes-operator to keep crashing and restarting, which prevents it from working properly. By updating the image tag to a valid version that actually exists, we can fix this issue and make sure the operator runs smoothly.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   This was tested by updating the image tag in the spark-kubernetes-operator deployment. After that pod went to running state. 
   bash-3.2$ kubectl get pods
   NAME                                         READY   STATUS    RESTARTS         AGE
   spark-kubernetes-operator-778b9bbdc6-ft75q   1/1     Running   0 (7m34s ago)   40m
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #153:
URL: https://github.com/apache/spark-kubernetes-operator/pull/153#issuecomment-2614850032

   > I am not sure, I am submitting this PR for the error I encountered while install operator by executing below command. `helm install spark-kubernetes-operator --create-namespace -f build-tools/helm/spark-kubernetes-operator/values.yaml build-tools/helm/spark-kubernetes-operator/`
   
   Did you follow the full instructions in `README.md`? Probably,  the first 3 commands for local testing are missed. Could you confirm that?
   ```
   $ ./gradlew build -x test
   $ ./gradlew buildDockerImage
   $ ./gradlew spark-operator-api:relocateGeneratedCRD
   $ helm install spark-kubernetes-operator --create-namespace -f build-tools/helm/spark-kubernetes-operator/values.yaml build-tools/helm/spark-kubernetes-operator/
   ```
   
   > 
   > It seems that the commands at
   > 
   > https://github.com/apache/spark-kubernetes-operator/blob/020199409402c67fddda6f89962e0dc215193d41/.github/workflows/publish_snapshot_chart.yml#L41-L42
   > 
   > were not executed, as I don't see the updates in https://github.com/apache/spark-kubernetes-operator/blob/main/build-tools/helm/spark-kubernetes-operator/values.yaml#L17-L19
   
   FYI, `publish_snapshot_chart.yml` is our `GitHub Action` script for nightly run in the following. It's irrelevant from a local testing.
   - https://github.com/apache/spark-kubernetes-operator/actions/workflows/publish_snapshot_chart.yml
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #153: Update the image tag to main-snapshot
URL: https://github.com/apache/spark-kubernetes-operator/pull/153


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #153:
URL: https://github.com/apache/spark-kubernetes-operator/pull/153#discussion_r1929988244


##########
build-tools/helm/spark-kubernetes-operator/values.yaml:
##########
@@ -14,9 +14,9 @@
 # limitations under the License.
 
 image:
-  repository: spark-kubernetes-operator
+  repository: apache/spark-kubernetes-operator

Review Comment:
   BTW, if you follow the full instructions, the following image exists in your local docker system like the following.
   ```
   $ docker images
   REPOSITORY                  TAG               IMAGE ID       CREATED         SIZE
   spark-kubernetes-operator   0.1.0-SNAPSHOT    05633213ce49   5 seconds ago   573MB
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #153:
URL: https://github.com/apache/spark-kubernetes-operator/pull/153#issuecomment-2614907398

   Let me close this since I verified it works correctly. We can continue the discussion and reopen this if you still have any issues. Anyway, thank you again, @vladwa .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Update the image tag to main-snapshot [spark-kubernetes-operator]

Posted by "vladwa (via GitHub)" <gi...@apache.org>.
vladwa commented on PR #153:
URL: https://github.com/apache/spark-kubernetes-operator/pull/153#issuecomment-2614781067

   @dongjoon-hyun 
   
   > `However, the AS-IS values are correct for the local Gradle build environment, aren't they?`
   I am not sure, I am submitting this PR for the error I encountered while install operator by executing below command. 
   `helm install spark-kubernetes-operator --create-namespace -f build-tools/helm/spark-kubernetes-operator/values.yaml build-tools/helm/spark-kubernetes-operator/`
   
   However if you think I am doing anything incorrectly, kindly let me know. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org