Skip to content

Commit

Permalink
chore: update the flowschema api version from v1beta3 to v1 (#7500)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Innis <[email protected]>
  • Loading branch information
hustshawn and jonathan-innis authored Dec 10, 2024
1 parent 10eded2 commit f4f0029
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 160 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
Expand All @@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
Expand All @@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
Expand All @@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
Expand All @@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
Expand All @@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
Expand All @@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
Expand All @@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
Expand All @@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Loading

0 comments on commit f4f0029

Please sign in to comment.