Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GC Infrastructure code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Deployment and Operations
GC Infrastructure code
Commits
b231b1d1
Commit
b231b1d1
authored
11 months ago
by
Aliaksandr Ramanovich (EPAM)
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-9046 - add WI for secret SA
parent
fe83ff8b
No related branches found
No related tags found
No related merge requests found
Pipeline
#250747
passed
11 months ago
Stage: scripts_check
Stage: generate
Stage: run-trigger
Pipeline: GC Infrastructure code
#250748
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/osdu/wi-secret.tf
+35
-0
35 additions, 0 deletions
modules/osdu/wi-secret.tf
with
35 additions
and
0 deletions
modules/osdu/wi-secret.tf
0 → 100644
+
35
−
0
View file @
b231b1d1
/**
* Copyright 2023 Google LLC
* Copyright 2023 EPAM
*
* 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.
*/
locals
{
secret_name
=
"secret"
secret_roles_name
=
[
"roles/secretmanager.admin"
]
}
module
"secret_workload_identity"
{
source
=
"terraform-google-modules/kubernetes-engine/google//modules/workload-identity"
version
=
"29.0.0"
use_existing_k8s_sa
=
true
annotate_k8s_sa
=
false
name
=
local
.
secret_name
gcp_sa_name
=
format
(
"wi-%s-gc"
,
local
.
secret_name
)
namespace
=
"default"
project_id
=
var
.
project_id
roles
=
local
.
secret_roles_name
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment