Skip to content

Commit 0248bfd

Browse files
committed
Remove unnecessary kubectl-to-oc symlink in DEB install
The symlink was a workaround for scripts that used oc for standard Kubernetes operations on Debian where oc is not available. Now that those scripts use kubectl directly, the workaround is no longer needed. The oc adm subcommands (which have no kubectl equivalent) are only used in build-time containers, not on DEB-installed hosts. Closes #200 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent ce921d8 commit 0248bfd

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/deb/install.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ function install_ctl_tools() {
145145
local -r relkey="https://pkgs.k8s.io/core:/stable:/v${pkgver}/deb/Release.key"
146146
install_debpkg "kubectl" "${pkgver}" "${relkey}" cri-tools
147147

148-
# Create a symlink to the kubectl command as 'oc'
149-
if [ ! -f /usr/bin/oc ] ; then
150-
ln -s "$(which kubectl)" /usr/bin/oc
151-
fi
152-
153148
# Set the kubectl configuration
154149
if [ ! -e ~/.kube/config ] && [ ! -L ~/.kube/config ] ; then
155150
mkdir -p ~/.kube

0 commit comments

Comments
 (0)