Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Container] add an effective_cgroup_mode field in node config #7737

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Container/metadata/V1/ClusterService.php
Binary file not shown.
44 changes: 44 additions & 0 deletions Container/src/V1/AddonsConfig.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions Container/src/V1/Client/ClusterManagerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,53 @@ private static function getClientDefaults()
];
}

/**
* Formats a string containing the fully-qualified path to represent a ca_pool
* resource.
*
* @param string $project
* @param string $location
* @param string $caPool
*
* @return string The formatted ca_pool resource.
*/
public static function caPoolName(string $project, string $location, string $caPool): string
{
return self::getPathTemplate('caPool')->render([
'project' => $project,
'location' => $location,
'ca_pool' => $caPool,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* crypto_key_version resource.
*
* @param string $project
* @param string $location
* @param string $keyRing
* @param string $cryptoKey
* @param string $cryptoKeyVersion
*
* @return string The formatted crypto_key_version resource.
*/
public static function cryptoKeyVersionName(
string $project,
string $location,
string $keyRing,
string $cryptoKey,
string $cryptoKeyVersion
): string {
return self::getPathTemplate('cryptoKeyVersion')->render([
'project' => $project,
'location' => $location,
'key_ring' => $keyRing,
'crypto_key' => $cryptoKey,
'crypto_key_version' => $cryptoKeyVersion,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a topic
* resource.
Expand All @@ -191,6 +238,8 @@ public static function topicName(string $project, string $topic): string
* Parses a formatted name string and returns an associative array of the components in the name.
* The following name formats are supported:
* Template: Pattern
* - caPool: projects/{project}/locations/{location}/caPools/{ca_pool}
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
* - topic: projects/{project}/topics/{topic}
*
* The optional $template argument can be supplied to specify a particular pattern,
Expand Down
Loading
Loading