Skip to content

Commit

Permalink
Merge pull request #1185 from itamar-marom/feature/add-tfvarspaths-spec2
Browse files Browse the repository at this point in the history
Feature/add tfvarspaths spec2
  • Loading branch information
yitsushi authored Feb 2, 2024
2 parents 5758174 + 0178fb1 commit 6b07f66
Show file tree
Hide file tree
Showing 20 changed files with 793 additions and 389 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

env:
CONTROLLER: ${{ github.event.repository.name }}
LIBCRYPTO_VERSION: "3.1.4-r4"
LIBCRYPTO_VERSION: "3.1.4-r5"

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-runners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
env:
VERSION: ${{ github.event.inputs.version }}
BUILD_DATE: ${{ github.event.inputs.build_date }}
LIBCRYPTO_VERSION: "3.1.4-r4"
LIBCRYPTO_VERSION: "3.1.4-r5"

jobs:
release-base:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

env:
CONTROLLER: ${{ github.event.repository.name }}
LIBCRYPTO_VERSION: "3.1.4-r4"
LIBCRYPTO_VERSION: "3.1.4-r5"

jobs:
build-push:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BUILD_VERSION ?= $(shell git describe --tags $$(git rev-list --tags --max-count=
# - .github/workflows/release-runners.yaml
# - .github/workflows/release.yaml
# - Tiltfile
LIBCRYPTO_VERSION ?= 3.1.4-r4
LIBCRYPTO_VERSION ?= 3.1.4-r5

# source controller version
SOURCE_VER ?= v1.0.0-rc.1
Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tfNamespace = "terraform"
buildSHA = str(local('git rev-parse --short HEAD')).rstrip('\n')
buildVersionRef = str(local('git rev-list --tags --max-count=1')).rstrip('\n')
buildVersion = str(local("git describe --tags ${buildVersionRef}")).rstrip('\n')
LIBCRYPTO_VERSION = "3.1.4-r4"
LIBCRYPTO_VERSION = "3.1.4-r5"

if os.path.exists('Tiltfile.local'):
include('Tiltfile.local')
Expand Down
4 changes: 4 additions & 0 deletions api/v1alpha2/terraform_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ type TerraformSpec struct {
// +optional
Values *apiextensionsv1.JSON `json:"values,omitempty"`

// TfVarsFiles loads all given .tfvars files. It copycats the -var-file functionality.
// +optional
TfVarsFiles []string `json:"tfVarsFiles,omitempty"`

// List of all configuration files to be created in initialization.
// +optional
FileMappings []FileMapping `json:"fileMappings,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9812,6 +9812,12 @@ spec:
items:
type: string
type: array
tfVarsFiles:
description: TfVarsFiles loads all given .tfvars files. It copycats
the -var-file functionality.
items:
type: string
type: array
tfstate:
description: TFStateSpec allows the user to set ForceUnlock
properties:
Expand Down
Binary file added controllers/data/terraform-tfvars-files.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ func setupRouteHandlers() {
server.RouteToHandler("GET", "/tf-multi-resources.tar.gz", func(writer http.ResponseWriter, request *http.Request) {
http.ServeFile(writer, request, "data/tf-multi-resources.tar.gz")
})
server.RouteToHandler("GET", "/terraform-tfvars-files.tar.gz", func(writer http.ResponseWriter, request *http.Request) {
http.ServeFile(writer, request, "data/terraform-tfvars-files.tar.gz")
})
// for health check http test
server.RouteToHandler("GET", "/get", func(writer http.ResponseWriter, request *http.Request) {
ghttp.RespondWith(http.StatusOK, "ok")
Expand Down
Loading

0 comments on commit 6b07f66

Please sign in to comment.