-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 53e2ba2
Showing
6 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
## | ||
# Handle line endings automatically for files detected as text | ||
## | ||
* text=auto | ||
|
||
## | ||
# The above will handle all files NOT found below | ||
## | ||
|
||
# These files are text and should be normalized (Convert crlf => lf) | ||
.gitignore text | ||
.gitattributes text | ||
*.adoc text | ||
*.textile text | ||
*.mustache text | ||
*.csv text | ||
*.tab text | ||
*.tsv text | ||
*.sql text | ||
*.md text | ||
*.css text | ||
*.df text | ||
*.htm text | ||
*.html text | ||
*.java text | ||
*.js text | ||
*.json text | ||
*.jsp text | ||
*.jspf text | ||
*.jspx text | ||
*.properties text | ||
*.sh text | ||
*.tld text | ||
*.txt text | ||
*.tag text | ||
*.tagx text | ||
*.xml text | ||
*.yml text | ||
|
||
# These files are binary and should be left untouched (binary is a macro for -text -diff) | ||
*.class binary | ||
*.dll binary | ||
*.ear binary | ||
*.gif binary | ||
*.ico binary | ||
*.jar binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.png binary | ||
*.so binary | ||
*.war binary | ||
|
||
# Documents | ||
*.doc diff=astextplain | ||
*.docx diff=astextplain | ||
*.dot diff=astextplain | ||
*.pdf diff=astextplain | ||
*.rtf diff=astextplain | ||
|
||
# Linux | ||
*.sh text eol=lf | ||
*.bash text eol=lf | ||
|
||
# Visual Studio | ||
*.sln text eol=crlf | ||
*.csproj text eol=crlf | ||
*.vbproj text eol=crlf | ||
*.vcxproj text eol=crlf | ||
*.vcproj text eol=crlf | ||
*.dbproj text eol=crlf | ||
*.fsproj text eol=crlf | ||
*.lsproj text eol=crlf | ||
*.wixproj text eol=crlf | ||
*.modelproj text eol=crlf | ||
*.sqlproj text eol=crlf | ||
*.wmaproj text eol=crlf | ||
*.xproj text eol=crlf | ||
*.props text eol=crlf | ||
*.filters text eol=crlf | ||
*.vcxitems text eol=crlf | ||
|
||
# Language specific diff implementation # https://github.com/git/git/blob/master/userdiff.c # | ||
|
||
# HTML | ||
*.htm diff=html | ||
*.html diff=html | ||
|
||
# Java | ||
*.htm diff=java | ||
|
||
# Objective-C | ||
*.c diff=objc | ||
|
||
# Perl | ||
*.pl diff=perl | ||
|
||
# PHP | ||
*.php diff=php | ||
*.php4 diff=php | ||
*.php5 diff=php | ||
*.php7 diff=php | ||
|
||
# Python | ||
*.py diff=python | ||
*.py2 diff=python | ||
*.py3 diff=python | ||
|
||
# Ruby | ||
*.rb diff=ruby | ||
|
||
# Bibtex | ||
*.bibtex diff=bibtex | ||
|
||
# Tex | ||
*.tex diff=tex | ||
|
||
# CPP | ||
*.h diff=cpp | ||
*.cpp diff=cpp | ||
|
||
# C-Sharp | ||
*.cs diff=csharp | ||
|
||
# CSS | ||
*.css diff=css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
############################################################ | ||
# Dockerfile | ||
############################################################ | ||
|
||
# Set the base image | ||
FROM alpine:3.8 | ||
|
||
############################################################ | ||
# Configuration | ||
############################################################ | ||
ENV VERSION "0.6.1" | ||
|
||
############################################################ | ||
# Entrypoint | ||
############################################################ | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
|
||
############################################################ | ||
# Installation | ||
############################################################ | ||
|
||
RUN apk --no-cache add bash curl &&\ | ||
curl -L -o /usr/local/bin/kubectx https://raw.githubusercontent.com/ahmetb/kubectx/v${VERSION}/kubectx &&\ | ||
curl -L -o /usr/local/bin/kubens https://raw.githubusercontent.com/ahmetb/kubectx/v${VERSION}/kubens &&\ | ||
chmod +x /usr/local/bin/kubectx &&\ | ||
chmod +x /usr/local/bin/kubens &&\ | ||
chmod +x /usr/local/bin/docker-entrypoint.sh | ||
|
||
############################################################ | ||
# Execution | ||
############################################################ | ||
ENTRYPOINT [ "docker-entrypoint.sh" ] | ||
CMD [ "kubectx", "--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Philipp Heuer | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# KubeCTX / KubeNS | ||
|
||
Fast way to switch between clusters and namespaces in kubectl – [✩Star] the repo ahmetb/kubectx if you're using it! | ||
|
||
## Features | ||
|
||
This repository provides both `kubectx` and `kubens` tools. | ||
|
||
**`kubectx`** helps you switch between clusters back and forth: | ||
![kubectx demo GIF](https://github.com/ahmetb/kubectx/raw/v0.6.1/img/kubectx-demo.gif) | ||
|
||
**`kubens`** helps you switch between Kubernetes namespaces smoothly: | ||
![kubens demo GIF](https://github.com/ahmetb/kubectx/raw/v0.6.1/img/kubens-demo.gif) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# make sure the required directory exists | ||
mkdir -p /root/.kube | ||
|
||
# real entrypoint | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Upstream Repository | ||
--- | ||
repositoryNamespace: ahmetb | ||
repositoryName: kubectx | ||
pattern: "(master|develop|v(?<VERSION>[0-9]+.[0-9]+.[0-9]+))" |