Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Community Edition
Commits
8002118a
Unverified
Commit
8002118a
authored
3 years ago
by
David vonThenen
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Generically allow plugins from external repos (#3998)
parent
980fa6a0
main
dependabot/go_modules/cli/cmd/plugin/conformance/github.com/vmware-tanzu/sonobuoy-0.56.5
dependabot/go_modules/cli/cmd/plugin/unmanaged-cluster/k8s.io/api-0.24.0
dependabot/go_modules/cli/cmd/plugin/unmanaged-cluster/k8s.io/apiextensions-apiserver-0.24.0
dependabot/go_modules/cli/cmd/plugin/unmanaged-cluster/k8s.io/apimachinery-0.24.0
dependabot/go_modules/cli/cmd/plugin/unmanaged-cluster/k8s.io/client-go-0.24.0
dependabot/go_modules/cli/cmd/plugin/unmanaged-cluster/k8s.io/kube-aggregator-0.24.0
dependabot/go_modules/hack/runner/webhook/github.com/aws/aws-sdk-go-1.44.10
dependabot/go_modules/test/k8s.io/api-0.24.0
dependabot/go_modules/test/k8s.io/client-go-0.24.0
fluxcd-source-controller-0.21.7
krisapplegate-atk-cart
new-kpack-dependencies-version-1650988114
new-kpack-dependencies-version-1651496547
release-0.12
shivaani/fix-metricsserver
shivaani/update-antrea-package
shivaani/update-kapp-controller34-overlay
shivaani/update-metrics-servier-schema
tce-ui-poc
topic/fhan/make-fields-nullables
topic/knabben/bump-antrea-15
topic/wguangyuan/add-webhook-config-for-adc
v0.13.0-dev.1
v0.12.1-dev.1
v0.12.0
v0.12.0-rc.2
v0.12.0-rc.1
v0.12.0-dev.6
v0.12.0-dev.5
v0.12.0-dev.4
v0.12.0-dev.3
v0.12.0-dev.2
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-0
Makefile
hack/release/install.bat
+1
-15
hack/release/install.bat
hack/release/install.sh
+1
-16
hack/release/install.sh
hack/release/prune-buckets.sh
+16
-0
hack/release/prune-buckets.sh
with
19 additions
and
31 deletions
+19
-31
Makefile
+
1
-
0
View file @
8002118a
...
...
@@ -297,6 +297,7 @@ prep-gcp-tce-bucket:
# Please see above
.PHONY
:
prune-buckets
prune-buckets
:
FAKE_RELEASE
=
$(
shell
expr
$(BUILD_VERSION)
|
grep test
)
\
TCE_SCRATCH_DIR
=
${TCE_SCRATCH_DIR}
hack/release/prune-buckets.sh
# The main target for GCP buckets. Please see above
...
...
This diff is collapsed.
Click to expand it.
hack/release/install.bat
+
1
-
15
View file @
8002118a
...
...
@@ -28,26 +28,12 @@ rmdir /Q /S %TANZU_CACHE_DIR% 2>nul
:: For 0.11.2
:: setup
xcopy /Y /E /H /C /I default-local "
%USERPROFILE%
\.config\tanzu
-plugins
"
:: install plugins
tanzu plugin install builder
tanzu plugin install codegen
tanzu plugin install cluster
tanzu plugin install kubernetes-release
tanzu plugin install login
tanzu plugin install management-cluster
tanzu plugin install package
tanzu plugin install pinniped-auth
tanzu plugin install secret
tanzu plugin install conformance
tanzu plugin install diagnostics
tanzu plugin install unmanaged-cluster
:: copy uninstall.bat
copy /B /Y uninstall.bat
%TCE_DIR%
:: explicit init of tanzu cli and add tce repo
:: For TF 0.17.0 or higher
:: tanzu init
tanzu init
tanzu plugin repo add --name tce --gcp-bucket-name tce-tanzu-cli-plugins --gcp-root-path artifacts
tanzu plugin repo add --name core-admin --gcp-bucket-name tce-tanzu-cli-framework-admin --gcp-root-path artifacts-admin
...
...
This diff is collapsed.
Click to expand it.
hack/release/install.sh
+
1
-
16
View file @
8002118a
...
...
@@ -107,23 +107,8 @@ platformdir=$(find "${MY_DIR}" -maxdepth 1 -type d -name "*default*" -exec basen
mkdir
-p
"
${
XDG_CONFIG_HOME
}
/tanzu-plugins"
cp
-r
"
${
MY_DIR
}
/
${
platformdir
}
/."
"
${
XDG_CONFIG_HOME
}
/tanzu-plugins"
# install plugins
tanzu plugin
install
builder
tanzu plugin
install
codegen
tanzu plugin
install
cluster
tanzu plugin
install
kubernetes-release
tanzu plugin
install
login
tanzu plugin
install
management-cluster
tanzu plugin
install
package
tanzu plugin
install
pinniped-auth
tanzu plugin
install
secret
tanzu plugin
install
conformance
tanzu plugin
install
diagnostics
tanzu plugin
install
unmanaged-cluster
# explicit init of tanzu cli and add tce repo
# For TF 0.17.0 or higher
# tanzu init
tanzu init
TCE_REPO
=
"
$(
tanzu plugin repo list |
grep
tce
)
"
if
[[
-z
"
${
TCE_REPO
}
"
]]
;
then
tanzu plugin repo add
--name
tce
--gcp-bucket-name
tce-tanzu-cli-plugins
--gcp-root-path
artifacts
...
...
This diff is collapsed.
Click to expand it.
hack/release/prune-buckets.sh
+
16
-
0
View file @
8002118a
...
...
@@ -10,6 +10,7 @@ set -o xtrace
TCE_CI_BUILD
=
"
${
TCE_CI_BUILD
:-
""
}
"
TCE_SCRATCH_DIR
=
"
${
TCE_SCRATCH_DIR
:-
""
}
"
TEST_RELEASE
=
"
${
TEST_RELEASE
:-
""
}
"
# required input
if
[[
-z
"
${
TCE_SCRATCH_DIR
}
"
]]
;
then
...
...
@@ -24,6 +25,11 @@ fi
# do this on TCE
pushd
"./artifacts"
||
exit
1
# we dont want to update the plugin.yaml if this is a test release. failing to do so,
# would indicate to tanzu cli that you could update to this "test" release
if
[[
"
${
TEST_RELEASE
}
"
!=
""
]]
;
then
find ./
-type
f |
grep
"plugin.yaml"
| xargs
rm
fi
find ./
-type
f |
grep
-v
"yaml"
| xargs
rm
find ./
-type
d |
grep
"test"
| xargs
rm
-rf
for
i
in
$(
find ./
-type
d |
grep
"v"
)
;
do
echo
"empty"
>>
"
${
i
}
/.empty"
;
done
...
...
@@ -33,6 +39,11 @@ popd || exit 1
# do this on tanzu framework
pushd
"
${
TCE_SCRATCH_DIR
}
/tanzu-framework/artifacts"
||
exit
1
# we dont want to update the plugin.yaml if this is a test release. failing to do so,
# would indicate to tanzu cli that you could update to this "test" release
if
[[
"
${
TEST_RELEASE
}
"
!=
""
]]
;
then
find ./
-type
f |
grep
"plugin.yaml"
| xargs
rm
fi
find ./
-type
f |
grep
-v
"yaml"
| xargs
rm
find ./
-type
d |
grep
"test"
| xargs
rm
-rf
for
i
in
$(
find ./
-type
d |
grep
"v"
)
;
do
echo
"empty"
>>
"
${
i
}
/.empty"
;
done
...
...
@@ -41,6 +52,11 @@ popd || exit 1
pushd
"
${
TCE_SCRATCH_DIR
}
/tanzu-framework/artifacts-admin/"
||
exit
1
# we dont want to update the plugin.yaml if this is a test release. failing to do so,
# would indicate to tanzu cli that you could update to this "test" release
if
[[
"
${
TEST_RELEASE
}
"
!=
""
]]
;
then
find ./
-type
f |
grep
"plugin.yaml"
| xargs
rm
fi
find ./
-type
f |
grep
-v
"yaml"
| xargs
rm
find ./
-type
d |
grep
"test"
| xargs
rm
-rf
for
i
in
$(
find ./
-type
d |
grep
"v"
)
;
do
echo
"empty"
>>
"
${
i
}
/.empty"
;
done
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help