Skip to content

Commit 2fd6ff4

Browse files
committed
Merge branch 'feature/commands' into develop
2 parents b946147 + 5ba4482 commit 2fd6ff4

File tree

5 files changed

+45
-20
lines changed

5 files changed

+45
-20
lines changed

helm/helm-commands.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ helm list --all
4747
helm show chart ingress-nginx/ingress-nginx
4848
helm show readme ingress-nginx/ingress-nginx
4949
helm show values ingress-nginx/ingress-nginx
50+
helm show values --version 5.7.12 jenkins/jenkins
5051

5152
### push (plugin)
5253
helm cm-push tomcat-9.0.0.tgz local-harbor

jenkins/operator/helm-install-jenkins-operator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trap 'echo "${BASH_SOURCE[0]}: line ${LINENO}: status ${?}: user ${USER}: func $
33
set -o errexit
44
set -o errtrace
55

6-
# helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
6+
# helm repo add jenkinsci https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
77
# helm repo update
88

99
NAMESPACE="jenkins-operator"
@@ -14,4 +14,4 @@ helm upgrade --install jenkins-operator \
1414
--namespace ${NAMESPACE} \
1515
--values values.yaml \
1616
--version 0.8.0 \
17-
jenkins/jenkins-operator
17+
jenkinsci/jenkins-operator

kubernetes/kubectl-commands.sh

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,19 @@ source <(kubectl completion bash)
88

99
######################################################################
1010

11+
### version
12+
kubectl version
1113
kubectl api-versions
1214

1315
######################################################################
1416

15-
### kubectx and kubens
16-
17-
kubectx
18-
kubectx -
19-
kubectx -h
20-
kubectx -c
21-
kubectx --current
22-
kubectx docker-desktop
23-
24-
kubens
25-
kubens -
26-
kubens -h
27-
kubens -c
28-
kubens --current
29-
kubens kube-system
17+
### check logs and events
18+
kubectl logs <pod-name> -c <init-container-name>
19+
kubectl describe pod <pod-name>
3020

3121
######################################################################
3222

33-
### apply and delete
23+
### apply and delete resources
3424

3525
cat <<EOF | kubectl apply -f -
3626
EOF
@@ -63,7 +53,23 @@ kubectl annotate --overwrite storageclass rook-ceph-block storageclass.kubernete
6353

6454
######################################################################
6555

66-
### dashboard
56+
### kubectx and kubens
57+
58+
kubectx
59+
kubectx -
60+
kubectx -h
61+
kubectx -c
62+
kubectx --current
63+
kubectx docker-desktop
64+
65+
kubens
66+
kubens -
67+
kubens -h
68+
kubens -c
69+
kubens --current
70+
kubens kube-system
71+
72+
######################################################################
6773

6874
### dashboard password
6975
kubectl describe secrets kubernetes-dashboard-token --namespace kube-system | grep token: | awk '{print $2}'

linux/file/file-find-commands.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function fd() { echo "+ fd ${@}">&2; command fd "${@}"; }
77

88
### fd
99

10-
fd -tf -E "*test.go|tset/" .go | xargs rg "\.Set[A-Za-z]+"
10+
fd -tf -E "*test.go|test/" .go | xargs rg "\.Set[A-Za-z]+"
1111

1212
######################################################################
1313

linux/package/package-brew-commands.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,21 @@
88

99
sudo yum groupinstall 'Development Tools'
1010
brew install gcc
11+
12+
######################################################################
13+
14+
brew list
15+
brew search <package_name>
16+
brew info <package_name>
17+
18+
brew install <package_name>
19+
brew upgrade <package_name>
20+
brew uninstall <package_name>
21+
22+
######################################################################
23+
24+
### manually remove any leftover files
25+
brew cleanup
26+
brew list --cask | grep <package_name>
27+
ls -l /opt/homebrew/Caskroom/<package_name>
28+
rm -rf /opt/homebrew/Caskroom/<package_name>

0 commit comments

Comments
 (0)