Skip to content

Commit

Permalink
add terraform for utility cluster. Add name override to gke (#30847)
Browse files Browse the repository at this point in the history
* add terraform for utility cluster. Add name override to gke

* remove whitespace

* add strimzi version and fix prefix

* add more explanation on the purpose

* add node_config block for oauth scopes

* move oauth to auto_provisioning_defaults

* move stimzi operator to separate module. Remove utility cluster module and implement as var file

* add beam-utility tfvars file

* Refactor #30847

* add name override. add utility vars and backend

* tfbackend file asf licence

* tfbackend file asf licence

* add readme usage

* remove whitespace

* move kafka to 01-strimzi-operator, rename cluster

* remove beam-utility files
  • Loading branch information
volatilemolotov authored Apr 26, 2024
1 parent 68f6b55 commit 28a2682
Show file tree
Hide file tree
Showing 54 changed files with 472 additions and 15,186 deletions.
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,16 @@ playground/frontend/playground_components/test/tools/extract_symbols_java/depend
playground/frontend/playground_components_dev/pubspec.lock

# Ignore Beam Playground Terraform
**/.terraform
playground/cloudfunction.zip

# Ignore Terraform related
**/.terraform/
**/*.tfstate
**/*.tfstate.*
**/*.hcl
**/*.tfvars
playground/cloudfunction.zip

# Ignore Katas auto-generated files
**/*-remote-info.yaml

# Exception to .gitignore .test-infra/pipelines related files
!.test-infra/pipelines/**/apache-beam-testing.tfvars

# Ignore .test-infra/mock-apis related files
.test-infra/mock-apis/**/charts/

Expand Down
21 changes: 21 additions & 0 deletions .test-infra/kafka/strimzi/01-strimzi-operator/.terraform.lock.hcl

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

28 changes: 0 additions & 28 deletions .test-infra/kafka/strimzi/01-strimzi-operator/README.md

This file was deleted.

24 changes: 24 additions & 0 deletions .test-infra/kafka/strimzi/01-strimzi-operator/common.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

name = "strimzi"
namespace = "strimzi"
kubeconfig_path = "~/.kube/config"
chart_name = "strimzi-kafka-operator"
chart_version = "0.40.0"
chart_repository = "https://strimzi.io/charts/"
34 changes: 34 additions & 0 deletions .test-infra/kafka/strimzi/01-strimzi-operator/kafka.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

resource "helm_release" "strimzi-helm-release" {
name = var.name
namespace = var.namespace
create_namespace = true
repository = var.chart_repository
chart = var.chart_name
version = var.chart_version

atomic = "true"
timeout = 500

set {
name = "watchAnyNamespace"
value = "true"
}
}
23 changes: 0 additions & 23 deletions .test-infra/kafka/strimzi/01-strimzi-operator/kustomization.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions .test-infra/kafka/strimzi/01-strimzi-operator/namespace.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions .test-infra/kafka/strimzi/01-strimzi-operator/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
}
}

This file was deleted.

Loading

0 comments on commit 28a2682

Please sign in to comment.