solutions/gke/kubernetes/namespace-defaults/cd/gitops-config-sync.yaml (21 lines of code) (raw):
# 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.
#########
# Root Sync to observe folder csync/tier4/kubernetes/_X-FLEET-ID/deploy/env/_NAMESPACE
# CM-5(1) - Files are read from the folder and applied to the infrastructure in automated way
apiVersion: configsync.gke.io/v1beta1
kind: RootSync
metadata:
# namespace + "_" + name cannot exceed 63 characters
name: workload-name-t4-csync # kpt-set: ${workload-name}-t4-csync
namespace: config-management-system
spec:
sourceFormat: unstructured
override:
resources:
- containerName: "reconciler"
cpuLimit: "800m"
memoryLimit: "800Mi"
memoryRequest: "500Mi"
git:
repo: https://repo-url # kpt-set: ${repo-url}
branch: main # kpt-set: ${repo-branch}
dir: csync/tier4/kubernetes/_X-FLEET-ID/deploy/env/_NAMESPACE # kpt-set: ${repo-dir}
revision: HEAD
auth: token
secretRef:
name: git-creds