-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kuma-cp): consistently check for expiring ZoneIngress/ZoneEgress …
…certs (backport of #10160, #10162, #10161) (#10166) * fix(kuma-cp): consistently check for expiring ZoneIngress/ZoneEgress certs (#10160) Signed-off-by: Mike Beaumont <[email protected]> * fix(kuma-cp): cleanup generated egress certs (#10162) Signed-off-by: Mike Beaumont <[email protected]> Co-authored-by: Bart Smykla <[email protected]> * fix(kuma-cp): index generated certs by proxy type (#10161) Signed-off-by: Mike Beaumont <[email protected]> --------- Signed-off-by: Mike Beaumont <[email protected]> Co-authored-by: Mike Beaumont <[email protected]> Co-authored-by: Bart Smykla <[email protected]>
- Loading branch information
1 parent
af3a873
commit 456b88a
Showing
6 changed files
with
113 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package mesh | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
|
||
mesh_proto "github.com/kumahq/kuma/api/mesh/v1alpha1" | ||
core_model "github.com/kumahq/kuma/pkg/core/resources/model" | ||
) | ||
|
||
func ProxyTypeFromResourceType(t core_model.ResourceType) (mesh_proto.ProxyType, error) { | ||
switch t { | ||
case DataplaneType: | ||
return mesh_proto.DataplaneProxyType, nil | ||
case ZoneIngressType: | ||
return mesh_proto.IngressProxyType, nil | ||
case ZoneEgressType: | ||
return mesh_proto.EgressProxyType, nil | ||
} | ||
return "", errors.Errorf("%s does not have a corresponding proxy type", t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters