mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
fix shellcheck in plugin/pkg/admission/imagepolicy/gencerts.sh
This commit is contained in:
parent
d9f3e96796
commit
5733241f7a
@ -121,7 +121,6 @@
|
|||||||
./hack/verify-typecheck.sh
|
./hack/verify-typecheck.sh
|
||||||
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
|
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
|
||||||
./pkg/util/verify-util-pkg.sh
|
./pkg/util/verify-util-pkg.sh
|
||||||
./plugin/pkg/admission/imagepolicy/gencerts.sh
|
|
||||||
./test/cmd/apply.sh
|
./test/cmd/apply.sh
|
||||||
./test/cmd/apps.sh
|
./test/cmd/apps.sh
|
||||||
./test/cmd/authorization.sh
|
./test/cmd/authorization.sh
|
||||||
|
@ -83,12 +83,12 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file was generated using openssl by the gencerts.sh script
|
||||||
|
// and holds raw certificates for the imagepolicy webhook tests.
|
||||||
|
|
||||||
|
package imagepolic
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "// This file was generated using openssl by the gencerts.sh script" >> $outfile
|
|
||||||
echo "// and holds raw certificates for the imagepolicy webhook tests." >> $outfile
|
|
||||||
echo "" >> $outfile
|
|
||||||
echo "package imagepolicy" >> $outfile
|
|
||||||
for file in caKey caCert badCAKey badCACert serverKey serverCert clientKey clientCert; do
|
for file in caKey caCert badCAKey badCACert serverKey serverCert clientKey clientCert; do
|
||||||
data=$(cat ${file}.pem)
|
data=$(cat ${file}.pem)
|
||||||
echo "" >> $outfile
|
echo "" >> $outfile
|
||||||
@ -96,7 +96,7 @@ for file in caKey caCert badCAKey badCACert serverKey serverCert clientKey clien
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Clean up after we're done.
|
# Clean up after we're done.
|
||||||
rm *.pem
|
rm ./*.pem
|
||||||
rm *.csr
|
rm ./*.csr
|
||||||
rm *.srl
|
rm ./*.srl
|
||||||
rm *.conf
|
rm ./*.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user