Skip to content

Commit 1d7611c

Browse files
author
openshift-service-mesh-bot
committed
Automated merge
* upstream/main: (29 commits) Avoid specifying platform in the e2e tests (openshift-service-mesh#555) Fix InUse detection in IstioRevisionTag controller (openshift-service-mesh#553) Update versions in sample yamls (openshift-service-mesh#552) Makefile support to deploy sample Istio with ambient profile (openshift-service-mesh#546) Document that env vars are strings (openshift-service-mesh#550) Ensure profile files are included in the revisiontags chart (openshift-service-mesh#537) Split unit/integration tests (openshift-service-mesh#547) Remove duplicate empty line at EOF of values_types (openshift-service-mesh#548) Skip namespace while deleting cluster scoped resources (openshift-service-mesh#544) Remove unneeded securityContext fields from multicluster manifests (openshift-service-mesh#539) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#538) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#535) Fix issue-management page (openshift-service-mesh#522) Fix undeploy when using Ambient mode (openshift-service-mesh#533) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#532) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#531) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#530) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#529) Add note for cni versions compatibility (openshift-service-mesh#525) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#526) ... # Conflicts: # bundle/manifests/sailoperator.clusterserviceversion.yaml # resources/latest/charts/base/files/crd-all.gen.yaml # resources/latest/charts/istiod/files/injection-template.yaml # resources/latest/charts/istiod/files/waypoint.yaml
2 parents c18bb1a + ba24e34 commit 1d7611c

File tree

96 files changed

+3211
-1397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3211
-1397
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "istio build-tools",
3-
"image": "gcr.io/istio-testing/build-tools:master-3d91e3d29bd1057b14995647d90cbf85e043eba6",
3+
"image": "gcr.io/istio-testing/build-tools:master-0b8e6b9676d328fbeb28a23b8d1134dcc56d98ec",
44
"privileged": true,
55
"remoteEnv": {
66
"USE_GKE_GCLOUD_AUTH_PLUGIN": "True",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: integration-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
coverage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Run coverage
12+
run: |
13+
make test.integration \
14+
-e COVERAGE=true
15+
16+
- name: Upload to Codecov
17+
uses: codecov/codecov-action@v4
18+
with:
19+
files: out/coverage-unit.out,out/coverage-integration.out
20+
token: ${{ secrets.CODECOV_TOKEN }}
21+
fail_ci_if_error: true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code coverage workflow
1+
name: unit-tests
22

33
on: [push, pull_request]
44

@@ -10,7 +10,7 @@ jobs:
1010

1111
- name: Run coverage
1212
run: |
13-
make test \
13+
make test.unit \
1414
-e COVERAGE=true
1515
1616
- name: Upload to Codecov

.github/workflows/update-deps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
update-deps:
2424
runs-on: ubuntu-latest
2525
container:
26-
image: gcr.io/istio-testing/build-tools:master-3d91e3d29bd1057b14995647d90cbf85e043eba6
26+
image: gcr.io/istio-testing/build-tools:master-0b8e6b9676d328fbeb28a23b8d1134dcc56d98ec
2727
options: --entrypoint ''
2828

2929
steps:

ISSUE-MANAGEMENT.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ You can report bugs and feature requests to the Sail Operator team opening a new
66
Please refer to the [Security Policy](https://github.com/istio-ecosystem/sail-operator/security/policy) for more information on how to report security issues. Please do not report security issues in the public GitHub repository.
77

88
## Community Support
9-
If you have questions or need help, you can reach out to the Sail Operator community in the [Istio Slack](https://istio.slack.com/). You can join the Istio Slack workspace by visiting the [Istio Slack invitation page](https://slack.istio.io/). Once you join the Istio Slack workspace, you can find the `#sail-operator` channel. Also, you can start a discussion in the [Sail Operator Discussion] (https://github.com/istio-ecosystem/sail-operator/discussions)
9+
If you have questions or need help, you can reach out to the Sail Operator community in the [Istio Slack](https://istio.slack.com/). You can join the Istio Slack workspace by visiting the [Istio Slack invitation page](https://slack.istio.io/). Once you join the Istio Slack workspace, you can find the `#sail-operator` channel. Also, you can start a discussion in the [Sail Operator Discussion](https://github.com/istio-ecosystem/sail-operator/discussions)
1010

1111
## Contributing
12-
If you want to contribute to the Sail Operator project, please refer to the [CONTRIBUTING-SAIL-PROJECT.md](https://github.com/istio-ecosystem/sail-operator/blob/main/CONTRIBUTING-SAIL-PROJECT.md) file for more information on how to contribute to the project. The file [CONTRIBUTING.md](https://github.com/istio-ecosystem/sail-operator/blob/main/CONTRIBUTING.md) contains all the information you need to get started with contributing Istio.
12+
If you want to contribute to the Sail Operator project, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information on how to contribute to the project.
13+
For contributing to Istio, check out the [CONTRIBUTING.md](https://github.com/istio/community/blob/master/CONTRIBUTING.md) file, which contains all the information you need to get started.
1314

1415
## Did you find an Istio bug?
1516
If you found a bug in Istio, please refer to the [Istio GitHub repository](https://github.com/istio-ecosystem/sail-operator/blob/main/CONTRIBUTING-SAIL-PROJECT.md) to check the guidelines on how to report a bug to the Sail team.

Makefile.core.mk

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ OLD_VARS := $(.VARIABLES)
1919
# Use `make print-variables` to inspect the values of the variables
2020
-include Makefile.vendor.mk
2121

22-
VERSION ?= 0.2.0
22+
VERSION ?= 0.3.0
2323
MINOR_VERSION := $(shell echo "${VERSION}" | cut -f1,2 -d'.')
2424

2525
OPERATOR_NAME ?= sailoperator
@@ -330,29 +330,39 @@ deploy-olm: verify-kubeconfig bundle bundle-build bundle-push ## Build and push
330330
.PHONY: undeploy
331331
undeploy: verify-kubeconfig ## Undeploy controller from an existing cluster.
332332
kubectl delete istios.sailoperator.io --all --all-namespaces --wait=true
333+
kubectl delete istiocni.sailoperator.io --all --all-namespaces --wait=true
334+
kubectl delete ztunnel.sailoperator.io --all --all-namespaces --wait=true
333335
$(MAKE) -e HELM_TEMPL_DEF_FLAGS="$(HELM_TEMPL_DEF_FLAGS)" deploy-yaml | kubectl delete --ignore-not-found -f -
334336
kubectl delete ns ${NAMESPACE} --ignore-not-found
335337
$(HELM) template chart chart $(HELM_TEMPL_DEF_FLAGS) --set image='$(IMAGE)' --namespace $(NAMESPACE) | kubectl delete --ignore-not-found -f -
336338

337339
.PHONY: undeploy-olm
338340
undeploy-olm: verify-kubeconfig operator-sdk ## Undeploy the operator from an existing cluster (used only if operator was installed via OLM).
339341
kubectl delete istios.sailoperator.io --all --all-namespaces --wait=true
342+
kubectl delete istiocni.sailoperator.io --all --all-namespaces --wait=true
343+
kubectl delete ztunnel.sailoperator.io --all --all-namespaces --wait=true
340344
$(OPERATOR_SDK) cleanup $(OPERATOR_NAME) --delete-all -n ${NAMESPACE}
341345

342-
.PHONY: deploy-example
343-
deploy-example: deploy-example-openshift ## Deploy an example Istio resource to an existing OCP cluster. Same as `deploy-example-openshift`.
346+
.PHONY: deploy-istio
347+
deploy-istio: verify-kubeconfig ## Deploy a sample Istio resource (without CNI) to an existing cluster.
348+
kubectl create ns istio-system || echo "namespace istio-system already exists"
349+
kubectl apply -f chart/samples/istio-sample.yaml
344350

345-
.PHONY: deploy-example-openshift
346-
deploy-example-openshift: verify-kubeconfig ## Deploy an example Istio and IstioCNI resource to an existing OCP cluster.
351+
.PHONY: deploy-istio-with-cni
352+
deploy-istio-with-cni: verify-kubeconfig ## Deploy a sample Istio and IstioCNI resource to an existing cluster.
347353
kubectl create ns istio-cni || echo "namespace istio-cni already exists"
348354
kubectl apply -f chart/samples/istiocni-sample.yaml
349355
kubectl create ns istio-system || echo "namespace istio-system already exists"
350-
kubectl apply -f chart/samples/istio-sample-openshift.yaml
356+
kubectl apply -f chart/samples/istio-sample.yaml
351357

352-
.PHONY: deploy-example-kubernetes
353-
deploy-example-kubernetes: verify-kubeconfig ## Deploy an example Istio resource on an existing cluster.
358+
.PHONY: deploy-istio-with-ambient
359+
deploy-istio-with-ambient: verify-kubeconfig ## Deploy necessary Istio resources using the ambient profile.
354360
kubectl create ns istio-system || echo "namespace istio-system already exists"
355-
kubectl apply -f chart/samples/istio-sample-kubernetes.yaml
361+
kubectl apply -f chart/samples/ambient/istio-sample.yaml
362+
kubectl create ns istio-cni || echo "namespace istio-cni already exists"
363+
kubectl apply -f chart/samples/ambient/istiocni-sample.yaml
364+
kubectl create ns ztunnel || echo "namespace zunnel already exists"
365+
kubectl apply -f chart/samples/ambient/istioztunnel-sample.yaml
356366

357367
##@ Generated Code & Resources
358368

@@ -469,9 +479,9 @@ ISTIOCTL ?= $(LOCALBIN)/istioctl
469479

470480
## Tool Versions
471481
OPERATOR_SDK_VERSION ?= v1.38.0
472-
HELM_VERSION ?= v3.16.3
482+
HELM_VERSION ?= v3.16.4
473483
CONTROLLER_TOOLS_VERSION ?= v0.16.5
474-
OPM_VERSION ?= v1.48.0
484+
OPM_VERSION ?= v1.49.0
475485
OLM_VERSION ?= v0.30.0
476486
GITLEAKS_VERSION ?= v8.21.2
477487
ISTIOCTL_VERSION ?= 1.23.0

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,10 @@ Make sure that the `HUB` and `TAG` environment variables point to your container
9999

100100
Create an instance of the `Istio` resource to install the Istio Control Plane.
101101

102-
Use the `istio-sample-kubernetes.yaml` file on vanilla Kubernetes:
103-
104-
```sh
105-
# Create the istio-system namespace if it does not exist
106-
kubectl create ns istio-system
107-
kubectl apply -f chart/samples/istio-sample-kubernetes.yaml
108-
```
109-
110-
Use the `istio-sample-openshift.yaml` file on OpenShift:
111-
112102
```sh
113103
# Create the istio-system namespace if it does not exist
114104
kubectl create ns istio-system
115-
kubectl apply -f chart/samples/istio-sample-openshift.yaml
105+
kubectl apply -f chart/samples/istio-sample.yaml
116106
```
117107

118108
On OpenShift, you must also deploy the Istio CNI plugin by creating an instance of the `IstioCNI` resource:

api/v1alpha1/values_types.gen.go

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/ztunnel_types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ const (
2828
type ZTunnelSpec struct {
2929
// +sail:version
3030
// Defines the version of Istio to install.
31-
// Must be one of: v1.24.0 or latest.
32-
// +operator-sdk:csv:customresourcedefinitions:type=spec,order=1,displayName="Istio Version",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:v1.24.0", "urn:alm:descriptor:com.tectonic.ui:select:latest"}
33-
// +kubebuilder:validation:Enum=v1.24.0;latest
34-
// +kubebuilder:default=v1.24.0
31+
// Must be one of: v1.24.2.
32+
// +operator-sdk:csv:customresourcedefinitions:type=spec,order=1,displayName="Istio Version",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:v1.24.2"}
33+
// +kubebuilder:validation:Enum=v1.24.2
34+
// +kubebuilder:default=v1.24.2
3535
Version string `json:"version"`
3636

3737
// +sail:profile
@@ -178,7 +178,7 @@ type ZTunnel struct {
178178
metav1.TypeMeta `json:",inline"`
179179
metav1.ObjectMeta `json:"metadata,omitempty"`
180180

181-
// +kubebuilder:default={version: "v1.24.0", namespace: "ztunnel", profile: "ambient"}
181+
// +kubebuilder:default={version: "v1.24.2", namespace: "ztunnel", profile: "ambient"}
182182
Spec ZTunnelSpec `json:"spec,omitempty"`
183183

184184
Status ZTunnelStatus `json:"status,omitempty"`

0 commit comments

Comments
 (0)