Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit db8576c

Browse files
committed
implementing new interfaces, overall cleanup and refactoring
1 parent 0c2d2a2 commit db8576c

29 files changed

+1584
-2208
lines changed

.github/workflows/gotest-cover.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: go-test-cover
22

33
on:
44
pull_request:

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ CAPI_KIND_CLUSTER_NAME ?= capi-test
231231
# It is set by Prow GIT_TAG, a git-based tag of the form vYYYYMMDD-hash, e.g., v20210120-v0.3.10-308-gc61521971
232232

233233
# Next release is: v1.0.0-preview
234-
TAG ?= v1.0.0-preview.5
234+
TAG ?= v1.0.0-preview.72
235235
ARCH ?= $(shell go env GOARCH)
236236
ALL_ARCH = amd64 arm arm64
237237

@@ -442,6 +442,7 @@ test-junit: $(SETUP_ENVTEST) $(GOTESTSUM) ## Run unit and integration tests and
442442
.PHONY: test-cover
443443
test-cover: ## Run unit and integration tests and generate a coverage report
444444
$(MAKE) test TEST_ARGS="$(TEST_ARGS) -coverprofile=out/coverage.out"
445+
mkdir out
445446
go tool cover -func=out/coverage.out -o out/coverage.txt
446447
go tool cover -html=out/coverage.out -o out/coverage.html
447448

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
gitRepository:
4949
url: "https://github.com/PatrickLaabs/cluster-api-addon-provider-cdk8s"
5050
reference: "main"
51-
referencePollInterval: '5'
51+
referencePollInterval: "5m"
5252
path: "examples/cdk8s-sample-deployment"
5353
clusterSelector: {}
5454
# matchLabels:
@@ -68,7 +68,8 @@ spec:
6868

6969
Examples of `Cdk8sAppProxy` usage can be found in the `/examples` directory in this repository.
7070

71-
- [`cdk8sappproxy_sample.yaml`](./examples/cdk8sappproxy_sample.yaml): This example demonstrates how to deploy a sample cdk8s application from a public Git repository to clusters matching a specific label selector. It shows the usage of the `gitRepository` field.
71+
- [`examples/cdk8sappproxy_sample-go.yaml`](./examples/cdk8sappproxy_sample-go.yaml): This example demonstrates how to deploy a sample cdk8s application from a public Git repository to clusters matching a specific label selector. It shows the usage of the `gitRepository` field.
72+
- [`examples/cdk8sappproxy_sample-typescript.yaml`](./examples/cdk8sappproxy_sample-typescript.yaml): This directory contains a sample cdk8s application written in Typescript, which also generates a kustomization file.
7273

7374
## 🤗 Community, discussion, contribution, and support
7475

api/v1alpha1/cdk8sappproxy_types.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ type Cdk8sAppProxyStatus struct {
6262
// ObservedGeneration is the last generation observed by the controller.
6363
// +optional
6464
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
65-
66-
// LastProcessedGitHash stores the commit hash of the last successfully reconciled Git state.
67-
// +optional
68-
LastProcessedGitHash string `json:"lastProcessedGitHash,omitempty"`
69-
70-
// LastRemoteGitHash is the last commit hash fetched from the remote git repository.
71-
// +optional
72-
LastRemoteGitHash string `json:"lastRemoteGitHash,omitempty"`
7365
}
7466

7567
// +kubebuilder:object:root=true

config/crd/bases/addons.cluster.x-k8s.io_cdk8sappproxies.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,6 @@ spec:
175175
- type
176176
type: object
177177
type: array
178-
lastProcessedGitHash:
179-
description: LastProcessedGitHash stores the commit hash of the last
180-
successfully reconciled Git state.
181-
type: string
182-
lastRemoteGitHash:
183-
description: LastRemoteGitHash is the last commit hash fetched from
184-
the remote git repository.
185-
type: string
186178
observedGeneration:
187179
description: ObservedGeneration is the last generation observed by
188180
the controller.

config/default/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ spec:
77
template:
88
spec:
99
containers:
10-
- image: ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller:v1.0.0-preview.5
10+
- image: ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller:v1.0.0-preview.72
1111
name: manager

config/default/manager_image_patch.yaml-e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ spec:
77
template:
88
spec:
99
containers:
10-
- image: ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller:v1.0.0-preview.5
10+
- image: ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller:v1.0.0-preview.72
1111
name: manager

controllers/cdk8sappproxy/cdk8sappproxy_consts.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)