Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24724be

Browse files
authored
Merge pull request #1023 from fluxcd/runtime-env-vars
runtime: Add environment variables
2 parents 4f87fac + 85cb1e2 commit 24724be

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

runtime/controller/env.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2025 The Flux authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package controller
18+
19+
const (
20+
// EnvRuntimeNamespace is the environment variable key used to
21+
// specify the namespace in which the controller is running.
22+
EnvRuntimeNamespace = "RUNTIME_NAMESPACE"
23+
24+
// EnvSourceLocalhost is the environment variable key used to
25+
// specify the localhost address of the source-controller file server.
26+
EnvSourceLocalhost = "SOURCE_CONTROLLER_LOCALHOST"
27+
)

0 commit comments

Comments
 (0)