solutions/gatekeeper-policies/naming-rules/project/setters.yaml (9 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. ######### apiVersion: v1 kind: ConfigMap metadata: name: setters annotations: config.kubernetes.io/local-config: 'true' data: ######################### # Project naming constraints values ########################## # # Two-character code representing a client. # Multiple clients can be supported by using a regex that evaluates multiple codes such as this: '^(aa|bb|cc)' # All projects that are created will be required to have a project id starting with one of the 2 letter client codes only # customization: required client_code: ^(aa|bb|cc) # # One character code representing the environment for the project # (d = dev, p = production, e = experimentation, u = preprod) # All projects that are created will be required to have the 3rd letter of the project id be the same as env_code # customization: required env_code: d # ########################## # End of Configurations ##########################