Skip to content

Commit

Permalink
v1.0.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli committed May 16, 2023
1 parent d06c965 commit 94a5c22
Show file tree
Hide file tree
Showing 7 changed files with 1,478 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/actions/e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:
HIVELOCITY_API_KEY: ${{ env.HIVELOCITY_API_KEY }}
HIVELOCITY_SSH_PUB: ${{ inputs.e2e_ssh_pub }}
SKIP_IMAGE_BUILD: "1"
CAPHV_LATEST_VERSION: "latest" # TODO: use real version
CAPHV_LATEST_VERSION: "v1.0.0-alpha.0"
run: make ${{ inputs.e2e_make_target }}
- name: Upload artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ generate-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole
generate-go-deepcopy: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="./hack/boilerplate/boilerplate.generatego.txt" paths="./api/..."


cluster-templates: $(KUSTOMIZE)
$(KUSTOMIZE) build templates/cluster-templates/hivelocity --load-restrictor LoadRestrictionsNone > templates/cluster-templates/cluster-template.yaml

dry-run: generate
cd config/manager && $(KUSTOMIZE) edit set image controller=${STAGING_REGISTRY}:${TAG}
mkdir -p dry-run
Expand Down Expand Up @@ -310,6 +314,8 @@ e2e-image: ## Build the e2e manager image
.PHONY: $(E2E_CONF_FILE)
e2e-conf-file: $(E2E_CONF_FILE)
$(E2E_CONF_FILE): $(ENVSUBST) $(E2E_CONF_FILE_SOURCE)
@test $${MANIFEST_PATH?Environment variable is required}
@test $${CAPHV_LATEST_VERSION?Environment variable is required}
mkdir -p $(shell dirname $(E2E_CONF_FILE))
$(ENVSUBST) < $(E2E_CONF_FILE_SOURCE) > $(E2E_CONF_FILE)

Expand Down
16 changes: 8 additions & 8 deletions test/e2e/config/hivelocity-ci-envsubst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ providers:
type: "url"
contract: v1beta1
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -35,7 +35,7 @@ providers:
type: "url"
contract: "v1beta1"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -51,7 +51,7 @@ providers:
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.4.1/control-plane-components.yaml"
type: "url"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -63,12 +63,12 @@ providers:
- name: hivelocity
type: InfrastructureProvider
versions:
- name: # latest published release
value: https://github.com/hivelocity/cluster-api-provider-hivelocity/releases/download//infrastructure-components.yaml
- name: v1.0.0-alpha.0 # latest published release
value: https://github.com/hivelocity/cluster-api-provider-hivelocity/releases/download/v1.0.0-alpha.0/infrastructure-components.yaml
type: "url"
contract: v1beta1
files:
- sourcePath: "../metadata.yaml"
- sourcePath: "../../../out/metadata.yaml"
- sourcePath: "../data/infrastructure-hivelocity/v1alpha1/cluster-template.yaml"
- name: v1.0.99 # next; use manifest from source files
value: ../../../config/default
Expand All @@ -81,7 +81,7 @@ providers:
- old: --metrics-bind-addr=localhost:8080
new: --metrics-bind-addr=:8080
files:
- sourcePath: "../metadata.yaml"
- sourcePath: "../../../out/metadata.yaml"
- sourcePath: "../data/infrastructure-hivelocity/v1alpha1/cluster-template.yaml"

variables:
Expand All @@ -103,7 +103,7 @@ variables:
INIT_WITH_BINARY: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.4/clusterctl-linux-amd64"
INIT_WITH_PROVIDERS_CONTRACT: "v1beta1"
INIT_WITH_KUBERNETES_VERSION: "v1.25.2"
INIT_WITH_INFRASTRUCTURE_PROVIDER_VERSION:
INIT_WITH_INFRASTRUCTURE_PROVIDER_VERSION: v1.0.0-alpha.0

# Cluster Addons
CILIUM: "./data/cni/cilium/cilium.yaml"
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/config/hivelocity-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ providers:
type: "url"
contract: v1beta1
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -35,7 +35,7 @@ providers:
type: "url"
contract: "v1beta1"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -51,7 +51,7 @@ providers:
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.4.1/control-plane-components.yaml"
type: "url"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/config/hivelocity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ providers:
type: "url"
contract: v1beta1
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -35,7 +35,7 @@ providers:
type: "url"
contract: "v1beta1"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand All @@ -51,7 +51,7 @@ providers:
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.4.1/control-plane-components.yaml"
type: "url"
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
- sourcePath: "../data/shared/v1alpha1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
Expand Down
Loading

0 comments on commit 94a5c22

Please sign in to comment.