generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create PeerAuthentications on eventing-manager start if Istio is enab…
…led (#205) * Handle the creation of PeerAuthentications for metrics endpoints. * Tidy up the dependencies. * Generate mocks. * Reformat err string. * Cleanup imports. * Refactor PeerAuthentication. * Add owner Reference. * Move Creation to reconcilers. * Restructure pa creation to startup. * Remove old implementation for PA creation. * Refactor. * Clean up. * Check CRD existence in a nicer way. * Streamline CRD creation. * Add some tests * Add peerauth manifest. * Fix typo in maketarget. * Reorder test schedule. * Fix test call. * Remove Make target. * Parse flags * Get all PeerAuthentications. * Change CRD name. * Move logic to func. * fixed client and revert changes for e2e tests * revert some changes * added tests * fixed label * added e2e tests * updated action * addressed review comments --------- Co-authored-by: Muhammad Faizan <[email protected]>
- Loading branch information
1 parent
a4dde90
commit 617ae5e
Showing
24 changed files
with
1,126 additions
and
214 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
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
93 changes: 93 additions & 0 deletions
93
config/crd/for-tests/security.istio.io_peerauthentication.yaml
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,93 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
labels: | ||
app: istio-pilot | ||
chart: istio | ||
heritage: Tiller | ||
istio: security | ||
release: istio | ||
name: peerauthentications.security.istio.io | ||
spec: | ||
group: security.istio.io | ||
names: | ||
categories: | ||
- istio-io | ||
- security-istio-io | ||
kind: PeerAuthentication | ||
listKind: PeerAuthenticationList | ||
plural: peerauthentications | ||
shortNames: | ||
- pa | ||
singular: peerauthentication | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- description: Defines the mTLS mode used for peer authentication. | ||
jsonPath: .spec.mtls.mode | ||
name: Mode | ||
type: string | ||
- description: 'CreationTimestamp is a timestamp representing the server time | ||
when this object was created. It is not guaranteed to be set in happens-before | ||
order across separate operations. Clients may not set this value. It is represented | ||
in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for | ||
lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata' | ||
jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1beta1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
description: 'Peer authentication configuration for workloads. See more | ||
details at: https://istio.io/docs/reference/config/security/peer_authentication.html' | ||
properties: | ||
mtls: | ||
description: Mutual TLS settings for workload. | ||
properties: | ||
mode: | ||
description: Defines the mTLS mode used for peer authentication. | ||
enum: | ||
- UNSET | ||
- DISABLE | ||
- PERMISSIVE | ||
- STRICT | ||
type: string | ||
type: object | ||
portLevelMtls: | ||
additionalProperties: | ||
properties: | ||
mode: | ||
description: Defines the mTLS mode used for peer authentication. | ||
enum: | ||
- UNSET | ||
- DISABLE | ||
- PERMISSIVE | ||
- STRICT | ||
type: string | ||
type: object | ||
description: Port specific mutual TLS settings. | ||
type: object | ||
selector: | ||
description: The selector determines the workloads to apply the ChannelAuthentication | ||
on. | ||
properties: | ||
matchLabels: | ||
additionalProperties: | ||
type: string | ||
description: One or more labels that indicate a specific set of | ||
pods/VMs on which a policy should be applied. | ||
type: object | ||
type: object | ||
type: object | ||
status: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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
Oops, something went wrong.