-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from alexandrevilain/feat/mtls
Add internode & frontend mTLS using cert-manager
- Loading branch information
Showing
54 changed files
with
3,799 additions
and
74 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 |
---|---|---|
|
@@ -25,3 +25,4 @@ out | |
*.swo | ||
*~ | ||
.vscode | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Licensed to Alexandre VILAIN under one or more contributor | ||
// license agreements. See the NOTICE file distributed with | ||
// this work for additional information regarding copyright | ||
// ownership. Alexandre VILAIN licenses this file to you 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. | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
corev1 "k8s.io/api/core/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// TemporalClusterClientSpec defines the desired state of TemporalClusterClient | ||
type TemporalClusterClientSpec struct { | ||
// Reference to the temporal cluster the client will get access to. | ||
TemporalClusterRef corev1.LocalObjectReference `json:"temporalClusterRef"` | ||
} | ||
|
||
// TemporalClusterClientStatus defines the observed state of TemporalClusterClient | ||
type TemporalClusterClientStatus struct { | ||
// ServerName is the hostname returned by the certificate. | ||
ServerName string `json:"serverName"` | ||
// Reference to the Kubernetes Secret containing the certificate for the client. | ||
SecretRef corev1.LocalObjectReference `json:"secretRef"` | ||
} | ||
|
||
//+kubebuilder:object:root=true | ||
//+kubebuilder:subresource:status | ||
|
||
// TemporalClusterClient is the Schema for the temporalclusterclients API | ||
type TemporalClusterClient struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec TemporalClusterClientSpec `json:"spec,omitempty"` | ||
Status TemporalClusterClientStatus `json:"status,omitempty"` | ||
} | ||
|
||
//+kubebuilder:object:root=true | ||
|
||
// TemporalClusterClientList contains a list of TemporalClusterClient | ||
type TemporalClusterClientList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []TemporalClusterClient `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&TemporalClusterClient{}, &TemporalClusterClientList{}) | ||
} |
Oops, something went wrong.