Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions local-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ The `scripts/start.sh` script performs the following operations:

2. **Cluster Management**
- Creates Kind cluster named `platform-mesh` (if not exists)
- Uses Kubernetes v1.33.1 (`kindest/node:v1.33.1`)
- Uses Kubernetes v1.33.1 (`kindest/node:v1.34.0`)
- Configures cluster with custom networking for local development

3. **Certificate Generation**
Expand All @@ -231,18 +231,18 @@ The `scripts/start.sh` script performs the following operations:

4. **Core Infrastructure Installation**
- Installs Flux for GitOps workflow management
- Deploys Cert-Manager for SSL certificate management
- Sets up OCM (Open Component Model) controller
- Installs KRO (Kubernetes Resource Orchestrator)

5. **Platform Mesh Deployment**
- Applies base Kustomize configurations
- Creates necessary secrets (Keycloak, Grafana, certificates)
- Creates necessary secrets (Keycloak, certificates)
- Deploys Platform Mesh operator and components
- Installs supporting services (Keycloak, RBAC webhook, etc.)
- The Platform Mesh Operator then deploys all components of platform-mesh automatically

6. **Post-Installation Setup**
- Waits for the Platform Mesh Resource to be ready
- Creates KCP admin kubeconfig for workspace access
- Waits for all components to become ready
- Provides access instructions and next steps

7. **Example Data Setup** (when using `--example-data` flag)
Expand Down
5 changes: 4 additions & 1 deletion local-setup/kustomize/base/ocm-k8s-toolkit/flux-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ spec:
value:
- --health-probe-bind-address=:8081
- --resource-controller-concurrency=21
- --zap-log-level=4
target:
kind: Deployment
name: controller-manager
- patch: |
- op: replace
path: /spec/template/spec/containers/0/image
value: ghcr.io/open-component-model/kubernetes/controller@sha256:5e790dad020adcfd0793f249d177a28429ef22446def39c9286eab90c52175c1
Expand Down
71 changes: 0 additions & 71 deletions local-setup/kustomize/base/rgd/rgd.yaml

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions local-setup/kustomize/components/ocm-latest/repository.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion local-setup/kustomize/components/ocm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- repository.yaml
- component.yaml
- platform-mesh-operator-rgd-resource.yaml
- platform-mesh-operator-deployer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: delivery.ocm.software/v1alpha1
kind: Deployer
metadata:
name: platform-mesh-operator
spec:
resourceRef:
name: platform-mesh-operator-rgd
namespace: default
ocmConfig:
- apiVersion: delivery.ocm.software/v1alpha1
kind: Repository
name: platform-mesh
namespace: default
policy: Propagate
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: delivery.ocm.software/v1alpha1
kind: Resource
metadata:
name: platform-mesh-operator-rgd
spec:
componentRef:
name: platform-mesh
interval: 3m0s
ocmConfig:
- apiVersion: delivery.ocm.software/v1alpha1
kind: Repository
name: platform-mesh
namespace: default
policy: Propagate
resource:
byReference:
referencePath:
- name: platform-mesh-operator
resource:
name: rgd
skipVerify: true
3 changes: 2 additions & 1 deletion local-setup/kustomize/components/ocm/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: platform-mesh
spec:
repositorySpec:
baseUrl: ghcr.io/platform-mesh
baseUrl: ghcr.io
subPath: platform-mesh
type: OCIRegistry
interval: 1m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ spec:
- name: "feature-enable-getting-started"
- name: "feature-enable-marketplace-account"
values:
account-operator:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: account-operator
etcd-druid:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: etcd-druid
extension-manager-operator:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: extension-manager-operator
rebac-authz-webhook:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: rebac-authz-webhook
keycloak:
enabled: true
values:
Expand Down Expand Up @@ -82,6 +110,12 @@ spec:
infra: "true"
component: infra
security-operator:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: security-operator
values:
log:
noJson: true
Expand All @@ -97,6 +131,12 @@ spec:
hostAliases:
enabled: true
portal:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: portal
enabled: true
values:
gatewayApi:
Expand Down Expand Up @@ -141,6 +181,12 @@ spec:
tls:
enabled: false
virtual-workspaces:
imageResource:
enabled: true
labels:
repo: oci
artifact: image
for: virtual-workspaces
values:
virtualWorkspaceSecretName: virtual-workspaces-cert
deployment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ kind: PlatformMeshOperator
metadata:
name: platform-mesh-operator
spec:
resource:
byReference:
referencePath:
- name: platform-mesh-operator
resource:
name: chart
ocm:
resource:
byReference:
referencePath:
- name: platform-mesh-operator
resource:
name: chart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
repositoryRef:
name: platform-mesh
component: github.com/platform-mesh/platform-mesh
semver: 0.2.0-build.28
semver: 0.2.0-build.29
interval: 1m
ocmConfig:
- kind: Repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../components/platform-mesh-operator
- ../../components/ocm-latest
- ../../components/ocm
- ./component.yaml
2 changes: 1 addition & 1 deletion local-setup/kustomize/overlays/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../components/platform-mesh-operator
- ../../components/ocm
- ./component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- rgd.yaml
- ../../components/platform-mesh-operator
2 changes: 1 addition & 1 deletion local-setup/scripts/check-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ run_environment_checks() {
exit 1
fi

echo -e "${COL}✅ All environment checks passed!${COL_RES}"
echo -e "${COL}[$(date '+%H:%M:%S')] ✅ All environment checks passed!${COL_RES}"
echo ""
}

Expand Down
11 changes: 6 additions & 5 deletions local-setup/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ kubectl create secret generic domain-certificate-ca -n platform-mesh-system \
--from-file=tls.crt=$SCRIPT_DIR/certs/ca.crt --dry-run=client -oyaml | kubectl apply -f -

echo -e "${COL}[$(date '+%H:%M:%S')] Install Platform-Mesh Operator ${COL_RES}"
kubectl apply -k $SCRIPT_DIR/../kustomize/base/rgd
kubectl wait --namespace default \
--for=condition=Ready resourcegraphdefinition \
--timeout=480s platform-mesh-operator

if [ "$LATEST" = true ]; then
echo -e "${COL}[$(date '+%H:%M:%S')] Using LATEST OCM Component version ${COL_RES}"
kubectl apply -k $SCRIPT_DIR/../kustomize/overlays/default-latest
Expand All @@ -136,6 +131,12 @@ else
kubectl apply -k $SCRIPT_DIR/../kustomize/overlays/default
fi

kubectl wait --namespace default \
--for=condition=Ready Deployer \
--timeout=480s platform-mesh-operator

kubectl apply -k $SCRIPT_DIR/../kustomize/overlays/platform-mesh-operator

kubectl wait --namespace default \
--for=condition=Ready PlatformMeshOperator \
--timeout=480s platform-mesh-operator
Expand Down
Loading