I hereby claim:
- I am jwillker on github.
- I am jhonn (https://keybase.io/jhonn) on keybase.
- I have a public key ASAuq7OyLYVPhg3Bv6O5mm71ipZsehGFNcwqD0XNRJ0ioQo
To claim this, I am signing this object:
// An example of how to verify the rendered template object of a Helm Chart given various inputs. | |
func TestHelmBasicExampleTemplateRenderedDeployment(t *testing.T) { | |
t.Parallel() | |
// Path to the helm chart we will test | |
helmChartPath, err := filepath.Abs("../examples/helm-basic-example") | |
releaseName := "helm-basic" | |
require.NoError(t, err) | |
// Since we aren't deploying any resources, there is no need to setup kubectl authentication or helm home. |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ include "helm-basic-example.fullname" . }} | |
namespace: {{ .Release.Namespace }} | |
labels: | |
# These labels are required by helm. You can read more about required labels in the chart best pracices guide: | |
# https://docs.helm.sh/chart_best_practices/#standard-labels | |
helm.sh/chart: {{ include "helm-basic-example.chart" . }} | |
app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} |
{{/* | |
Return the appropriate apiVersion for ingress. | |
*/}} | |
{{- define "ingress.apiVersion" -}} | |
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= 1.19.x" (include "chart.kubeVersion" .)) -}} | |
{{- print "networking.k8s.io/v1" -}} | |
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}} | |
{{- print "networking.k8s.io/v1beta1" -}} | |
{{- else -}} | |
{{- print "extensions/v1beta1" -}} |
image: "{{ .Values.containers.image }}:{{ .Values.app.version }}" | |
imagePullPolicy: {{ .Values.containers.pullPolicy }} | |
{{- if .Values.containers.command }} | |
command: | |
{{- range .Values.containers.command }} | |
- {{ . }} | |
{{- end }} | |
{{- end }} | |
{{- if .Values.containers.args }} | |
args: |
func Test_sum(t *testing.T) { | |
tests := []struct { | |
name string | |
x int | |
y int | |
want int | |
}{ | |
{ | |
name: "one plus two", | |
x: 1, |
func sum(x, y int) int { | |
return x + y | |
} |
I hereby claim:
To claim this, I am signing this object:
npm install && npm run build | |
npm WARN eslint-config-airbnb@15.1.0 requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none is installed. You must install peer dependencies yourself. | |
npm WARN react-bootstrap-date-picker@5.1.0 requires a peer of react-bootstrap@^0.31.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN The package babel-preset-es2015 is included as both a dev and production dependency. | |
npm WARN The package stylus is included as both a dev and production dependency. | |
audited 39862 packages in 22.437s | |
found 959 vulnerabilities (793 low, 128 moderate, 36 high, 2 critical) | |
run `npm audit fix` to fix them, or `npm audit` for details |
#!/bin/bash | |
#Script for install Mediawiki on centos 6.8 | |
#Manual: https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux | |
# | |
#Run with sudo or root | |
#Update | |
yum -y update | |
yum -y install epel-release | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
Install Cmder: http://cmder.net/ | |
Install Choco: https://chocolatey.org/install | |
And now commands like "choco install [wget, python, node, docker, ...]" is working without problems. | |
Thank you and have fun! |