Skip to content

Commit

Permalink
Merge pull request #98 from jawnsy/remove-configmap
Browse files Browse the repository at this point in the history
chore: remove unused ConfigMap
  • Loading branch information
rosmo authored Sep 26, 2023
2 parents 1108471 + b6214bd commit 6c496bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 62 deletions.
35 changes: 0 additions & 35 deletions deploy/autoneg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,41 +187,6 @@ subjects:
namespace: autoneg-system
---
apiVersion: v1
data:
controller_manager_config.yaml: |
# Copyright 2021 Google LLC
#
# Licensed 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.
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 9fe89c94.controller.autoneg.dev
kind: ConfigMap
metadata:
labels:
app: autoneg
name: autoneg-manager-config
namespace: autoneg-system
---
apiVersion: v1
kind: Service
metadata:
labels:
Expand Down
27 changes: 0 additions & 27 deletions terraform/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,32 +212,6 @@ resource "kubernetes_cluster_role_binding" "clusterrolebinding_autoneg_proxy_rol
}
}

resource "kubernetes_config_map" "example" {
metadata {
namespace = kubernetes_namespace.namespace_autoneg_system.metadata[0].name
name = "autoneg-manager-config"
labels = {
app = "autoneg"
}
}

data = {
"controller_manager_config.yaml" = <<-EOT
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 9fe89c94.controller.autoneg.dev
EOT
}
}

resource "kubernetes_service" "service_autoneg_controller_manager_metrics_service" {
metadata {
annotations = {
Expand Down Expand Up @@ -381,4 +355,3 @@ resource "kubernetes_deployment" "deployment_autoneg_controller_manager" {
kubernetes_cluster_role_binding.clusterrolebinding_autoneg_proxy_rolebinding,
]
}

0 comments on commit 6c496bd

Please sign in to comment.