{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/53","repository_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter","labels_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/53/comments","events_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/53/events","html_url":"https://github.com/Azure/azure-k8s-metrics-adapter/issues/53","id":392282576,"node_id":"MDU6SXNzdWUzOTIyODI1NzY=","number":53,"title":"Error: deployment of azureexternalmetric instead of actual deployments","user":{"login":"srsrin","id":45807532,"node_id":"MDQ6VXNlcjQ1ODA3NTMy","avatar_url":"https://avatars1.githubusercontent.com/u/45807532?v=4","gravatar_id":"","url":"https://api.github.com/users/srsrin","html_url":"https://github.com/srsrin","followers_url":"https://api.github.com/users/srsrin/followers","following_url":"https://api.github.com/users/srsrin/following{/other_user}","gists_url":"https://api.github.com/users/srsrin/gists{/gist_id}","starred_url":"https://api.github.com/users/srsrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srsrin/subscriptions","organizations_url":"https://api.github.com/users/srsrin/orgs","repos_url":"https://api.github.com/users/srsrin/repos","events_url":"https://api.github.com/users/srsrin/events{/privacy}","received_events_url":"https://api.github.com/users/srsrin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-18T18:35:01Z","updated_at":"2019-02-01T22:19:04Z","closed_at":"2019-02-01T22:19:04Z","author_association":"NONE","body":"**Describe the bug**\r\nWe are attempting to use horizontal pod autoscaling in our cluster. The cluster autoscaler yaml is already deployed to our cluster but not through helm. However the HorizontalPodAutoscaler yamls are in our charts folder and are deployed through helm in the same namespace that the normal deployments should be in. In addition, i have just deployed azure metrics adapter by cloning the repo and running helm upgrade on it. However, what seems to be happening is instead of the deployments getting pushed to the cluster, the azure metrics adapter pushes its own deployment with the name of namespace im trying to push all the deployments to. And then I dont see my deployments pushed. \r\n\r\n**To Reproduce**\r\nHave a cluster that has the clusterautoscaler\r\nrun helm upgrade charts/azure-k8s-metrics-adapter which proper values for auth etc in namespace custom-metrics\r\nrun helm upgrade charts/<cluster-deployments-and-hpas> which have yamls for deployments and hpa's that link to those specific deployments in namespace <namespace>\r\n\r\n**Expected behavior**\r\nusing the aem, the hpas should connect to the deployments and they should deploy. instead, the azure-k8s-adapter deploys its own deployment.\r\n\r\nOne attempt at fixing this was to remove the deployment.yaml file from the charts/azure-k8s-metrics-adapter repo however, that made it so that i got the error: \"deployments/scale.extensions not found\" \r\n\r\nThis whole process was in an attempt to use helm to deploy the aem. Previously the yaml for the aem was generated through the command line using `helm install charts/azure-k8s-metric-adapter` with appropriate tags necessary.\r\n\r\nThis produced:\r\n![image](https://user-images.githubusercontent.com/45807532/50174769-ea99ef80-02af-11e9-9b45-615cea3c4271.png)\r\nHowever, this is an attempt to generate the appropriate yaml through charts in a CI/CD pipeline. When done this way, there doesn't seem to be the custom-role-bindings:\r\n![image](https://user-images.githubusercontent.com/45807532/50174967-7b70cb00-02b0-11e9-93f5-48c8284bf47d.png)\r\n\r\n\r\nI have doublechecked that all tags are the same and auth is the same. \r\n \r\n\r\n**Kubernetes version (`kubectl version`):**\r\n- [ ] 1.10+\r\n\r\n**Logs (`kubectl logs <metric adapter pod id>`)**\r\n\r\n\r\n**Additional context**\r\nAdd any other context about the problem here. (HPA, Custom/External Metric CRD, azure auth type, etc.)\r\n"}}
{"actor":{"display_login":"jsturtevant"}}