https://github.com/cilium/cilium
Raw File
Tip revision: 0338ca7a759b2080f2580048b7af167364b3184b authored by André Martins on 26 March 2022, 00:51:32 UTC
Prepare for release v1.10.9
Tip revision: 0338ca7
provider_alibabacloud_flags.go
// Copyright 2021 Authors of Cilium
//
// 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.

//+build ipam_provider_alibabacloud

package main

import (
	operatorOption "github.com/cilium/cilium/operator/option"
	"github.com/cilium/cilium/pkg/option"

	"github.com/spf13/viper"
)

func init() {
	flags := rootCmd.Flags()

	flags.String(operatorOption.AlibabaCloudVPCID, "", "Specific VPC ID for AlibabaCloud ENI. If not set use same VPC as operator")
	option.BindEnv(operatorOption.AlibabaCloudVPCID)

	viper.BindPFlags(flags)
}
back to top