Added fields to FederatedServiceAccount
@@ -17,24 +17,18 @@ limitations under the License.
package v1alpha1
import (
+ corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
-// EDIT THIS FILE!
-// Created by "kubebuilder create resource" for you to implement the FederatedServiceAccount resource schema definition
-// as a go struct.
-// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
-
// FederatedServiceAccountSpec defines the desired state of FederatedServiceAccount
type FederatedServiceAccountSpec struct {
- // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
- // Important: Run "kubebuilder generate" to regenerate code after modifying this file
+ // Template to derive per-cluster service account from
+ Template corev1.ServiceAccount `json:"template,omitempty"`
}
// FederatedServiceAccountStatus defines the observed state of FederatedServiceAccount
type FederatedServiceAccountStatus struct {
- // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
- // Important: Run "kubebuilder generate" to regenerate code after modifying this file
}
// +genclient
