Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Ingress trait not creating the hostname : rudr 0.1.0 #519

Open
sowsan opened this issue Jan 21, 2020 · 7 comments
Open

Ingress trait not creating the hostname : rudr 0.1.0 #519

sowsan opened this issue Jan 21, 2020 · 7 comments
Labels
Type: Bug Something isn't working

Comments

@sowsan
Copy link

sowsan commented Jan 21, 2020

rudr version: 0.1.0

helm version:
version.BuildInfo{Version:"v3.0.1", GitCommit:"7c22ef9ce89e0ebeb7125ba2ebf7d421f3e82ffa", GitTreeState:"clean", GoVersion:"go1.13.4"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.12", GitCommit:"524c3a1238422529d62f8e49506df658fa9c8b8c", GitTreeState:"clean", BuildDate:"2019-11-14T05:26:24Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
AKS and GKE

An application installed with a trait for ingress is not creating with the assigned hostname.

Using the Nginx Ingress Controller, everything was working fine till last week.

Tried with both samples listed here : https://github.com/oam-dev/samples

@sowsan sowsan added the Type: Bug Something isn't working label Jan 21, 2020
@resouer
Copy link
Member

resouer commented Jan 22, 2020

/cc @wonderflow @hongchaodeng is this related to the Trait name change recently?

@resouer
Copy link
Member

resouer commented Jan 22, 2020

ref: #516

@hongchaodeng
Copy link
Member

Hi @sowsan

Thanks for reporting the issue. I apologized for the delay in replying.

The sample's traits are outdated. Since #516 , all the traits have been changed to object style mapping.

Here's a comparison:

# old
    traits:
      - name: ingress
        parameterValues:
          - name: hostname
            value: servicetracker.oam.io
          - name: path
            value: / 
          - name: service_port
            value: 8080     
---
# new
      traits:
        - name: ingress
          properties:
            hostname: example.com
            path: /
            servicePort: 9999

Would you update the samples?

@sowsan
Copy link
Author

sowsan commented Jan 23, 2020 via email

@sowsan
Copy link
Author

sowsan commented Jan 23, 2020

Can we add metadata to the ApplicationConfiguration to tie with a specific rudr runtime version or a range of rudr runtime version to avoid these kinds of issues in the future? So, if anyone deploys an app using the ApplicationConfiguration it will validate with the rudr runtime and if the specified runtime version is not installed the k8s cluster it won't install the app and notify the user. Thoughts?

@sowsan
Copy link
Author

sowsan commented Jan 23, 2020

Fixed this in all samples and created a pull request here: kubevela/samples#25

Thank you so much to @wdfox for testing and verifying these changes with me.

@hongchaodeng
Copy link
Member

@sowsan
Yeah. Adding a range of version to AppConfig's annotations would be good. But hard enforcing it in Rudr side is not a concern of now. Could you create an issue for compatibility concern and we could revisit it in GA or Beta release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants