-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from jetstack/cluster-info-cmd
Implement basic cluster info command
- Loading branch information
Showing
91 changed files
with
31,951 additions
and
495 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 |
---|---|---|
|
@@ -12,17 +12,19 @@ jobs: | |
env: | ||
GOPRIVATE: github.com/jetstack/* | ||
steps: | ||
- name: Configure js-operator repo pull access | ||
# js-operator is a private repo that this tool depends on to build, | ||
- name: Configure private repo pull access | ||
# the following configuration will grant this action permissions to pull | ||
# that contents of that repo during a go mod download step. The key in | ||
# DEPLOY_KEY_READ_JS_OPERATOR is the private key of a deploy key on | ||
# the js-operator repo granting read only access. | ||
# that contents of that private repos using the deploy keys in the repo secrets | ||
run: | | ||
mkdir ~/.ssh | ||
chmod 700 ~/.ssh | ||
echo "${{ secrets.DEPLOY_KEY_READ_JS_OPERATOR }}" > ~/.ssh/js_operator_id | ||
echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_ENHANCED_ISSUER }}" > ~/.ssh/venafi_enhanced_issuer_id | ||
echo "${{ secrets.DEPLOY_KEY_READ_EXTERNAL_ISSUER_LIB }}" > ~/.ssh/external_issuer_lib_id | ||
chmod 600 ~/.ssh/venafi_enhanced_issuer_id | ||
chmod 600 ~/.ssh/external_issuer_lib_id | ||
chmod 600 ~/.ssh/js_operator_id | ||
cat <<EOT >> ~/.ssh/config | ||
|
@@ -31,10 +33,28 @@ jobs: | |
IdentityFile ~/.ssh/js_operator_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.ssh/config | ||
Host venafi-enhanced-issuer.github.com | ||
HostName github.com | ||
IdentityFile ~/.ssh/venafi_enhanced_issuer_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.ssh/config | ||
Host external-issuer-lib.github.com | ||
HostName github.com | ||
IdentityFile ~/.ssh/external_issuer_lib_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.gitconfig | ||
[url "[email protected]:jetstack/js-operator"] | ||
insteadOf = https://github.com/jetstack/js-operator | ||
[url "[email protected]:jetstack/venafi-enhanced-issuer"] | ||
insteadOf = https://github.com/jetstack/venafi-enhanced-issuer | ||
[url "[email protected]:jetstack/external-issuer-lib"] | ||
insteadOf = https://github.com/jetstack/external-issuer-lib | ||
EOT | ||
- name: Install Go | ||
|
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 |
---|---|---|
|
@@ -9,17 +9,19 @@ jobs: | |
env: | ||
GOPRIVATE: github.com/jetstack/* | ||
steps: | ||
- name: Configure js-operator repo pull access | ||
# js-operator is a private repo that this tool depends on to build, | ||
- name: Configure private repo pull access | ||
# the following configuration will grant this action permissions to pull | ||
# that contents of that repo during a go mod download step. The key in | ||
# DEPLOY_KEY_READ_JS_OPERATOR is the private key of a deploy key on | ||
# the js-operator repo granting read only access. | ||
# that contents of that private repos using the deploy keys in the repo secrets | ||
run: | | ||
mkdir ~/.ssh | ||
chmod 700 ~/.ssh | ||
echo "${{ secrets.DEPLOY_KEY_READ_JS_OPERATOR }}" > ~/.ssh/js_operator_id | ||
echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_ENHANCED_ISSUER }}" > ~/.ssh/venafi_enhanced_issuer_id | ||
echo "${{ secrets.DEPLOY_KEY_READ_EXTERNAL_ISSUER_LIB }}" > ~/.ssh/external_issuer_lib_id | ||
chmod 600 ~/.ssh/venafi_enhanced_issuer_id | ||
chmod 600 ~/.ssh/external_issuer_lib_id | ||
chmod 600 ~/.ssh/js_operator_id | ||
cat <<EOT >> ~/.ssh/config | ||
|
@@ -28,10 +30,28 @@ jobs: | |
IdentityFile ~/.ssh/js_operator_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.ssh/config | ||
Host venafi-enhanced-issuer.github.com | ||
HostName github.com | ||
IdentityFile ~/.ssh/venafi_enhanced_issuer_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.ssh/config | ||
Host external-issuer-lib.github.com | ||
HostName github.com | ||
IdentityFile ~/.ssh/external_issuer_lib_id | ||
IdentitiesOnly yes | ||
EOT | ||
cat <<EOT >> ~/.gitconfig | ||
[url "[email protected]:jetstack/js-operator"] | ||
insteadOf = https://github.com/jetstack/js-operator | ||
[url "[email protected]:jetstack/venafi-enhanced-issuer"] | ||
insteadOf = https://github.com/jetstack/venafi-enhanced-issuer | ||
[url "[email protected]:jetstack/external-issuer-lib"] | ||
insteadOf = https://github.com/jetstack/external-issuer-lib | ||
EOT | ||
- name: Install Go | ||
|
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,22 @@ | ||
# `jsctl cluster status` command | ||
|
||
The cluster status command shows the status resource definitions and resources | ||
in the cluster. This command exists to aid in the installation and maintenance | ||
of Jetstack Secure. | ||
|
||
## A component is not being correctly identified | ||
|
||
If an item in this part of the output: | ||
|
||
``` | ||
components: | ||
... | ||
``` | ||
|
||
appears to be incorrect, then you will need to alter the component's matching | ||
code. These are found in the `internal/kubernetes/status/components/` directory. | ||
|
||
Updating the `Match` implementation will allow the component to be correctly | ||
identified, note, more information migth need to be supplied to the function | ||
to robustly identify the component. This will require updates to the | ||
`installedComponent` interface. |
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
Oops, something went wrong.