Skip to content
Merged
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
2 changes: 1 addition & 1 deletion class/capi-provider-cloudscale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
input_type: jsonnet
output_path: .
- input_paths:
- ${_base_directory}/component/main.jsonnet
- ${_base_directory}/component/cloudscale-provider.jsonnet
input_type: jsonnet
output_path: ${_base_directory}/manifests/capi-provider-cloudscale/
- input_type: external
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local com = import 'lib/commodore.libjsonnet';
local kap = import 'lib/kapitan.libjsonnet';
local kube = import 'lib/kube.libjsonnet';

local capi = import 'lib/capi-core.libsonnet';

local inv = kap.inventory();
// The hiera parameters for the component
local params = inv.parameters.capi_provider_cloudscale;
Expand Down Expand Up @@ -30,6 +33,7 @@ com.Kustomization(
},
],
patchesStrategicMerge: [ 'rm-namespace.yaml' ],
patches: [ capi.kustomize_patch_crd_clusterctl_label.patch ],
replacements: [
{
source: {
Expand Down Expand Up @@ -146,4 +150,4 @@ com.Kustomization(
},
},
],
}
} + capi.kustomize_patch_crd_clusterctl_label.patch_file
5 changes: 5 additions & 0 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

capi-provider-cloudscale is a Commodore component to manage capi-provider-cloudscale.

[TIP]
====
The component labels all CRDs with `clusterctl.cluster.x-k8s.io=""` which is used by the cluster API `clusterctl` CLI when discovering cluster API resources on a cluster.
====

See the xref:references/parameters.adoc[parameters] reference for further details.
10 changes: 9 additions & 1 deletion tests/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
applications:
- capi-core

parameters: {}
parameters:
kapitan:
dependencies:
- type: https
source: https://raw.githubusercontent.com/projectsyn/component-capi-core/feat/enable-clusterctl/lib/capi-core.libsonnet
output_path: vendor/lib/capi-core.libsonnet

capi_core:
namespace: syn-cluster-api
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/managed-by: commodore
cluster.x-k8s.io/provider: infrastructure-cloudscale-ch-cloudscale
cluster.x-k8s.io/v1beta2: v1beta2
clusterctl.cluster.x-k8s.io: ""
name: cloudscaleclusters.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/managed-by: commodore
cluster.x-k8s.io/provider: infrastructure-cloudscale-ch-cloudscale
cluster.x-k8s.io/v1beta2: v1beta2
clusterctl.cluster.x-k8s.io: ""
name: cloudscaleclustertemplates.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/managed-by: commodore
cluster.x-k8s.io/provider: infrastructure-cloudscale-ch-cloudscale
cluster.x-k8s.io/v1beta2: v1beta2
clusterctl.cluster.x-k8s.io: ""
name: cloudscalemachines.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/managed-by: commodore
cluster.x-k8s.io/provider: infrastructure-cloudscale-ch-cloudscale
cluster.x-k8s.io/v1beta2: v1beta2
clusterctl.cluster.x-k8s.io: ""
name: cloudscalemachinetemplates.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
Expand Down
Loading