Skip to content
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

Use Ingress v1 from Kubernetes v1.19 in helm chart #4244

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Conversation

jlandowner
Copy link
Contributor

Hi. I found you use old version of Ingress in helm chart.
Ingress became GA in Kubernetes v1.19.

Output after v1.19

# Source: code-server/templates/ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: code-server
  labels:
    helm.sh/chart: code-server-1.0.3
    app.kubernetes.io/name: code-server
    app.kubernetes.io/instance: code-server
    app.kubernetes.io/version: "3.12.0"
    app.kubernetes.io/managed-by: Helm
spec:
  rules:
    - host: "code-server.example.loc"
      http:
        paths:
          - path: /
            backend:
              service:
                name: code-server
                port: 
                  number: 8080

@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 27, 2021

cc @kylecarbs @bpmct @jawnsy since I'm less familiar with this part of code-server

@jsjoeio jsjoeio added the enhancement Some improvement that isn't a feature label Sep 27, 2021
@jsjoeio jsjoeio self-assigned this Sep 27, 2021
@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #4244 (5a36627) into main (c11d51e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4244   +/-   ##
=======================================
  Coverage   65.09%   65.09%           
=======================================
  Files          36       36           
  Lines        1882     1882           
  Branches      380      380           
=======================================
  Hits         1225     1225           
  Misses        559      559           
  Partials       98       98           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c11d51e...5a36627. Read the comment docs.

@bpmct
Copy link
Member

bpmct commented Sep 27, 2021

This seems fine but am going to test with a cluster :)

Will add instructions here on how to spin up a cluster and try the helm chart :)

@bpmct bpmct self-requested a review September 27, 2021 19:20
@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 27, 2021

Will add instructions here on how to spin up a cluster and try the helm chart :)

You rock! Thank you so much!

@bpmct
Copy link
Member

bpmct commented Sep 27, 2021

Actually, our existing helm docs have lovely instructions on using the helm chart. Docker Desktop's built-in Kubernetes cluster or k3d is a good way to create a new local cluster.

I created a custom values.yaml to use Ingress:

ingress:
  enabled: true
  annotations:
   kubernetes.io/ingress.class: nginx
  hosts:
   - host: 127.0.0.1.nip.io
     paths:
        - /
# if you haven't already, add ingress to cluster (https://kubernetes.github.io/ingress-nginx/deploy/)

git clone https://github.com/jlandowner/code-server
cd code-server
helm upgrade --install code-server ci/helm-chart --values values.yaml

# worked without deprecation notices! 

# clean up
helm uninstall code-server
# if test cluster, delete/reset

Just approved but will defer to @Matthew-Beckett since they maintain the chart :)

@Matthew-Beckett
Copy link
Contributor

@bpmct thanks Ben, will take a look!

Copy link
Contributor

@Matthew-Beckett Matthew-Beckett left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for your contribution ❤️

@bpmct
Copy link
Member

bpmct commented Sep 27, 2021

@jsjoeio are we able to use CODEOWNERS or something so we can assign helm PRs to Matthew?

@bpmct bpmct merged commit 4c6e43d into coder:main Sep 27, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 27, 2021

@jsjoeio are we able to use CODEOWNERS or something so we can assign helm PRs to Matthew?

Great idea! Yes, I'll do that now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants