Skip to content

Commit

Permalink
Remove in-cluster operator (istio#52090)
Browse files Browse the repository at this point in the history
* Initial removal of operator

* remove more

* Remove verifier

* remove more

* misc cruft

* remove cache

* cleanup more

* more

* drop samples

* more cleanup

* cleanup commands

* minor cleanup

* cleanup more

* cleanup readme

* new rb
  • Loading branch information
howardjohn authored Jul 29, 2024
1 parent 6a4a024 commit c2b027c
Show file tree
Hide file tree
Showing 105 changed files with 142 additions and 7,377 deletions.
5 changes: 2 additions & 3 deletions Makefile.core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ STANDARD_BINARIES:=./istioctl/cmd/istioctl \
./pilot/cmd/pilot-discovery \
./pkg/test/echo/cmd/client \
./pkg/test/echo/cmd/server \
./samples/extauthz/cmd/extauthz \
./operator/cmd/operator
./samples/extauthz/cmd/extauthz

# These are binaries that require Linux to build, and should
# be skipped on other platforms. Notably this includes the current Linux-only Istio CNI plugin
Expand Down Expand Up @@ -341,7 +340,7 @@ gen: \

gen-check: gen check-clean-repo

CHARTS = gateway default ztunnel istio-operator base "gateways/istio-ingress" "gateways/istio-egress" "istio-control/istio-discovery" istiod-remote istio-cni
CHARTS = gateway default ztunnel base "gateways/istio-ingress" "gateways/istio-egress" "istio-control/istio-discovery" istiod-remote istio-cni
copy-templates:
rm manifests/charts/istiod-remote/templates/*
rm manifests/charts/gateways/istio-egress/templates/*
Expand Down
4 changes: 0 additions & 4 deletions architecture/environments/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ Apart from validating the correctness of individual fields, the operator ensure
different parts of the configuration tree are correct. For example, it's an error to enable a component while its
parent feature is disabled.

## K8s controller

TODO(rcernich).

## Manifest creation

Manifest rendering is a multi-step process, shown in the figure below. ![rendering
Expand Down
5 changes: 0 additions & 5 deletions istioctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ debug and diagnose their Istio mesh.
rootCmd.AddCommand(admin.Cmd(ctx))
experimentalCmd.AddCommand(injector.Cmd(ctx))

rootCmd.AddCommand(mesh.NewVerifyCommand(ctx))
rootCmd.AddCommand(mesh.UninstallCmd(ctx))

experimentalCmd.AddCommand(authz.AuthZ(ctx))
Expand Down Expand Up @@ -215,10 +214,6 @@ debug and diagnose their Istio mesh.
hideInheritedFlags(manifestCmd, cli.FlagNamespace, cli.FlagIstioNamespace, FlagCharts)
rootCmd.AddCommand(manifestCmd)

operatorCmd := mesh.OperatorCmd(ctx)
hideInheritedFlags(operatorCmd, cli.FlagNamespace, cli.FlagIstioNamespace, FlagCharts)
rootCmd.AddCommand(operatorCmd)

installCmd := mesh.InstallCmd(ctx)
hideInheritedFlags(installCmd, cli.FlagNamespace, cli.FlagIstioNamespace, FlagCharts)
rootCmd.AddCommand(installCmd)
Expand Down
2 changes: 1 addition & 1 deletion istioctl/pkg/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (v *validator) validateResource(istioNamespace, defaultNamespace string, un
if err != nil {
return nil, err
}
return nil, operatorvalidate.CheckIstioOperator(iop, true)
return nil, operatorvalidate.CheckIstioOperator(iop)
}
}

Expand Down
7 changes: 3 additions & 4 deletions istioctl/pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,17 @@ import (
"istio.io/istio/istioctl/pkg/cli"
"istio.io/istio/istioctl/pkg/clioptions"
"istio.io/istio/istioctl/pkg/multixds"
"istio.io/istio/operator/cmd/mesh"
"istio.io/istio/pilot/pkg/model"
"istio.io/istio/pilot/pkg/xds"
"istio.io/istio/pkg/proxy"
istioVersion "istio.io/istio/pkg/version"
)

func NewVersionCommand(ctx cli.Context) *cobra.Command {
profileCmd := mesh.ProfileCmd(ctx)
var opts clioptions.ControlPlaneOptions
versionCmd := istioVersion.CobraCommandWithOptions(istioVersion.CobraOptions{
GetRemoteVersion: getRemoteInfoWrapper(ctx, &profileCmd, &opts),
var versionCmd *cobra.Command
versionCmd = istioVersion.CobraCommandWithOptions(istioVersion.CobraOptions{
GetRemoteVersion: getRemoteInfoWrapper(ctx, &versionCmd, &opts),
GetProxyVersions: getProxyInfoWrapper(ctx, &opts),
})
opts.AttachControlPlaneFlags(versionCmd)
Expand Down
13 changes: 0 additions & 13 deletions manifests/charts/istio-operator/Chart.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions manifests/charts/istio-operator/crds/crd-operator.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions manifests/charts/istio-operator/files/profile-ambient.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

90 changes: 0 additions & 90 deletions manifests/charts/istio-operator/files/profile-demo.yaml

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions manifests/charts/istio-operator/files/profile-openshift.yaml

This file was deleted.

Loading

0 comments on commit c2b027c

Please sign in to comment.