Skip to content

Instantly share code, notes, and snippets.

{"level":"error","ts":1655359941.2160888,"caller":"helm-app/HelmAppService.go:491","msg":"error in fetching helm release info","err":"rpc error: code = Unknown desc = release: not found","stacktrace":"github.com/devtron-labs/devtron/api/helm-app.(*HelmAppServiceImpl).UpdateApplicationWithChartInfoWithExtraValues\n\t/go/src/github.com/devtron-labs/devtron/api/helm-app/HelmAppService.go:491\ngithub.com/devtron-labs/devtron/pkg/module.ModuleServiceImpl.HandleModuleAction\n\t/go/src/github.com/devtron-labs/devtron/pkg/module/ModuleService.go:168\ngithub.com/devtron-labs/devtron/api/module.ModuleRestHandlerImpl.HandleModuleAction\n\t/go/src/github.com/devtron-labs/devtron/api/module/ModuleRestHandler.go:129\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2049\ngithub.com/devtron-labs/devtron/internal/middleware.PrometheusMiddleware.func1\n\t/go/src/github.com/devtron-labs/devtron/internal/middleware/instrument.go:72\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:204
kubernetes/grofers-namespace/grofers-dot-com/my-ecommerce-site/delivery-charge: 100
kubernetes/grofers-namespace/grofers-dot-com/my-ecommerce-site/redis/host: http://localhost
kubernetes/grofers-namespace/grofers-dot-com/my-ecommerce-site/database/host: http://localhost
kubernetes/grofers-namespace/grofers-dot-com/my-ecommerce-site/database/port: 5432
@vaidik
vaidik / consul-kv-blog-config.yaml
Last active June 9, 2021 18:48
Example Spec for Consul KV
apiVersion: grofers.io/v1
kind: ConsulKV
metadata:
name: grofers-dot-com
namespace: grofers-namespace
labels:
app: grofers-dot-com
data:
my-ecommerce-site:
delivery-charge: 100

Keybase proof

I hereby claim:

  • I am vaidik on github.
  • I am vaidik (https://keybase.io/vaidik) on keybase.
  • I have a public key ASCsz6K2PtUSx39aKlAwy6pQ46DZYVL1yxRWUMCiYvlXrAo

To claim this, I am signing this object:

@vaidik
vaidik / outward_walk.py
Created August 21, 2014 21:44
Python: Outward Walk
import os
def outward_walk(bottom, func, arg=None):
'''
Walks out of directory to the upper level directories in the path.
Usage is very similar to os.path.walk.
'''
levels = bottom.split('/')
while len(levels) > 1:
@vaidik
vaidik / StackOverflow Question: Aggs on Nested Documents
Last active August 29, 2015 14:04
Displays how to use aggregations in Elasticsearch on documents with nested types
# Answer for: http://stackoverflow.com/questions/24631409/average-and-histogram-aggregation-on-nested-fields-in-elasticsearch
curl -XPUT "http://localhost:9200/aggs/test/_mapping" -d'
{
"test": {
"properties": {
"doctxt": {
"type": "string"
},
"nested": {
@vaidik
vaidik / vunits.js
Created September 27, 2013 18:30 — forked from LeaVerou/vunits.js
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;
#!/bin/bash
set -e
echo "Plug in your device"
adb wait-for-device
echo "Found device"
#dir=$(mktemp -d -t revision)
dir=$(mktemp -d -t revision.XXXXXX)
cd $dir
adb pull /system/b2g/omni.ja &>/dev/null || echo "Error pulling gecko"
adb pull /system/b2g/webapps/settings.gaiamobile.org/application.zip &> /dev/null || echo "Error pulling gaia file"
@vaidik
vaidik / gist:5905762
Last active December 19, 2015 05:39
Get element's source only in Selenium or Marionette. Both Selenium and Marionette have APIs to get source of the entire page but not just the source of the `WebElement` or `HTMLElement`. This utility function fills that gap.
def element_html(driver, elements):
"""Return source of a particular HTML element on the page.
:param driver: webdriver or marionette object - the object you use
to drive your webdriver or marionette tests.
:param elements: Webdriver.remote.webelement.WebElement object or
marionette.marionette.HTMLElement object or
a list of WebElement or HTMLElement objects
import json
import requests
import unittest
from time import time
def get_status_code(url):
response = requests.get(url, verify=False, allow_redirects=True)
return response.status_code