-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional Istio resources into the reconciliation (#346)
* Initial * Second * Third * WIP * Unit tests * More unit tests * Integration test * Fix integration tests * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * Update internal/reconciliations/istio_resources/gateway_kyma.yaml Co-authored-by: Bartosz Chwila <[email protected]> * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * Update docs/release-notes/1.0.1.md Co-authored-by: Natalia Sitko <[email protected]> * Update docs/contributor/04-40-istio-resources.md Co-authored-by: Natalia Sitko <[email protected]> * scheme packages * Owner to configmaps * Obsolete * Warning * VS in different versions * Error description * Lint fix * fix istio-resources feature * Update internal/reconciliations/istio_resources/configmap_control_plane.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_mesh.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_performance.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_service.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_workload.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/peer_authentication_mtls.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/gateway_kyma.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/virtual_service_healthz.go Co-authored-by: Bartosz Chwila <[email protected]> * Update tests/integration/scenario.go Co-authored-by: Bartosz Chwila <[email protected]> * Rename * Update internal/reconciliations/istio_resources/configmap_control_plane.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_mesh.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_service.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/configmap_workload.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/envoy_filter_allow_partial_referer.go Co-authored-by: Bartosz Chwila <[email protected]> * Update internal/reconciliations/istio_resources/peer_authentication_mtls.go Co-authored-by: Bartosz Chwila <[email protected]> * dummy * Refactor applies * Update istio_resources.feature * Log istio CR description * Wait for istio system do be deleted * Update 04-40-istio-resources.md --------- Co-authored-by: Natalia Sitko <[email protected]> Co-authored-by: Bartosz Chwila <[email protected]> Co-authored-by: Chwila <[email protected]>
- Loading branch information
1 parent
db61308
commit 5e84909
Showing
50 changed files
with
12,069 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Kyma Istio Additional Resources | ||
|
||
## Overview | ||
|
||
The additional Istio resources include the Kyma configuration of Istio. They consist of: | ||
|
||
|
||
- Configuration details for Istio monitoring containing specifications for Grafana dashboards | ||
- Configuration for Istio Ingress Gateway, which handles incoming traffic to Kyma | ||
- Configuration for enabling Mutual TLS (mTLS) cluster-wide in the `STRICT` mode | ||
- Information about Istio [VirtualService](https://istio.io/docs/reference/config/networking/virtual-service/), which indicates whether Istio is operational. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
## New features | ||
|
||
- Apply additional Kyma resources and configuration like Kyma Gateway, configure service-mesh traffic to only allow mTLS using PeerAuthentication, install Istio Grafana dashboards, and expose Istio availability endpoint with a Virtual Service [#334](https://github.com/kyma-project/istio/issues/334) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
internal/reconciliations/istio_resources/configmap_control_plane.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package istio_resources | ||
|
||
import ( | ||
"context" | ||
_ "embed" | ||
|
||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" | ||
) | ||
|
||
//go:embed configmap_control_plane.yaml | ||
var manifest_cm_control_plane []byte | ||
|
||
type ConfigMapControlPlane struct { | ||
k8sClient client.Client | ||
} | ||
|
||
func NewConfigMapControlPlane(k8sClient client.Client) ConfigMapControlPlane { | ||
return ConfigMapControlPlane{k8sClient: k8sClient} | ||
} | ||
|
||
func (ConfigMapControlPlane) apply(ctx context.Context, k8sClient client.Client, owner metav1.OwnerReference, _ map[string]string) (controllerutil.OperationResult, error) { | ||
return applyResource(ctx, k8sClient, manifest_cm_control_plane, &owner) | ||
} | ||
|
||
func (ConfigMapControlPlane) Name() string { | ||
return "ConfigMap/istio-control-plane-grafana-dashboard" | ||
} |
Oops, something went wrong.