-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
12 changed files
with
89 additions
and
50 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<!-- Keep a Changelog guide -> https://keepachangelog.com --> | ||
|
||
# intellij-k8s-env Changelog | ||
|
||
## [Unreleased] | ||
## [0.1.0] | ||
### Added | ||
- Draft created | ||
- Run configuration environment variables from Kubernetes configmap and secrets, | ||
container runtime environment, and container Vault runtime environment |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,19 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: dev-configmap-two | ||
namespace: dev | ||
data: | ||
CONFIGMAP_TWO_FIRST_ENV: 'dev-configmap-two-dev' | ||
CONFIGMAP_TWO_SECOND_ENV: 'dev-configmap-two-dev' | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: dev-configmap-one | ||
namespace: dev | ||
data: | ||
CONFIGMAP_ONE_FIRST_ENV: 'dev-configmap-one' | ||
CONFIGMAP_ONE_SECOND_ENV: 'dev-configmap-one' | ||
|
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,11 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nginx | ||
namespace: dev | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.14.2 | ||
ports: | ||
- containerPort: 80 |
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,20 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: dev-secret-one | ||
namespace: dev | ||
type: kubernetes.io/ssh-auth | ||
data: | ||
# the data is abbreviated in this example | ||
ssh-privatekey: 'UG91cmluZzYlRW1vdGljb24lU2N1YmE=' | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: dev-secret-two | ||
namespace: dev | ||
type: kubernetes.io/ssh-auth | ||
data: | ||
privatekey-dev: 'UG91cmluZzYlRW1vdGljb24lU2N1YmE=' | ||
ssh-privatekey: 'UG91cmluZzYlRW1vdGljb24lU2N1YmE=' |
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
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
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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html --> | ||
<idea-plugin> | ||
<id>com.ssharaev.k8sEnv</id> | ||
<id>com.ssharaev.k8s.env.plugin</id> | ||
<name>Kubernetes Run Configuration Env</name> | ||
<vendor email="[email protected]">Slava Sharaev</vendor> | ||
<vendor email="[email protected]">Sviatoslav Sharaev</vendor> | ||
|
||
<depends>com.intellij.modules.platform</depends> | ||
<depends>com.intellij.modules.java</depends> | ||
<depends>com.intellij.gradle</depends> | ||
<depends>org.jetbrains.idea.maven</depends> | ||
|
||
<extensions defaultExtensionNs="com.intellij"> | ||
<notificationGroup displayType="BALLOON" id="com.ssharaev.k8sEnv"/> | ||
<notificationGroup displayType="BALLOON" id="com.ssharaev.k8s.env.plugin"/> | ||
<runConfigurationExtension implementation="com.ssharaev.k8s.env.plugin.run.configuration.IdeaRunConfigurationExtension"/> | ||
</extensions> | ||
|
||
|
@@ -24,13 +24,14 @@ | |
|
||
<description> | ||
<![CDATA[ | ||
Provides run configuration environment variables from kubernetes</p> | ||
Support several modes: | ||
<p>This plugin allows you to add environment variables to your run configuration from a k8s cluster. It uses the current context from <code>$KUBECONFIG</code> or <code>$HOME/.kube/config</code> file.</p> | ||
<p>It supports several modes:</p> | ||
<ul> | ||
<li>Configmap + secrets</li> | ||
<li>Pod vault</li> | ||
<li>Pod env</li> | ||
<li>Configmap and secrets - fetch variables from multiple configmap and/or secrets</li> | ||
<li>Pod environment - fetch all environment variables from the selected pod</li> | ||
<li>Pod Vault environment - fetch all Vault environment variables from the selected pod.</li> | ||
</ul> | ||
<p>Also, you can replace your variable values using regexp.</p> | ||
]]> | ||
</description> | ||
</idea-plugin> |